Re: [Xen-devel] 答复: 答复: Re: Help:Can xen restore several snapshots more faster at same time?

2017-11-27 Thread Wei Liu
On Mon, Nov 27, 2017 at 12:35:26PM +, Chenjia (C) wrote: > when we use the Xen4.8.7(we compile from the source and install on SUSE 12 ), > if we create the VM, we got the error information: > > libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: > /etc/xen/scripts/vif-bridge

Re: [Xen-devel] [PATCH] tools: fix description of Linux ioctl_evtchn_notify

2017-11-23 Thread Wei Liu
On Thu, Nov 23, 2017 at 05:16:51PM +, Jonathan Davies wrote: > Signed-off-by: Jonathan Davies <jonathan.dav...@citrix.com> Acked-by: Wei Liu <wei.l...@citrix.com> ___ Xen-devel mailing list Xen-devel@lists.xenpr

Re: [Xen-devel] [PATCH v1] core: mount xenfs, ignore proc-xen.mount (#6442, #6662)

2017-12-01 Thread Wei Liu
On Thu, Nov 30, 2017 at 01:35:45AM -0700, Jan Beulich wrote: > >>> On 30.11.17 at 09:23, wrote: > > On Wed, Nov 29, Jan Beulich wrote: > > > >> Ah, I see. But then still I don't see why at least on half way > >> recent Xen /sys/hypervisor/properties/features wouldn't have > >>

Re: [Xen-devel] [PATCH v1] core: mount xenfs, ignore proc-xen.mount (#6442, #6662)

2017-12-01 Thread Wei Liu
On Fri, Dec 01, 2017 at 04:39:30AM -0700, Jan Beulich wrote: > >>> On 01.12.17 at 11:21, wrote: > > On Thu, Nov 30, 2017 at 01:35:45AM -0700, Jan Beulich wrote: > >> >>> On 30.11.17 at 09:23, wrote: > >> > On Wed, Nov 29, Jan Beulich wrote: > >> > > >> >>

Re: [Xen-devel] [PATCH v1] core: mount xenfs, ignore proc-xen.mount (#6442, #6662)

2017-12-01 Thread Wei Liu
On Fri, Dec 01, 2017 at 05:23:16AM -0700, Jan Beulich wrote: > >>> On 01.12.17 at 13:15, wrote: > > On Fri, Dec 01, 2017 at 05:11:45AM -0700, Jan Beulich wrote: > >> >>> On 01.12.17 at 12:48, wrote: > >> > Suppose at one point we split hardware domain

Re: [Xen-devel] [PATCH] libxl: put RSDP for PVH guest near 4GB

2017-12-01 Thread Wei Liu
: Juergen Gross <jgr...@suse.com> With Jan's comment addressed: Acked-by: Wei Liu <wei.l...@citrix.com> ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH v1] core: mount xenfs, ignore proc-xen.mount (#6442, #6662)

2017-12-01 Thread Wei Liu
On Fri, Dec 01, 2017 at 05:11:45AM -0700, Jan Beulich wrote: > >>> On 01.12.17 at 12:48, wrote: > > Suppose at one point we split hardware domain and control domain, which > > one will you call Dom0? Which one will get the flag? > > There can only be one hardware domain,

Re: [Xen-devel] [PATCH for-unstable] docs/process/release-checklist.txt: New instructions for disabling debug

2017-12-01 Thread Wei Liu
On Fri, Dec 01, 2017 at 03:20:06PM +, Ian Jackson wrote: > The old instructions were obsolete. Here are the details I used when > branching for 4.10. > > CC: Julien Grall <julien.gr...@arm.com> > CC: Wei Liu <wei.l...@citrix.com> > Signed-off-by: Ian Jack

Re: [Xen-devel] [PATCH v9 0/9] xen/x86: various XPTI speedups

2018-05-04 Thread Wei Liu
On Thu, Apr 26, 2018 at 01:33:09PM +0200, Juergen Gross wrote: > Juergen Gross (9): > x86/xpti: avoid copying L4 page table contents when possible > xen/x86: add a function for modifying cr3 > xen/x86: support per-domain flag for xpti > xen/x86: use invpcid for flushing the TLB >

Re: [Xen-devel] [Votel] Graduation Review: Windows PV Driver

2018-05-04 Thread Wei Liu
+1 from me. Wei. ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH v9 3/9] xen/x86: support per-domain flag for xpti

2018-05-04 Thread Wei Liu
On Fri, Apr 27, 2018 at 02:15:25AM -0600, Jan Beulich wrote: > >>> On 27.04.18 at 09:59, wrote: > > On 27/04/18 09:55, Sergey Dyasli wrote: > >> On Thu, 2018-04-26 at 13:33 +0200, Juergen Gross wrote: > >>> index b353352adf..220d1ba020 100644 > >>> ---

[Xen-devel] [PATCH] docs: fix xpti command line option doc

2018-05-04 Thread Wei Liu
Signed-off-by: Wei Liu <wei.l...@citrix.com> --- docs/misc/xen-command-line.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/misc/xen-command-line.markdown b/docs/misc/xen-command-line.markdown index e7a8bd66e7..616dc9d34c 100644 --- a/docs/misc/xen-c

Re: [Xen-devel] [PATCH 02/10] x86/spec_ctrl: Express Xen's choice of MSR_SPEC_CTRL value as a variable

2018-05-14 Thread Wei Liu
code IBRS or not, > but not other configuraitons such as STIBP. > > Break Xen's value out into a separate variable (in the top of stack block for > XPTI reasons) and use this instead of bti_ist_info in the IST path. > > Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com

Re: [Xen-devel] [PATCH 01/10] x86/spec_ctrl: Read MSR_ARCH_CAPABILITIES only once

2018-05-14 Thread Wei Liu
coop...@citrix.com> Reviewed-by: Wei Liu <wei.l...@citrix.com> ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH for-4.11 00/10] x86: Improvements and fixes to Spectre handling

2018-05-14 Thread Wei Liu
On Fri, May 11, 2018 at 11:38:04AM +0100, Andrew Cooper wrote: > In hindsight, the end result of the Spectre mitigations aren't as great as I'd > hoped, and have several inefficiencies. Also, the `bti=` command line option > isn't as flexible as intended. I think this is a good argument for this

Re: [Xen-devel] [PATCH 03/10] x86/spec_ctrl: Merge bti_ist_info and use_shadow_spec_ctrl into spec_ctrl_flags

2018-05-14 Thread Wei Liu
; This patch does what it says on the tin. FWIW: Reviewed-by: Wei Liu <wei.l...@citrix.com> > diff --git a/xen/include/asm-x86/spec_ctrl_asm.h > b/xen/include/asm-x86/spec_ctrl_asm.h > index e8e8f9a..97da08b 100644 > --- a/xen/include/asm-x86/spec_ctrl_asm.h > +++ b/xen/inc

Re: [Xen-devel] [PATCH 4/5] libxc/pvh: set default MTRR type to write-back

2018-05-14 Thread Wei Liu
On Thu, May 10, 2018 at 06:15:04PM +0100, Roger Pau Monne wrote: > @@ -1014,6 +1034,30 @@ static int vcpu_hvm(struct xc_dom_image *dom) > if ( dom->start_info_seg.pfn ) > bsp_ctx.cpu.rbx = dom->start_info_seg.pfn << PAGE_SHIFT; > > +/* Set the MTRR. */ > +

Re: [Xen-devel] [PATCH 06/10] x86/spec_ctrl: Split X86_FEATURE_SC_MSR into PV and HVM variants

2018-05-14 Thread Wei Liu
re active. > > Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com> Reviewed-by: Wei Liu <wei.l...@citrix.com> ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH 5/5] docs/pvh: document initial MTRR state

2018-05-14 Thread Wei Liu
.com> > Cc: Ian Jackson <ian.jack...@eu.citrix.com> > Cc: Jan Beulich <jbeul...@suse.com> > Cc: Julien Grall <julien.gr...@arm.com> > Cc: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> > Cc: Stefano Stabellini <sstabell...@kernel.org> > Cc: Tim Deegan <

Re: [Xen-devel] [PATCH 4/5] libxc/pvh: set default MTRR type to write-back

2018-05-14 Thread Wei Liu
On Mon, May 14, 2018 at 05:42:53PM +0100, Wei Liu wrote: > On Mon, May 14, 2018 at 05:02:47PM +0100, Roger Pau Monné wrote: > > On Mon, May 14, 2018 at 05:00:51PM +0100, Wei Liu wrote: > > > On Thu, May 10, 2018 at 06:15:04PM +0100, Roger Pau Monne wrote: > > > > @@

Re: [Xen-devel] [PATCH 04/10] x86/spec_ctrl: Fold the XEN_IBRS_{SET, CLEAR} ALTERNATIVES together

2018-05-14 Thread Wei Liu
e holding Xen's choice of value, so use that and > simplify the alternatives. > > Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com> Reviewed-by: Wei Liu <wei.l...@citrix.com> ___ Xen-devel mailing list Xen-devel@lists.xenproj

Re: [Xen-devel] [PATCH 05/10] x86/spec_ctrl: Rename bits of infrastructure to avoid NATIVE and VMEXIT

2018-05-14 Thread Wei Liu
in control, which exists > in lieu of livepatching. Note this in the comment. > > No functional change. > > Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com> Reviewed-by: Wei Liu <wei.l...@citrix.com> ___ Xen-deve

Re: [Xen-devel] [PATCH 07/10] x86/spec_ctrl: Explicitly set Xen's default MSR_SPEC_CTRL value

2018-05-14 Thread Wei Liu
On Fri, May 11, 2018 at 11:38:11AM +0100, Andrew Cooper wrote: > @@ -417,6 +419,32 @@ void __init init_speculation_mitigations(void) > setup_clear_cpu_cap(X86_FEATURE_NO_XPTI); > > print_details(thunk, caps); > + > +/* > + * If MSR_SPEC_CTRL is available, apply Xen's

Re: [Xen-devel] [PATCH 10/10] x86/spec_ctrl: Elide MSR_SPEC_CTRL handling in idle context when possible

2018-05-14 Thread Wei Liu
.com> > Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com> > --- > CC: Jan Beulich <jbeul...@suse.com> > CC: Wei Liu <wei.l...@citrix.com> > CC: Roger Pau Monné <roger@citrix.com> > CC: Juergen Gross <jgr...@suse.com> > --- > xen/arch

Re: [Xen-devel] [PATCH 5/5] docs/pvh: document initial MTRR state

2018-05-14 Thread Wei Liu
On Mon, May 14, 2018 at 10:13:47AM -0600, Jan Beulich wrote: > >>> On 14.05.18 at 18:03, wrote: > > On Thu, May 10, 2018 at 06:15:05PM +0100, Roger Pau Monne wrote: > >> --- a/docs/misc/pvh.markdown > >> +++ b/docs/misc/pvh.markdown > >> @@ -92,3 +92,18 @@ event channels.

Re: [Xen-devel] [PATCH 4/5] libxc/pvh: set default MTRR type to write-back

2018-05-14 Thread Wei Liu
On Mon, May 14, 2018 at 05:02:47PM +0100, Roger Pau Monné wrote: > On Mon, May 14, 2018 at 05:00:51PM +0100, Wei Liu wrote: > > On Thu, May 10, 2018 at 06:15:04PM +0100, Roger Pau Monne wrote: > > > @@ -1014,6 +1034,30 @@ static int vcpu_hvm(struct xc_dom_image *dom) &

Re: [Xen-devel] [PATCH 5/5] docs/pvh: document initial MTRR state

2018-05-14 Thread Wei Liu
On Mon, May 14, 2018 at 05:16:10PM +0100, Roger Pau Monné wrote: > On Mon, May 14, 2018 at 05:03:52PM +0100, Wei Liu wrote: > > On Thu, May 10, 2018 at 06:15:05PM +0100, Roger Pau Monne wrote: > > > Provided to both Dom0 and DomUs. > > > > > > Signed-off-by: R

Re: [Xen-devel] need help when libxenlight.so is used

2018-05-14 Thread Wei Liu
On Sat, May 12, 2018 at 08:55:46PM +0800, Kun Cheng wrote: > Hello Xen devs, > > I'm learning code in xen-4.10.0/tools/xl to find out how to program with > libxl. > > I've trying to use libxenlight.so (compiled and installed from xen 4.10.0 > source code) to control my vms from my own code until

Re: [Xen-devel] staging GCC 8.1.0 build warnings

2018-05-14 Thread Wei Liu
On Thu, May 10, 2018 at 09:38:26AM +1000, John Thomson wrote: > Hi, > Trying to build Xen staging with GCC 8.1.0 and facing some of the new > warnings: > > For OVMF, I used these three commits: >

Re: [Xen-devel] [RFC][PATCH] KVM: APPLES can improve the performance of applications and virtualized systems by up to 49%

2018-05-15 Thread Wei Liu
On Sat, May 12, 2018 at 04:27:04PM +0800, Weiwei Jia wrote: > Dear all, > > Recently, we made a few improvements on effectively utilizing Pause > Loop Exiting (PLE) support for higher throughput on virtualized > systems. Basically, it solves two problems: 1) how to adjust > PLE_Window; 2) how to

Re: [Xen-devel] [PATCH for-4.11] libacpi: fixes for iasl >= 20180427

2018-05-09 Thread Wei Liu
efine __SSDT_S4_HEX__ > + > +unsigned char ssdt_s4_aml_code[] = > > The above example is from ssdt_s4.asl. > > Fix the build with newer versions of iasl by stripping the '_aml_code' > suffix from the variable name on generated files. > > Signed-off-by: Roger Pau Mo

Re: [Xen-devel] [PATCH v2 02/10] x86/HVM: Rename vlapic_read_aligned() to vlapic_reg_read()

2018-05-08 Thread Wei Liu
On Mon, May 07, 2018 at 04:07:45PM -0500, Janakarajan Natarajan wrote: > Rename vlapic_read_aligned() to vlapic_reg_read() to make it a pair of > vlapic_reg_write(). > > Signed-off-by: Janakarajan Natarajan > --- > xen/arch/x86/hvm/vlapic.c | 10 +- > 1

Re: [Xen-devel] [OSSTEST PATCH v2 14/19] ts-guests-nbd-mirror: make it work with stretch

2018-05-08 Thread Wei Liu
On Wed, Mar 07, 2018 at 02:45:50PM +, Ian Jackson wrote: > Wei Liu writes ("[OSSTEST PATCH v2 14/19] ts-guests-nbd-mirror: make it work > with stretch"): > > On the server side, only add oldstyle= and port= on Wheezy and Jessie. > > Stretch doesn't s

Re: [Xen-devel] [OSSTEST PATCH v2 13/19] TestSupport: add dpkg option when installing packages

2018-05-08 Thread Wei Liu
On Wed, Mar 07, 2018 at 03:11:47PM +, Ian Jackson wrote: > Wei Liu writes ("[OSSTEST PATCH v2 13/19] TestSupport: add dpkg option when > installing packages"): > > Upgrading configuration file of nbd-client is controlled by dpkg in > > stretch. Add dpkg option to k

Re: [Xen-devel] [OSSTEST PATCH v2 14/19] ts-guests-nbd-mirror: make it work with stretch

2018-05-08 Thread Wei Liu
On Tue, May 08, 2018 at 10:20:20AM +0100, Wei Liu wrote: > On Wed, Mar 07, 2018 at 02:45:50PM +, Ian Jackson wrote: > > Wei Liu writes ("[OSSTEST PATCH v2 14/19] ts-guests-nbd-mirror: make it > > work with stretch"): > > > On the server side, only add oldsty

Re: [Xen-devel] [PATCH v6] x86/mm: Suppresses vm_events caused by page-walks

2018-05-08 Thread Wei Liu
or the xc_monitor_inguest_pagefault() func. > - Add altp2m_write_no_gpt test in xen_access > --- > tools/libxc/include/xenctrl.h | 7 +++ > tools/libxc/xc_monitor.c| 14 ++ Acked-by: Wei Liu <wei.l...@citrix.com>

Re: [Xen-devel] [OSSTEST PATCH v2 08/19] ts-guests-nbd-mirror: use target_{get, put}file_root to transfter cfg

2018-05-08 Thread Wei Liu
On Wed, Mar 07, 2018 at 03:04:41PM +, Ian Jackson wrote: > Wei Liu writes ("[OSSTEST PATCH v2 08/19] ts-guests-nbd-mirror: use > target_{get,put}file_root to transfter cfg"): > > The original code used target_cmd_output_root which caused a trailing > > new line

Re: [Xen-devel] [PATCH RESEND v1 1/7] x86: add a flag to enable Intel processor trace

2018-04-27 Thread Wei Liu
On Fri, Apr 27, 2018 at 08:22:00AM +, Kang, Luwei wrote: > > > diff --git a/docs/misc/xen-command-line.markdown > > > b/docs/misc/xen-command-line.markdown > > > index 781110d..95411cf 100644 > > > --- a/docs/misc/xen-command-line.markdown > > > +++ b/docs/misc/xen-command-line.markdown > > >

Re: [Xen-devel] [PATCH v1 2/2] Replace occurances of xen.org with xenproject.org

2018-04-27 Thread Wei Liu
On Fri, Apr 27, 2018 at 10:30:51AM +0100, Lars Kurth wrote: > KDD DEBUGGER > -M: Tim Deegan > +M: Tim Deegan I think Tim should choose which domain name he prefers. Those URL changes are fine. Wei. ___

Re: [Xen-devel] reboot driver domain, vifX.Y = NO-CARRIER?

2018-04-27 Thread Wei Liu
On Fri, Apr 27, 2018 at 06:02:46PM +0100, Andrew Cooper wrote: > On 27/04/18 17:14, Jason Cooper wrote: > > On Fri, Apr 27, 2018 at 04:52:57PM +0100, Andrew Cooper wrote: > >> On 27/04/18 16:35, Jason Cooper wrote: > >>> On Fri, Apr 27, 2018 at 04:11:39PM +0100, Andrew Cooper wrote: > On

Re: [Xen-devel] reboot driver domain, vifX.Y = NO-CARRIER?

2018-04-27 Thread Wei Liu
On Fri, Apr 27, 2018 at 04:14:16PM +, Jason Cooper wrote: > On Fri, Apr 27, 2018 at 04:52:57PM +0100, Andrew Cooper wrote: > > On 27/04/18 16:35, Jason Cooper wrote: > > > On Fri, Apr 27, 2018 at 04:11:39PM +0100, Andrew Cooper wrote: > > >> On 27/04/18 16:03, Jason Cooper wrote: > > >>> The

Re: [Xen-devel] reboot driver domain, vifX.Y = NO-CARRIER?

2018-04-27 Thread Wei Liu
On Fri, Apr 27, 2018 at 04:52:57PM +0100, Andrew Cooper wrote: > On 27/04/18 16:35, Jason Cooper wrote: > > Hi Andrew, > > > > On Fri, Apr 27, 2018 at 04:11:39PM +0100, Andrew Cooper wrote: > >> On 27/04/18 16:03, Jason Cooper wrote: > >>> The problem occurs when I reboot a driver domain.

Re: [Xen-devel] [PATCH RFC] libxl: set 1GB MMIO hole for PVH

2018-05-10 Thread Wei Liu
On Wed, May 09, 2018 at 05:07:12PM +0100, Roger Pau Monne wrote: > This prevents page-shattering, by being able to populate the RAM > regions below 4GB using 1GB pages, provided the guest memory size is > set to a multiple of a GB. > > Note that there are some special and ACPI pages in the MMIO

Re: [Xen-devel] [PATCH v2 1/3] xen/pvh: enable and set default MTRR type

2018-05-10 Thread Wei Liu
On Wed, May 09, 2018 at 04:11:39PM +0100, Roger Pau Monné wrote: > On Wed, May 09, 2018 at 12:30:16PM +0100, Roger Pau Monné wrote: > > On Wed, May 09, 2018 at 11:56:40AM +0100, Andrew Cooper wrote: > > > On 09/05/18 11:21, Roger Pau Monne wrote: > > > I'm not sure that setting the default MTRR

Re: [Xen-devel] [PATCH] tools/ocaml/libs/xc fix gcc-8 format-truncation warning

2018-05-15 Thread Wei Liu
CC Juergen, I think this should be in 4.11 On Tue, May 15, 2018 at 11:48:43AM +1000, John Thomson wrote: > CC xenctrl_stubs.o > xenctrl_stubs.c: In function 'failwith_xc': > xenctrl_stubs.c:65:17: error: 'snprintf' output may be truncated before the > last format character

Re: [Xen-devel] domain_crash_sync vs "plain crash"

2018-05-16 Thread Wei Liu
On Fri, May 11, 2018 at 07:43:58PM -0300, Charles Gonçalves wrote: > "That is, without (physical > or virtual, depending on component) serial console you're often unlikely to > actually observe any messages connected to the crash." > > I do not have any experience with serial console interaction

Re: [Xen-devel] [PATCH v1] libxl: fix return code in qmp_synchronous_send

2018-05-18 Thread Wei Liu
y various libxl functions. Instead of fixing all the callers, I'm fine with this change. Acked-by: Wei Liu <wei.l...@citrix.com> > --- > tools/libxl/libxl_qmp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/libxl/libxl_qmp.c b/tools/

Re: [Xen-devel] [PATCH v1] xl: show full value of cpu_khz in xl info output

2018-05-17 Thread Wei Liu
> I just found this in my backlog of unapplied patches. > Any word on this change? Acked-by: Wei Liu <wei.l...@citrix.com> Sorry I missed this one. CC Juergen, I think this should be in 4.11. Wei. ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH 4/5] libxc/pvh: set default MTRR type to write-back

2018-05-15 Thread Wei Liu
C. > > Note that initial MTRR setup is done by hvmloader for HVM guests, > that's not used by PVH guests. > > Signed-off-by: Roger Pau Monné <roger@citrix.com> > > Cc: Ian Jackson <ian.jack...@eu.citrix.com> > Cc: Wei Liu <wei.l...@citrix.com> >

Re: [Xen-devel] [PATCH 07/10] x86/spec_ctrl: Explicitly set Xen's default MSR_SPEC_CTRL value

2018-05-16 Thread Wei Liu
On Wed, May 16, 2018 at 12:08:02PM +0100, Andrew Cooper wrote: > On 14/05/18 16:52, Jan Beulich wrote: > On 14.05.18 at 17:39, wrote: > >> On Fri, May 11, 2018 at 11:38:11AM +0100, Andrew Cooper wrote: > >>> @@ -417,6 +419,32 @@ void __init

Re: [Xen-devel] [PATCH v2 5/6] libxc/pvh: set default MTRR type to write-back

2018-05-16 Thread Wei Liu
C. > > Note that initial MTRR setup is done by hvmloader for HVM guests, > that's not used by PVH guests. > > Signed-off-by: Roger Pau Monné <roger....@citrix.com> Acked-by: Wei Liu <wei.l...@citrix.com> ___ Xen-devel mailing li

Re: [Xen-devel] [PATCH 10/10] x86/spec_ctrl: Elide MSR_SPEC_CTRL handling in idle context when possible

2018-05-16 Thread Wei Liu
On Wed, May 16, 2018 at 12:27:29PM +0100, Andrew Cooper wrote: > On 14/05/18 16:48, Wei Liu wrote: > > On Fri, May 11, 2018 at 11:38:14AM +0100, Andrew Cooper wrote: > >> If Xen is virtualising MSR_SPEC_CTRL handling for guests, but using 0 as > >> its > >>

[Xen-devel] [PATCH for-next 5/5] tools: provide --with-system-ipxe

2018-05-15 Thread Wei Liu
Signed-off-by: Wei Liu <wei.l...@citrix.com> --- Cc: Ian Jackson <ian.jack...@eu.citrix.com> --- config/Tools.mk.in| 1 + tools/config.h.in | 3 +++ tools/configure | 53 +++ tools/configure.ac

[Xen-devel] [PATCH for-next 0/5] Load ipxe from a standalone file

2018-05-15 Thread Wei Liu
eul...@suse.com> Cc: Andrew Cooper <andrew.coop...@citrix.com> Cc: Ian Jackson <ian.jack...@eu.citrix.com> Cc: Anoob Soman <anoob.so...@citrix.com> Cc: Doug Goldstein <car...@cardoe.com> Wei Liu (5): Tools.mk.in: drop unused variables ipxe: produce a single binary fro

[Xen-devel] [PATCH for-next 4/5] tools: load IPXE from standalone file

2018-05-15 Thread Wei Liu
Do not embed IPXE into Rombios anymore. Instead, it is loaded by the toolstack from a file as a separate module. Ability to let user specify an IPXE blob will come later. No user visible change. Signed-off-by: Wei Liu <wei.l...@citrix.com> --- Cc: Ian Jackson <ian.jack...@eu.citrix.com

[Xen-devel] [PATCH for-next 2/5] ipxe: produce a single binary from its build

2018-05-15 Thread Wei Liu
And switch hvmloader/Makefile to use that binary. This will help later when we change hvmloader to pick a user provided binary. No functional change. Signed-off-by: Wei Liu <wei.l...@citrix.com> --- Cc: Jan Beulich <jbeul...@suse.com> Cc: Andrew Cooper <andrew.coop...@citrix.

[Xen-devel] [PATCH for-next 3/5] libxc: allow HVM guest to have modules

2018-05-15 Thread Wei Liu
Lift the loading code out of PVH specific branch. Take the chance to make the debug message more useful. IPXE will be loaded as a module of Rombios. Signed-off-by: Wei Liu <wei.l...@citrix.com> --- Cc: Ian Jackson <ian.jack...@eu.citrix.com> --- tools/libxc/xc_do

[Xen-devel] [PATCH for-next 1/5] Tools.mk.in: drop unused variables

2018-05-15 Thread Wei Liu
Signed-off-by: Wei Liu <wei.l...@citrix.com> --- Cc: Ian Jackson <ian.jack...@eu.citrix.com> --- config/Tools.mk.in | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/Tools.mk.in b/config/Tools.mk.in index 2d6c440324..4cc9f29090 100644 --- a/config/Tools.mk.in +++ b/config

Re: [Xen-devel] [PATCH] tools/kdd: silence gcc 8 warning a different way

2018-05-22 Thread Wei Liu
I have tried to revert 437e00fea04becc91c1b6bc1c0baa636b067a5cc and reproduce the gcc 8.1 warning with Arch Linux's gcc 8.1 compiler. Strangely it doesn't complain. I haven't got a Fedora 28 around (which Marek used). It will take some time to set that up. Wei.

Re: [Xen-devel] [PATCH] libxc/x86/PV: don't hand through CPUID leaf 0x80000008 as is

2018-05-22 Thread Wei Liu
On Tue, May 22, 2018 at 05:40:02AM -0600, Jan Beulich wrote: > Just like for HVM the feature set should be used for EBX output, while > EAX should be restricted to the low 16 bits and ECX/EDX should be zero. > > Signed-off-by: Jan Beulich I will leave this to Andrew and you.

Re: [Xen-devel] [xen-unstable test] 122968: regressions - FAIL

2018-05-22 Thread Wei Liu
On Tue, May 22, 2018 at 07:20:32AM +0200, Juergen Gross wrote: > On 22/05/18 01:59, osstest service owner wrote: > > flight 122968 xen-unstable real [real] > > http://logs.test-lab.xenproject.org/osstest/logs/122968/ > > > > Regressions :-( > > > > Tests which did not succeed and are blocking, >

Re: [Xen-devel] [PATCH v1] libxl: always call qemus xen-save-devices-state in suspend/resume

2018-05-22 Thread Wei Liu
On Tue, May 22, 2018 at 10:52:20AM +0200, Olaf Hering wrote: > Am Mon, 21 May 2018 09:18:20 +0100 > schrieb Wei Liu <wei.l...@citrix.com>: > > > What I mean is: now you seem to want to call > > libxl__domain_suspend_device_model when QEMU upstream is running, > &

Re: [Xen-devel] [PATCH v2 2/5] libxl: add vsnd list and info

2018-05-22 Thread Wei Liu
On Fri, May 18, 2018 at 05:38:27PM +0300, Oleksandr Grytsov wrote: > From: Oleksandr Grytsov > > Add getting vsnd list amd info API amd -> and here. > [...] > > +static int libxl__device_stream_getinfo(libxl__gc *gc, const char *path, > +

Re: [Xen-devel] [xen-unstable test] 122968: regressions - FAIL

2018-05-22 Thread Wei Liu
On Tue, May 22, 2018 at 02:34:37PM +0200, Juergen Gross wrote: > On 22/05/18 12:28, Wei Liu wrote: > > On Tue, May 22, 2018 at 07:20:32AM +0200, Juergen Gross wrote: > >> On 22/05/18 01:59, osstest service owner wrote: > >>> flight 122968 xen-unstable real

[Xen-devel] [PATCH for-4.11] Revert "tools/kdd: mute spurious gcc warning"

2018-05-22 Thread Wei Liu
This reverts commit 437e00fea04becc91c1b6bc1c0baa636b067a5cc. Signed-off-by: Wei Liu <wei.l...@citrix.com> --- Fedora 28 appears to have fixed their gcc. Arch Linux build with gcc 8.1 passes, too. Cc: Tim Deegan <t...@xen.org> Cc: Jan Beulich <jbeul...@suse.com> Cc: Ian

Re: [Xen-devel] [PATCH] tools/kdd: alternative way of muting spurious gcc warning

2018-05-23 Thread Wei Liu
On Wed, May 23, 2018 at 10:28:47AM +0200, Marek Marczykowski-Górecki wrote: > On Wed, May 23, 2018 at 08:48:12AM +0100, Wei Liu wrote: > > On Tue, May 22, 2018 at 09:47:45PM +0200, Marek Marczykowski-Górecki wrote: > > > Older gcc does not support #pragma GCC diagnostics,

Re: [Xen-devel] [PATCH] tools/kdd: alternative way of muting spurious gcc warning

2018-05-23 Thread Wei Liu
On Tue, May 22, 2018 at 09:47:45PM +0200, Marek Marczykowski-Górecki wrote: > Older gcc does not support #pragma GCC diagnostics, so use alternative > approach - change variable type to uint32_t (this code handle 32-bit > requests only anyway), which apparently also avoid gcc complaining about >

[Xen-devel] [PATCH RFC 2/3] automation: build stubdom and rombios, and tools on 32 bit

2018-05-23 Thread Wei Liu
Now we're using docker to build. They shouldn't be a problem anymore. Signed-off-by: Wei Liu <wei.l...@citrix.com> --- RFC because I haven't tested if other dockerfiles need changes. --- automation/scripts/build | 8 1 file changed, 8 deletions(-) diff --git a/automation/scripts

[Xen-devel] [PATCH RFC 1/3] automation: install texinfo in debian

2018-05-23 Thread Wei Liu
Stubdom build requires that. Signed-off-by: Wei Liu <wei.l...@citrix.com> --- automation/build/debian/jessie.dockerfile | 1 + automation/build/debian/stretch.dockerfile | 1 + 2 files changed, 2 insertions(+) diff --git a/automation/build/debian/jessie.dockerfile b/automation/build/

[Xen-devel] [PATCH RFC 0/3] Improvements to docker-based build automation

2018-05-23 Thread Wei Liu
RFC because I haven't tested all dockerfiles. Wei Liu (3): automation: install texinfo in debian automation: build stubdom and rombios, and tools on 32 bit automation: introduce stretch-i386.dockerfile automation/build/debian/jessie.dockerfile | 1 + automation/build/debian/stretch

[Xen-devel] [PATCH RFC 3/3] automation: introduce stretch-i386.dockerfile

2018-05-23 Thread Wei Liu
Signed-off-by: Wei Liu <wei.l...@citrix.com> --- automation/build/debian/stretch-i386.dockerfile | 50 + 1 file changed, 50 insertions(+) create mode 100644 automation/build/debian/stretch-i386.dockerfile diff --git a/automation/build/debian/stretch-i386.dockerf

Re: [Xen-devel] [PATCH 2/5] x86: split out cpuid objects and helpers

2018-05-25 Thread Wei Liu
On Fri, May 25, 2018 at 11:41:04AM +0200, Roger Pau Monné wrote: > On Thu, May 24, 2018 at 05:05:19PM +0100, Wei Liu wrote: > > They are moved to a new header which is going to be consumed by both > > the hypervisor and toolstack. > > > > Create a new directo

Re: [Xen-devel] [PATCH 1/5] x86: move definition of struct cpuid_leaf to cpuid.h

2018-05-25 Thread Wei Liu
On Fri, May 25, 2018 at 11:31:17AM +0200, Roger Pau Monné wrote: > On Thu, May 24, 2018 at 05:05:18PM +0100, Wei Liu wrote: > > This is a step towards consolidating relevant data structures and > > defines to one location. > > > > It then requires defining cpuid_leaf in

Re: [Xen-devel] [PATCH 1/5] x86: move definition of struct cpuid_leaf to cpuid.h

2018-05-25 Thread Wei Liu
On Fri, May 25, 2018 at 05:50:12AM -0600, Jan Beulich wrote: > >>> On 24.05.18 at 18:05, wrote: > > This is a step towards consolidating relevant data structures and > > defines to one location. > > Sort of contrary to what the patch does - it converts one instance of the >

Re: [Xen-devel] [OSSTEST PATCH] ap-common: Switch to Linux 4.14 by default on X86.

2018-05-25 Thread Wei Liu
6916bc7a3d390d70951e992c0ca39e > --this-linux=d88700f79448fc8f03617d4f1929c39676f8d1e4 > --branches-also=linux-4.9,linux-4.14,linux-arm-xen 122974 |less I think this is a good move: Acked-by: Wei Liu <wei.l...@citrix.com> ___ Xen-devel mailing

[Xen-devel] [PATCH 2/5] x86: split out cpuid objects and helpers

2018-05-24 Thread Wei Liu
They are moved to a new header which is going to be consumed by both the hypervisor and toolstack. Create a new directory for this kind of headers in anticipation of more will come. No functional change. Signed-off-by: Wei Liu <wei.l...@citrix.com> --- Cc: Jan Beulich <jbeul...@sus

[Xen-devel] [PATCH 0/5] Share CPUID stuff between hypervisor and toolstack

2018-05-24 Thread Wei Liu
<andrew.coop...@citrix.com> Wei Liu (5): x86: move definition of struct cpuid_leaf to cpuid.h x86: split out cpuid objects and helpers tools: link arch-shared directory libxc: introduce xc_cpuid_x86.h XXX DO NOT APPLY: compilation test .gitignore |

[Xen-devel] [PATCH 1/5] x86: move definition of struct cpuid_leaf to cpuid.h

2018-05-24 Thread Wei Liu
This is a step towards consolidating relevant data structures and defines to one location. It then requires defining cpuid_leaf in user space harness headers to make them continue to compile. No functional change. Signed-off-by: Wei Liu <wei.l...@citrix.com> --- Cc: Jan Beulich

[Xen-devel] [PATCH 5/5] XXX DO NOT APPLY: compilation test

2018-05-24 Thread Wei Liu
--- tools/libxc/xc_cpuid_x86.c | 17 + 1 file changed, 17 insertions(+) diff --git a/tools/libxc/xc_cpuid_x86.c b/tools/libxc/xc_cpuid_x86.c index 89ded718bc..0af04a4e5a 100644 --- a/tools/libxc/xc_cpuid_x86.c +++ b/tools/libxc/xc_cpuid_x86.c @@ -869,3 +869,20 @@ int

[Xen-devel] [PATCH 4/5] libxc: introduce xc_cpuid_x86.h

2018-05-24 Thread Wei Liu
Collect cpuid related things into a header file. Provide the necessary macros to make it work. Signed-off-by: Wei Liu <wei.l...@citrix.com> --- Cc: Jan Beulich <jbeul...@suse.com> Cc: Andrew Cooper <andrew.coop...@citrix.com> Cc: Ian Jackson <ian.jack...@eu.citrix.

[Xen-devel] [PATCH 3/5] tools: link arch-shared directory

2018-05-24 Thread Wei Liu
Signed-off-by: Wei Liu <wei.l...@citrix.com> --- Cc: Ian Jackson <ian.jack...@eu.citrix.com> --- .gitignore | 1 + tools/include/Makefile | 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7004349d5a..808f4

Re: [Xen-devel] [PATCH for-4.11] Config.mk: Update QEMU to include build fixes

2018-05-18 Thread Wei Liu
On Fri, May 18, 2018 at 05:17:54PM +0100, Anthony PERARD wrote: > This tag includes two build fixes: > - dump: Fix build with newer gcc > Fix build with GCC-8 > - Fix libusb-1.0.22 deprecated libusb_set_debug with libusb_set_option > > Signed-off-by: Anthony PERARD

Re: [Xen-devel] [PATCH v1] libxl: always call qemus xen-save-devices-state in suspend/resume

2018-05-18 Thread Wei Liu
On Fri, May 18, 2018 at 09:25:07AM +0200, Juergen Gross wrote: > On 17/05/18 17:51, Olaf Hering wrote: > > If a domU has a qemu-xen instance attached, it is required to call qemus > > "xen-save-devices-state" method. Without it, the receiving side of a PV > > migration may be unable to lock the

Re: [Xen-devel] Xen Project Security Whitepaper v1 is ready for community review

2018-05-18 Thread Wei Liu
On Fri, May 18, 2018 at 07:16:24AM -0600, Jan Beulich wrote: > >>> On 18.05.18 at 12:13, wrote: > > 2.2.4.A > > We've discussed the option of different support life times before (and iirc > more > than once). Personally I continue to think that all releases should be

Re: [Xen-devel] [PATCH v1] libxl: always call qemus xen-save-devices-state in suspend/resume

2018-05-18 Thread Wei Liu
Cc Anthony. On Thu, May 17, 2018 at 05:51:08PM +0200, Olaf Hering wrote: > If a domU has a qemu-xen instance attached, it is required to call qemus > "xen-save-devices-state" method. Without it, the receiving side of a PV > migration may be unable to lock the image: > > xen be: qdisk-51712: xen

Re: [Xen-devel] [PATCH 5/5] docs/pvh: document initial MTRR state

2018-05-15 Thread Wei Liu
On Tue, May 15, 2018 at 01:51:03AM -0600, Jan Beulich wrote: > >>> On 14.05.18 at 18:18, wrote: > > On Mon, May 14, 2018 at 10:13:47AM -0600, Jan Beulich wrote: > >> >>> On 14.05.18 at 18:03, wrote: > >> > On Thu, May 10, 2018 at 06:15:05PM +0100, Roger

Re: [Xen-devel] [PATCH 2/4] libxc: Provide access to internal handles

2018-05-15 Thread Wei Liu
and has not caused problems. > > libxc is not a stable API so the downside risk of providing this > access is not significant. > > Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com> Acked-by: Wei Liu <wei.l...@citrix.com> ___

Re: [Xen-devel] [PATCH 4/4] libxl: Provide better error message when qemu restrict user not found

2018-05-15 Thread Wei Liu
On Mon, May 14, 2018 at 06:08:59PM +0100, Ian Jackson wrote: > Add mention of LIBXL_QEMU_USER_RANGE_BASE, in case that is what the > user was intending. > > Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com> Acked-by: Wei Liu &l

Re: [Xen-devel] [PATCH 1/4] libxc: Drop declarations of osdep_privcmd_open and _close

2018-05-15 Thread Wei Liu
On Mon, May 14, 2018 at 06:08:56PM +0100, Ian Jackson wrote: > These functions are no longer defined or used anywhere. The > declarations should have been deleted when the definitions were. > > Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com> Acked-by: Wei Liu &l

Re: [Xen-devel] [PATCH v1] libxl: always call qemus xen-save-devices-state in suspend/resume

2018-05-21 Thread Wei Liu
On Fri, May 18, 2018 at 09:09:10PM +0200, Olaf Hering wrote: > Am Fri, 18 May 2018 18:01:42 +0100 > schrieb Wei Liu <wei.l...@citrix.com>: > > > You don't need to test if the guest is HVM anymore. You only need to > > know if QEMU upstream is running. > > l

Re: [Xen-devel] [PATCH for-next 2/5] ipxe: produce a single binary from its build

2018-05-21 Thread Wei Liu
On Fri, May 18, 2018 at 09:38:01AM -0600, Jan Beulich wrote: > >>> On 15.05.18 at 20:22, wrote: > > --- a/tools/firmware/etherboot/Makefile > > +++ b/tools/firmware/etherboot/Makefile > > @@ -18,11 +18,15 @@ D=ipxe > > T=ipxe.tar.gz > > > > ROMS = $(addprefix $D/src/bin/,

Re: [Xen-devel] [PATCH for-4.11 v3.5 1/2] doc: correct livepatch.markdown syntax

2018-05-21 Thread Wei Liu
On Fri, May 18, 2018 at 06:35:07PM +0100, Andrew Cooper wrote: > Sorry - it appears I mess the CC list up here.  CC'ing "The Rest" for > this combined fixup and cleanup patch for livepatch.markdown, for > inclusion into 4.11 Acked-by: Wei Liu <wei.l...@citrix.com> (I hav

Re: [Xen-devel] Pending patches for 4.11?

2018-05-22 Thread Wei Liu
On Tue, May 22, 2018 at 08:57:26AM +0200, Juergen Gross wrote: > Are there any patches for 4.11 still pending? > > Are any important patches missing my Release-ack? > > I'd like to have a final rc this Friday and hope OSStest will catch up > in order to have an on time release early June. >

Re: [Xen-devel] [PATCH RFC 2/3] automation: build stubdom and rombios, and tools on 32 bit

2018-05-29 Thread Wei Liu
On Tue, May 29, 2018 at 12:18:40AM -0500, Doug Goldstein wrote: > On 5/23/18 5:20 AM, Wei Liu wrote: > > > > > # SeaBIOS cannot be built with clang > > @@ -20,12 +18,6 @@ if [[ "${CC}" == "clang" ]]; then > > cfgargs+=("--wi

Re: [Xen-devel] [PATCH RFC 1/3] automation: install texinfo in debian

2018-05-29 Thread Wei Liu
On Tue, May 29, 2018 at 12:21:18AM -0500, Doug Goldstein wrote: > On 5/23/18 5:20 AM, Wei Liu wrote: > > Stubdom build requires that. > > > > CentOS & Ubuntu will need the change too. Though in a way I'd almost ask > why --enable-docs doesn't need it but stubdoms

Re: [Xen-devel] [PATCH 1/4] firmware/seabios: fix build on systems with non GNU toolchains

2018-07-02 Thread Wei Liu
s-dir > + $(MAKE) -C $< CC=$(SEABIOSCC) LD=$(SEABIOSLD) PYTHON=$(PYTHON) all; There is a pattern rule in Rules.mk, so I would very much avoid having it redefined. On the other hand, you're not the first one to add such rules, so I won't object to this pa

Re: [Xen-devel] [PATCH 1/3] tools/libxc: Drop xc_cpuid_to_str()

2018-07-02 Thread Wei Liu
has a single > caller. Use calloc() directly and drop alloc_str(). > > Signed-off-by: Andrew Cooper Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH] xen: Plumb an is_priv boolean into domain_create()

2018-07-02 Thread Wei Liu
arget. > > Signed-off-by: Andrew Cooper Reviewed-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH 3/4] tests/xs: use ENOENT instead of ENODATA

2018-07-02 Thread Wei Liu
dard, but [0] disagrees. This being a test utility makes this patch less of a concern. Acked-by: Wei Liu 0: http://pubs.opengroup.org/onlinepubs/95399/basedefs/errno.h.html Wei. ___ Xen-devel mailing list Xen-devel@lists.xenproje

Re: [Xen-devel] [PATCH 2/4] tests: disable x86 emulator test harness when using clang

2018-07-02 Thread Wei Liu
On Mon, Jul 02, 2018 at 10:28:24AM +0200, Roger Pau Monne wrote: > clang is not capable of building the x86 emulator test harness, so > disconnect it from the clang build until it can be fixed. > > Signed-off-by: Roger Pau Monné Oh well. Acked-by: Wei Liu Don't you need to

  1   2   3   4   5   6   7   8   9   10   >