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 Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel

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 online

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 > >> the information you

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: > >> > > >> >> Ah, I see. But then still I don't see wh

Re: [Xen-devel] [PATCH v2 for-next 1/9] kconfig/gcov: remove gcc version choice from kconfig

2017-12-01 Thread Wei Liu
On Thu, Nov 09, 2017 at 11:13:41AM +, Roger Pau Monne wrote: > Use autodetect only. > > Signed-off-by: Roger Pau Monné Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/lis

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, which will continue to >

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 and control domain, which > >> > one will you

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 01:38:48PM +0100, Olaf Hering wrote: > Am Fri, 1 Dec 2017 12:29:24 + > schrieb Wei Liu : > > > But Olaf needs to know if some of the services like xenconsoled or > > xenstored should be started, and if some of the special file systems > &g

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

2017-12-01 Thread Wei Liu
: Juergen Gross With Jan's comment addressed: 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 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 > CC: Wei Liu > Signed-off-by: Ian Jackson Acked-by: Wei Liu _

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:49:01PM +0100, Olaf Hering wrote: > On Fri, Dec 01, Wei Liu wrote: > > > What information do you need? For a moment let's skip using the fuzzy > > "Dom0" term and try to be precise. Like "I would like to know if that > > dom

Re: [Xen-devel] [PATCH net-next] MAINTAINERS: xen-netback: update my email address

2019-09-13 Thread Wei Liu
On Fri, 13 Sep 2019 at 13:47, Paul Durrant wrote: > > My Citrix email address will expire shortly. > > Signed-off-by: Paul Durrant Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject

Re: [Xen-devel] [PATCH net-next] MAINTAINERS: xen-netback: update my email address

2019-09-13 Thread Wei Liu
On Fri, 13 Sep 2019 at 16:28, Wei Liu wrote: > > On Fri, 13 Sep 2019 at 13:47, Paul Durrant wrote: > > > > My Citrix email address will expire shortly. > > > > Signed-off-by: Paul Durrant > > Acked-by: Wei Liu Or rather: Acked-by: Wei Liu ___

Re: [Xen-devel] [PATCH v10 3/6] sysctl / libxl: report whether IOMMU/HAP page table sharing is supported

2019-09-16 Thread Wei Liu
ul Durrant > Acked-by: Christian Lindig > --- > Cc: Ian Jackson > Cc: Wei Liu > Cc: Anthony PERARD > Cc: Andrew Cooper > Cc: George Dunlap > Cc: Jan Beulich > Cc: Julien Grall > Cc: Konrad Rzeszutek Wilk > Cc: Stefano Stabellini > Cc: Tim Deegan > Cc: Chr

Re: [Xen-devel] [PATCH] tools/libs: put common Makefile parts into new libs.mk

2019-09-16 Thread Wei Liu
On Tue, Sep 03, 2019 at 09:20:23AM +0200, Juergen Gross wrote: > The Makefile below tools/libs have a lot in common. Put those common > parts into a new libs.mk and include that from the specific Makefiles. > > Signed-off-by: Juergen Gross Acked

Re: [Xen-devel] [PATCH v2] tools/libs: put common Makefile parts into new libs.mk

2019-09-16 Thread Wei Liu
On Fri, Sep 06, 2019 at 02:41:03PM +0200, Juergen Gross wrote: > The Makefile below tools/libs have a lot in common. Put those common > parts into a new libs.mk and include that from the specific Makefiles. > > Signed-off-by: Juergen Gross > --- > V2: > - include common Makefile via absolute path

Re: [Xen-devel] [PATCH for-4.13] xen/arm: Add Skeleton for using configuring early printk using Kconfig

2019-09-16 Thread Wei Liu
On Fri, Sep 13, 2019 at 11:39:53AM +0100, Julien Grall wrote: > At the moment, early printk can only be configured on the make command > line. It is not very handy because a user has to remove the option > everytime it is using another command other than compiling the > hypervisor. > > Furthermore

Re: [Xen-devel] Looking for Semester long Project

2019-09-16 Thread Wei Liu
Hi Julian For the KDD related project I have CC'ed Paul. I have gathered some ideas for cleaning up hypervisor code but they are of lower difficulty compared to other projects. They are definitively not as fun as the others. ;-) Wei. On Mon, Sep 09, 2019 at 08:58:51AM +0100, Julien Grall wrote:

Re: [Xen-devel] [PATCH v6 6/6] tools/libxc: add wrapper for PHYSDEVOP_interrupt_control

2019-09-16 Thread Wei Liu
On Sat, 14 Sep 2019 at 16:38, Marek Marczykowski-Górecki wrote: > > Add libxc wrapper for PHYSDEVOP_interrupt_control introduced in previous > commit. > > Signed-off-by: Marek Marczykowski-Górecki Subject to acceptance of earlier patches. Ac

Re: [Xen-devel] [PATCH 1/2] x86emul: treat Hygon guests like AMD ones

2019-09-16 Thread Wei Liu
On Mon, 16 Sep 2019 at 10:47, Jan Beulich wrote: > > For some reason the Hygon enabling series left out the insn emulator. > Make appropriate adjustments wherever we've been special casing AMD. > > Signed-off-by: Jan Beulich

Re: [Xen-devel] [PATCH] x86/viridian: Reword HV_X64_MSR_CRASH_CTL print message

2019-09-16 Thread Wei Liu
On Mon, 16 Sep 2019 at 14:13, Andrew Cooper wrote: [...] > Replace the VIRIDIAN prefix with 'reported' to reduce the confusion to > non-xen-developers trying to interpret the message. > >>> This is a message that is peculiar to Windows VMs, so how about "Windows > >>> VM CRASH"? > >> I

Re: [Xen-devel] [PATCH v2 08/10] tools/libxc: Rework xc_cpuid_apply_policy() to use {get, set}_cpu_policy()

2019-09-16 Thread Wei Liu
(((regs[0] & 0x7c00u) << 1) | 0x0400u | > > - (regs[0] & 0x3ffu)); > > -regs[3] &= 0x3ffu; > > I think you want to mention that the removal of this masking is > intentional, for it look

Re: [Xen-devel] [PATCH v11 3/6] sysctl / libxl: report whether IOMMU/HAP page table sharing is supported

2019-09-17 Thread Wei Liu
urrant > Acked-by: Christian Lindig > --- > Cc: Ian Jackson > Cc: Wei Liu > Cc: Anthony PERARD > Cc: Andrew Cooper > Cc: George Dunlap > Cc: Jan Beulich > Cc: Julien Grall > Cc: Konrad Rzeszutek Wilk > Cc: Stefano Stabellini > Cc: Tim Deegan > Cc:

Re: [Xen-devel] [PATCH] x86/viridian: Reword HV_X64_MSR_CRASH_CTL print message

2019-09-18 Thread Wei Liu
On Tue, 17 Sep 2019 at 17:31, Andrew Cooper wrote: > > On 16/09/2019 14:56, Paul Durrant wrote: > >> -Original Message----- > >> From: Wei Liu > >> Sent: 16 September 2019 14:29 > >> To: Andrew Cooper > >> Cc: Paul Durrant ; Xen-devel

Re: [Xen-devel] [PATCH] tools/configure: Allow specifying python to be found from path

2019-09-18 Thread Wei Liu
ault, but does not work right now). The former is useful if you > want python2 but your distro has foolishly made "python" refer to > python3. > > CC: Doug Goldstein > CC: Wei Liu > CC: George Dunlap > Signed-off-by: Ian Jackson Acked-by: Wei Liu _

[Xen-devel] [PATCH for-4.13] configure: fix print syntax for python 3

2019-09-19 Thread Wei Liu
16cc3362a missed one print statement. Signed-off-by: Wei Liu --- m4/python_devel.m4 | 2 +- tools/configure| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/m4/python_devel.m4 b/m4/python_devel.m4 index 7f26381376..e365cd658e 100644 --- a/m4/python_devel.m4 +++ b/m4

Re: [Xen-devel] [PATCH for-4.13] configure: fix print syntax for python 3

2019-09-19 Thread Wei Liu
On Thu, 19 Sep 2019 at 12:17, Wei Liu wrote: > > 16cc3362a missed one print statement. > > Signed-off-by: Wei Liu > --- > m4/python_devel.m4 | 2 +- > tools/configure| 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/m4/python_devel.m

Re: [Xen-devel] [PATCH for-4.13] configure: fix print syntax for python 3

2019-09-19 Thread Wei Liu
On Thu, 19 Sep 2019 at 12:28, Ian Jackson wrote: > My previous reply bounced due to header mangling in your first mail. > Let me try again: > > This is good in principle but: > > Can you provide as a git branch ? Then I will get the unmangled > version and be able to try it out. > See https://

[Xen-devel] [PATCH for-next RFC 2/8] x86: include asm_defns.h directly in hypercall.h

2019-09-23 Thread Wei Liu
ASM_CALL_CONSTRAINT is defined there. No functional change. Signed-off-by: Wei Liu --- xen/include/asm-x86/guest/hypercall.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/include/asm-x86/guest/hypercall.h b/xen/include/asm-x86/guest/hypercall.h index d548816b30..c9deca6ffc 100644

[Xen-devel] [PATCH for-next RFC 3/8] x86: drop hypervisor_cpuid_base

2019-09-23 Thread Wei Liu
The only user is Xen specific code in PV shim. We can therefore export the variable directly. Signed-off-by: Wei Liu --- xen/arch/x86/guest/xen/xen.c| 7 +-- xen/arch/x86/pv/shim.c | 2 +- xen/include/asm-x86/guest/xen.h | 2 +- 3 files changed, 3 insertions(+), 8 deletions

[Xen-devel] [PATCH for-next RFC 0/8] Port Xen to Hyper-V

2019-09-23 Thread Wei Liu
interfaces. They aren't trivial, and time can be scarce on my side, so I intend to post patches piece meal when they are ready. Questions and comments are welcome. Thanks, Wei. Cc: Jan Beulich Cc: Andrew Cooper Cc: Wei Liu Cc: Roger Pau Monné Wei Liu (8): x86: introduce CONFIG_GUES

[Xen-devel] [PATCH for-next RFC 6/8] x86: make probe_xen return boolean value

2019-09-23 Thread Wei Liu
We need indication whether it has succeeded or not. Signed-off-by: Wei Liu --- xen/arch/x86/guest/hypervisor.c | 5 - xen/arch/x86/guest/xen/xen.c| 7 --- xen/include/asm-x86/guest/xen.h | 4 ++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/xen/arch/x86/guest

[Xen-devel] [PATCH for-next RFC 5/8] x86: factor out hypervisor agnostic code

2019-09-23 Thread Wei Liu
The only implementation there is Xen. No functional change. Signed-off-by: Wei Liu --- xen/arch/x86/guest/Makefile| 2 + xen/arch/x86/guest/hypervisor.c| 112 + xen/arch/x86/guest/xen/xen.c | 81 +- xen/include/asm-x86

[Xen-devel] [PATCH for-next RFC 4/8] x86: factor out xen variants for hypervisor setup code

2019-09-23 Thread Wei Liu
We will add Hyper-V specific implementations in the future. No functional change. Signed-off-by: Wei Liu --- xen/arch/x86/guest/xen/xen.c | 32 ++-- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/xen/arch/x86/guest/xen/xen.c b/xen/arch/x86/guest/xen

[Xen-devel] [PATCH for-next RFC 7/8] x86: introduce CONFIG_HYPERV and hyperv directory

2019-09-23 Thread Wei Liu
We use the same code structure as we did for Xen code. As starters, detect Hyper-V in probe_hyperv. More complex functionality will be added later. Signed-off-by: Wei Liu --- xen/arch/x86/Kconfig | 9 + xen/arch/x86/guest/Makefile| 1 + xen/arch/x86/guest/hyperv

[Xen-devel] [PATCH for-next RFC 8/8] x86: be more verbose when running nested

2019-09-23 Thread Wei Liu
Signed-off-by: Wei Liu --- xen/arch/x86/setup.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index dec60d0301..bbcc5a503d 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -789,6 +789,17 @@ void __init noreturn

[Xen-devel] [PATCH for-next RFC 1/8] x86: introduce CONFIG_GUEST and move code

2019-09-23 Thread Wei Liu
Xen is able to run as a guest on Xen. We plan to make it able to run on Hyper-V as well. Introduce CONFIG_GUEST which is set to true if either running on Xen or Hyper-V is desired. Restructure code hierarchy for new code to come. No functional change intended. Signed-off-by: Wei Liu --- xen

Re: [Xen-devel] [PATCH v2] libxc/x86: avoid overflow in CPUID APIC ID adjustments

2019-09-23 Thread Wei Liu
On Fri, Sep 20, 2019 at 03:54:12PM +0200, Jan Beulich wrote: > Recent AMD processors may report up to 128 logical processors in CPUID > leaf 1. Doubling this value produces 0 (which OSes sincerely dislike), > as the respective field is only 8 bits wide. Suppress doubling the value > (and its leaf 0

Re: [Xen-devel] [PATCH for-next RFC 0/8] Port Xen to Hyper-V

2019-09-23 Thread Wei Liu
On Mon, Sep 23, 2019 at 10:48:45AM +, Paul Durrant wrote: > > -Original Message- > > From: Xen-devel On Behalf Of Wei > > Liu > > Sent: 23 September 2019 11:09 > > To: Xen Development List > > Cc: Wei Liu ; Wei Liu ; Andrew Cooper > > ; >

Re: [Xen-devel] [PATCH for-next RFC 0/8] Port Xen to Hyper-V

2019-09-23 Thread Wei Liu
On Mon, Sep 23, 2019 at 12:11:26PM +, Paul Durrant wrote: > > -Original Message- > > From: Wei Liu > > Sent: 23 September 2019 12:27 > > To: Paul Durrant > > Cc: 'Wei Liu' ; Xen Development List > > ; Wei Liu > > ; Andrew Cooper

Re: [Xen-devel] [PATCH for-next RFC 0/8] Port Xen to Hyper-V

2019-09-23 Thread Wei Liu
And a bit more thought. On Mon, Sep 23, 2019 at 01:54:31PM +0100, Wei Liu wrote: [...] > > > > > > Per TLFS, eVMCS should be used by L1 Xen. > > > > Yes, I guess it only needs to be used by L1, but Windows is using an > > increasing number of VMs for v

Re: [Xen-devel] [PATCH] libxl: Fix build when LIBXL_API_VERSION is set

2019-09-23 Thread Wei Liu
On Mon, Sep 23, 2019 at 02:26:52PM +0100, Anthony PERARD wrote: > The compatibility function mistakenly called itself. > > Fixes: 95627b87c3159928458ee586e8c5c593bdd248d8 > Signed-off-by: Anthony PERARD Acked-by: Wei Liu ___ Xen-devel

Re: [Xen-devel] [PATCH for-next RFC 0/8] Port Xen to Hyper-V

2019-09-23 Thread Wei Liu
On Mon, Sep 23, 2019 at 01:47:14PM +, Paul Durrant wrote: > > -Original Message- > > From: Wei Liu > > Sent: 23 September 2019 14:34 > > To: Paul Durrant > > Cc: 'Wei Liu' ; Xen Development List > > ; Wei Liu > > ; Andrew Cooper

Re: [Xen-devel] [PATCH for-next RFC 0/8] Port Xen to Hyper-V

2019-09-23 Thread Wei Liu
On Mon, Sep 23, 2019 at 02:39:10PM +, Paul Durrant wrote: > > -Original Message- > > From: Wei Liu > > Sent: 23 September 2019 15:21 > > To: Paul Durrant > > Cc: 'Wei Liu' ; Xen Development List > > ; Wei Liu > > ; Andrew Cooper

Re: [Xen-devel] [PATCH for-4.13 v2 0/2] Errata implementation and doc update

2019-09-24 Thread Wei Liu
Cortex A-57 and Cortex A72 AT > speculate > docs: Replace all instance of ARM by Arm 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 v13 1/4] remove late (on-demand) construction of IOMMU page tables

2019-09-25 Thread Wei Liu
nt > Reviewed-by: Alexandru Isaila > Acked-by: Razvan Cojocaru > Reviewed-by: Jan Beulich > Acked-by: Julien Grall 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] ACPI/cpuidle: bump maximum number of power states we support

2019-09-25 Thread Wei Liu
tant; > do this now. Don't bump by too much though, as there are a number of on- > stack arrays which are dimensioned by this constant. > > Signed-off-by: Jan Beulich Reviewed-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xenproj

Re: [Xen-devel] [PATCH 00/84] Remove direct map from Xen

2019-09-25 Thread Wei Liu
, Sep 25, 2019 at 03:32:46PM +0100, hongyax wrote: > Previously, Wei Liu has created the patch series to switch to > alloc/map/unmap/free APIs for Xen page tables so that Xen page tables > are mapped with map_domain_page(). This is the first step towards > removing the direct map. I

Re: [Xen-devel] [PATCH 17/84] xxx fixup: avoid shadowing mfn

2019-09-25 Thread Wei Liu
On Wed, Sep 25, 2019 at 03:33:03PM +0100, hongyax wrote: > From: Wei Liu > > --- > xen/arch/x86/mm.c | 25 + > 1 file changed, 13 insertions(+), 12 deletions(-) > This patch should have been squashed into the pr

Re: [Xen-devel] [PATCH 00/84] Remove direct map from Xen

2019-09-25 Thread Wei Liu
One thing I forgot to ask: can you publish a git branch for this series? Thanks, Wei. On Wed, Sep 25, 2019 at 04:13:49PM +0100, Wei Liu wrote: > Hi Hongyan > > Thanks for picking up this work. > > Please CC relevant maintainers and reviewers in the future. I have done > t

Re: [Xen-devel] [PATCH for-next RFC 0/8] Port Xen to Hyper-V

2019-09-25 Thread Wei Liu
On Wed, Sep 25, 2019 at 01:02:50PM +0200, Roger Pau Monné wrote: > On Mon, Sep 23, 2019 at 11:09:23AM +0100, Wei Liu wrote: > > Hi all > > > > In case you're wondering, I can already run a fully fledged Xen system on > > Hyper-V with emulated disk and network.

Re: [Xen-devel] [RFC PATCH for-next 03/18] tools/libxc: clean up memory sharing files

2019-09-25 Thread Wei Liu
On Wed, Sep 25, 2019 at 08:48:41AM -0700, Tamas K Lengyel wrote: > No functional changes. > > Signed-off-by: Tamas K Lengyel Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman

Re: [Xen-devel] [RFC PATCH for-next 06/18] x86/mem_sharing: drop flags from mem_sharing_unshare_page

2019-09-25 Thread Wei Liu
On Wed, Sep 25, 2019 at 08:48:44AM -0700, Tamas K Lengyel wrote: > All callers pass 0 in. > > Signed-off-by: Tamas K Lengyel Reviewed-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman

Re: [Xen-devel] [PATCH for-next RFC 0/8] Port Xen to Hyper-V

2019-09-26 Thread Wei Liu
On Wed, Sep 25, 2019 at 04:36:34PM +0100, Wei Liu wrote: > On Wed, Sep 25, 2019 at 01:02:50PM +0200, Roger Pau Monné wrote: > > On Mon, Sep 23, 2019 at 11:09:23AM +0100, Wei Liu wrote: > > > Hi all > > > > > > In case you're wondering, I can already run a

Re: [Xen-devel] [PATCH for-next RFC 0/8] Port Xen to Hyper-V

2019-09-26 Thread Wei Liu
On Thu, Sep 26, 2019 at 12:41:04PM +0200, Roger Pau Monné wrote: > On Wed, Sep 25, 2019 at 04:36:34PM +0100, Wei Liu wrote: > > On Wed, Sep 25, 2019 at 01:02:50PM +0200, Roger Pau Monné wrote: > > > On Mon, Sep 23, 2019 at 11:09:23AM +0100, Wei Liu wrote: > > > > H

Re: [Xen-devel] [RFC PATCH 17/84] xxx fixup: avoid shadowing mfn

2019-09-26 Thread Wei Liu
On Thu, Sep 26, 2019 at 10:45:40AM +0100, hong...@amazon.com wrote: > From: Wei Liu > Please squash this patch to the previous patch. Wei. ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listin

Re: [Xen-devel] [RFC PATCH 58/84] x86/mm: fix leaks in map_xen_pagetable.

2019-09-26 Thread Wei Liu
On Thu, Sep 26, 2019 at 10:46:21AM +0100, hong...@amazon.com wrote: > From: Hongyan Xia > > Not unmapping pages after map_xen_pagetable can leak the virtual address > space over time. I understand this part, but ... > Also this fix makes vmap_to_mfn non-trivial to be a > macro. There might be b

Re: [Xen-devel] [RFC PATCH 59/84] x86/pmap: break the loop in pmap APIs.

2019-09-26 Thread Wei Liu
On Thu, Sep 26, 2019 at 10:46:22AM +0100, hong...@amazon.com wrote: > From: Hongyan Xia > > Modify the pmap PTEs directly. Using set/clear_fixmap() may result in > invocation loops. > Thanks. This is a good catch. I never got to test PMAP seriously. This patch should be squashed into the patch

Re: [Xen-devel] [RFC PATCH 60/84] x86/domain_page: use PMAP when d/vcache is not ready.

2019-09-26 Thread Wei Liu
On Thu, Sep 26, 2019 at 10:46:23AM +0100, hong...@amazon.com wrote: > From: Hongyan Xia > > Also fix a place where unmap_domain_page should only be conditionally > used. > > Signed-off-by: Hongyan Xia > --- > xen/arch/x86/domain_page.c | 27 --- > xen/arch/x86/mm.c

Re: [Xen-devel] [RFC PATCH 63/84] x86/domain_page: mapcache is no longer tied to pv.

2019-09-26 Thread Wei Liu
On Thu, Sep 26, 2019 at 10:46:26AM +0100, hong...@amazon.com wrote: > From: Hongyan Xia > > Signed-off-by: Hongyan Xia AIUI there is where we want to end up. I do wonder if this is the correct place for this patch though. The bottom line is we need to make sure the HVM path works before we can

Re: [Xen-devel] [RFC PATCH 65/84] x86: fix some wrong assumptions on direct map. Increase PMAP slots to 8.

2019-09-26 Thread Wei Liu
On Thu, Sep 26, 2019 at 10:46:28AM +0100, hong...@amazon.com wrote: > From: Hongyan Xia > > Signed-off-by: Hongyan Xia > --- > xen/arch/x86/domain_page.c | 8 > xen/arch/x86/x86_64/mm.c | 3 ++- > xen/include/asm-x86/pmap.h | 4 ++-- > 3 files changed, 4 insertions(+), 11 deletions(-

Re: [Xen-devel] [RFC PATCH 67/84] x86/domain_page: remove direct map code and initialise idle mapcache.

2019-09-26 Thread Wei Liu
On Thu, Sep 26, 2019 at 10:46:30AM +0100, hong...@amazon.com wrote: > From: Hongyan Xia > > These are found in the NDEBUG build. > > Signed-off-by: Hongyan Xia > --- > xen/arch/x86/domain_page.c | 10 -- > 1 file changed, 10 deletions(-) > > diff --git a/xen/arch/x86/domain_page.c b/x

Re: [Xen-devel] [RFC PATCH 71/84] x86/setup: start tearing down the direct map.

2019-09-26 Thread Wei Liu
On Thu, Sep 26, 2019 at 10:46:34AM +0100, hong...@amazon.com wrote: > From: Hongyan Xia > > Signed-off-by: Hongyan Xia > --- > xen/arch/x86/setup.c| 4 ++-- > xen/common/page_alloc.c | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/xen/arch/x86/setup.c b/xen/arch

Re: [Xen-devel] [RFC PATCH 75/84] x86/mm: handle PSE early termination cases in virt_to_mfn_walk().

2019-09-26 Thread Wei Liu
On Thu, Sep 26, 2019 at 10:46:38AM +0100, hong...@amazon.com wrote: > From: Hongyan Xia > > Signed-off-by: Hongyan Xia > --- > xen/arch/x86/mm.c | 36 ++-- > 1 file changed, 34 insertions(+), 2 deletions(-) > > diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c

Re: [Xen-devel] [RFC PATCH 76/84] x86/setup: also clear the permission bits in the dummy 1:1 mapping.

2019-09-26 Thread Wei Liu
On Thu, Sep 26, 2019 at 10:46:39AM +0100, hong...@amazon.com wrote: > From: Hongyan Xia > Assuming we end up keeping those calls, this patch should be squashed. Wei. ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.o

Re: [Xen-devel] [RFC PATCH 77/84] x86: properly (un)map pages in restore_all_guests.

2019-09-26 Thread Wei Liu
On Thu, Sep 26, 2019 at 10:46:40AM +0100, hong...@amazon.com wrote: > From: Hongyan Xia > > Before, it assumed both cr3 could be accessed via a direct map. This is > no longer true. Also, this means we can remove a xenheap mapping hack > we introduced earlier when building the cr3 of dom0. > > S

Re: [Xen-devel] [RFC PATCH 78/84] Revert "x86/smpboot: use xenheap pages for rpts in smpboot."

2019-09-26 Thread Wei Liu
On Thu, Sep 26, 2019 at 10:46:41AM +0100, hong...@amazon.com wrote: > From: Hongyan Xia > > We have properly handled (un)mapping of pages in restore_all_guests. > This hack is no longer required. > > Signed-off-by: Hongyan Xia If you rearrange this series a bit you don't need this and the pat

Re: [Xen-devel] [RFC PATCH 81/84] x86/mm: optimise and properly unmap pages in virt_to_mfn_walk().

2019-09-26 Thread Wei Liu
On Thu, Sep 26, 2019 at 10:46:44AM +0100, hong...@amazon.com wrote: > From: Hongyan Xia > > This also resolves a mapcache overflow bug. This should be squashed into the patch that touched virt_to_mfn_walk. Wei. ___ Xen-devel mailing list Xen-devel@l

Re: [Xen-devel] [RFC PATCH 80/84] x86/setup: Install dummy 1:1 mappings for all mem passed to allocators.

2019-09-26 Thread Wei Liu
On Thu, Sep 26, 2019 at 10:46:43AM +0100, hong...@amazon.com wrote: > From: Hongyan Xia > > This means we no longer have an always-mapped direct map now. But why a dummy mapping is this needed at all? That's the same question that was asked in a previous patch. Wei. ___

Re: [Xen-devel] [RFC PATCH 82/84] x86: deduplicate code a bit and fix an unmapping bug.

2019-09-26 Thread Wei Liu
On Thu, Sep 26, 2019 at 10:46:45AM +0100, hong...@amazon.com wrote: > From: Hongyan Xia > void unmap_domain_page(const void *ptr) > diff --git a/xen/arch/x86/pv/dom0_build.c b/xen/arch/x86/pv/dom0_build.c > index 1555a61b84..202edcaa17 100644 > --- a/xen/arch/x86/pv/dom0_build.c > +++ b/xen/arch/

Re: [Xen-devel] [RFC PATCH 83/84] x86/pmap: rewrite logic for locking.

2019-09-26 Thread Wei Liu
On Thu, Sep 26, 2019 at 10:46:46AM +0100, hong...@amazon.com wrote: > From: Hongyan Xia > > Due to the limited PMAP entries, another pCPU is allowed to use PMAP > only when the current pCPU has unmapped all mappings. > Under what condition would two pCPUs try to use PMAP at the same time? Wei.

Re: [Xen-devel] [RFC PATCH 84/84] x86/pv: fix a couple of direct map assumptions in dom0 building.

2019-09-26 Thread Wei Liu
On Thu, Sep 26, 2019 at 10:46:47AM +0100, hong...@amazon.com wrote: > From: Hongyan Xia > > Signed-off-by: Hongyan Xia > --- > xen/arch/x86/pv/dom0_build.c| 7 --- > xen/include/asm-x86/processor.h | 2 -- > 2 files changed, 4 insertions(+), 5 deletions(-) > > diff --git a/xen/arch/x86

Re: [Xen-devel] [PATCH for-next RFC 7/8] x86: introduce CONFIG_HYPERV and hyperv directory

2019-09-27 Thread Wei Liu
On Wed, Sep 25, 2019 at 12:48:42PM +0200, Roger Pau Monné wrote: > On Mon, Sep 23, 2019 at 11:09:30AM +0100, Wei Liu wrote: > > We use the same code structure as we did for Xen code. > > > > As starters, detect Hyper-V in probe_hyperv. More complex > > functi

Re: [Xen-devel] [PATCH for-next RFC 5/8] x86: factor out hypervisor agnostic code

2019-09-27 Thread Wei Liu
On Wed, Sep 25, 2019 at 12:39:11PM +0200, Roger Pau Monné wrote: > On Mon, Sep 23, 2019 at 11:09:28AM +0100, Wei Liu wrote: > > The only implementation there is Xen. > > > > No functional change. > > > > Signed-off-by: Wei Liu > > --- > > xen/arch/x

Re: [Xen-devel] [PATCH for-next RFC 6/8] x86: make probe_xen return boolean value

2019-09-27 Thread Wei Liu
On Wed, Sep 25, 2019 at 12:44:27PM +0200, Roger Pau Monné wrote: > On Mon, Sep 23, 2019 at 11:09:29AM +0100, Wei Liu wrote: > > We need indication whether it has succeeded or not. > > > > Signed-off-by: Wei Liu > > The code LGTM, I have just a suggestion on the ap

Re: [Xen-devel] [PATCH for-next RFC 4/8] x86: factor out xen variants for hypervisor setup code

2019-09-27 Thread Wei Liu
On Wed, Sep 25, 2019 at 12:23:54PM +0200, Roger Pau Monné wrote: > > -void __init probe_hypervisor(void) > > +static void __init probe_xen(void) > > While here I would rename to xen_probe, to match with the other > functions (ie: xen_setup below for example). Sure. I can do that. I always thought

Re: [Xen-devel] [PATCH for-next RFC 4/8] x86: factor out xen variants for hypervisor setup code

2019-09-27 Thread Wei Liu
On Fri, Sep 27, 2019 at 01:41:59PM +0200, Roger Pau Monné wrote: > > > > > > I wonder, do you also require to map hypervisor data into the guest > > > physmap when running on HyperV? > > > > > > > Yes. There are a lot of comparable concepts in Hyper-V. For example, > > there is a page called VP

Re: [Xen-devel] [PATCH for-next RFC 4/8] x86: factor out xen variants for hypervisor setup code

2019-09-27 Thread Wei Liu
On Fri, Sep 27, 2019 at 01:39:14PM +0200, Jan Beulich wrote: > On 27.09.2019 13:30, Wei Liu wrote: > > On Wed, Sep 25, 2019 at 12:23:54PM +0200, Roger Pau Monné wrote: > >> Also it might be nice to introduce something like: > >> > >> enum guest_type { &

Re: [Xen-devel] [PATCH v7 0/4] Fix PCI passthrough for HVM with stubdomain

2019-09-27 Thread Wei Liu
On Fri, Sep 27, 2019 at 04:21:55PM +0200, Jan Beulich wrote: > > > > Marek Marczykowski-Górecki (4): > > libxl: do not attach xen-pciback to HVM domain, if stubdomain is in use > > libxl: attach PCI device to qemu only after setting pciback/pcifront > > libxl: don't try to manipulate json co

[Xen-devel] [PATCH for-next v2 2/9] x86: include asm_defns.h directly in hypercall.h

2019-09-30 Thread Wei Liu
ASM_CALL_CONSTRAINT is defined there. No functional change. Signed-off-by: Wei Liu Reviewed-by: Roger Pau Monné --- xen/include/asm-x86/guest/hypercall.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/include/asm-x86/guest/hypercall.h b/xen/include/asm-x86/guest/hypercall.h index

[Xen-devel] [PATCH for-next v2 3/9] x86: drop hypervisor_cpuid_base

2019-09-30 Thread Wei Liu
The only user is Xen specific code in PV shim. We can therefore export the variable directly. Signed-off-by: Wei Liu Reviewed-by: Roger Pau Monné --- xen/arch/x86/guest/xen/xen.c| 7 +-- xen/arch/x86/pv/shim.c | 2 +- xen/include/asm-x86/guest/xen.h | 2 +- 3 files changed, 3

[Xen-devel] [PATCH for-next v2 5/9] x86: introduce hypervisor framework

2019-09-30 Thread Wei Liu
We will soon implement Hyper-V support for Xen. Add a framework for that. This requires moving some of the hypervisor_* functions from xen.h to hypervisor.h. Signed-off-by: Wei Liu --- xen/arch/x86/guest/Makefile| 2 + xen/arch/x86/guest/hypervisor.c| 45

[Xen-devel] [PATCH for-next v2 0/9] Port Xen to Hyper-V

2019-09-30 Thread Wei Liu
nd to post patches piece meal when they are ready. Questions and comments are welcome. Thanks, Wei. --- Changes in v2: 1. Introduce and use a hypervisor framework 2. Keep memmap infra under Xen for now Cc: Jan Beulich Cc: Andrew Cooper Cc: Wei Liu Cc: Roger Pau Monné Wei Liu (9): x86:

[Xen-devel] [PATCH for-next v2 9/9] x86: introduce CONFIG_HYPERV and detection code

2019-09-30 Thread Wei Liu
We use the same code structure as we die for Xen. As starters, detect Hyper-V in probe routine. More complex functionalities will be added later. Signed-off-by: Wei Liu --- xen/arch/x86/Kconfig | 9 xen/arch/x86/guest/Makefile| 1 + xen/arch/x86/guest/hyperv

[Xen-devel] [PATCH for-next v2 1/9] x86: introduce CONFIG_GUEST and move code

2019-09-30 Thread Wei Liu
Xen is able to run as a guest on Xen. We plan to make it able to run on Hyper-V as well. Introduce CONFIG_GUEST which is set to true if either running on Xen or Hyper-V is desired. Restructure code hierarchy for new code to come. No functional change intended. Signed-off-by: Wei Liu Reviewed

[Xen-devel] [PATCH for-next v2 4/9] x86: include xen/lib.h in guest/hypercall.h

2019-09-30 Thread Wei Liu
We need ASSERT_UNREACHABLE. Signed-off-by: Wei Liu --- xen/include/asm-x86/guest/hypercall.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/include/asm-x86/guest/hypercall.h b/xen/include/asm-x86/guest/hypercall.h index c9deca6ffc..d0d2f5022d 100644 --- a/xen/include/asm-x86/guest

[Xen-devel] [PATCH for-next RFC 0/8] Port Xen to Hyper-V

2019-09-30 Thread Wei Liu
interfaces. They aren't trivial, and time can be scarce on my side, so I intend to post patches piece meal when they are ready. Questions and comments are welcome. Thanks, Wei. Cc: Jan Beulich Cc: Andrew Cooper Cc: Wei Liu Cc: Roger Pau Monné Wei Liu (8): x86: introduce CONFIG_GUES

[Xen-devel] [PATCH for-next v2 6/9] x86: rename hypervisor_{alloc, free}_unused_page

2019-09-30 Thread Wei Liu
They are used in Xen code only. No functional change. Signed-off-by: Wei Liu --- xen/arch/x86/guest/xen/xen.c| 6 +++--- xen/arch/x86/pv/shim.c | 4 ++-- xen/include/asm-x86/guest/xen.h | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/xen/arch/x86/guest/xen

[Xen-devel] [PATCH for-next v2 7/9] x86: switch xen implementation to use hypervisor framework

2019-09-30 Thread Wei Liu
Take the chance to change probe_hypervisor to hypervisor_probe. Signed-off-by: Wei Liu --- xen/arch/x86/guest/hypervisor.c | 31 +-- xen/arch/x86/guest/xen/pvh-boot.c | 2 +- xen/arch/x86/guest/xen/xen.c | 26 ++ xen/arch/x86/setup.c

[Xen-devel] [PATCH for-next v2 8/9] x86: be more verbose when running on a hypervisor

2019-09-30 Thread Wei Liu
Signed-off-by: Wei Liu --- xen/arch/x86/guest/hypervisor.c| 5 + xen/arch/x86/setup.c | 6 +- xen/include/asm-x86/guest/hypervisor.h | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/guest/hypervisor.c b/xen/arch/x86/guest

Re: [Xen-devel] [PATCH for-next v2 9/9] x86: introduce CONFIG_HYPERV and detection code

2019-09-30 Thread Wei Liu
On Mon, Sep 30, 2019 at 04:00:43PM +0100, Wei Liu wrote: > We use the same code structure as we die for Xen. Urgh. There is a rather unfortunate typo. No software is worth dying for. :-) Wei. ___ Xen-devel mailing list Xen-devel@lists.xenproject.

Re: [Xen-devel] [PATCH v2 01/55] x86/mm: defer clearing page in virt_to_xen_lXe

2019-09-30 Thread Wei Liu
On Mon, Sep 30, 2019 at 11:32:53AM +0100, Hongyan Xia wrote: > From: Wei Liu > > Defer the call to clear_page to the point when we're sure the page is > going to become a page table. > > This is a minor optimisation. No functional change. > > Signed-off-by: Wei Li

Re: [Xen-devel] Xen GCC coverage ARM64 testing - Unexpected Trap: Data Abort

2019-05-03 Thread Wei Liu
On Thu, May 02, 2019 at 09:43:17PM +0100, Julien Grall wrote: > (+ Wei) > > On 5/2/19 5:55 PM, Viktor Mitin wrote: > > Hi Julien, > > Hi, > > > Please find trace log below: > > > > root@h3ulcb:~# xencov reset > > (XEN) Data Abort Trap. Syndrome=0x7 > > (XEN) Walking Hypervisor VA 0x361700 on CP

Re: [Xen-devel] Xen GCC coverage ARM64 testing - Unexpected Trap: Data Abort

2019-05-03 Thread Wei Liu
On Fri, May 03, 2019 at 02:35:08PM +0100, Julien Grall wrote: > Hi Wei, > > On 5/3/19 12:08 PM, Wei Liu wrote: > > On Thu, May 02, 2019 at 09:43:17PM +0100, Julien Grall wrote: > > > (+ Wei) > > > > > > On 5/2/19 5:55 PM, Viktor Mitin

Re: [Xen-devel] Xen GCC coverage ARM64 testing - Unexpected Trap: Data Abort

2019-05-03 Thread Wei Liu
On Fri, May 03, 2019 at 03:16:52PM +0100, Julien Grall wrote: > > > diff --git a/xen/common/libfdt/Makefile b/xen/common/libfdt/Makefile > > > index d81f54b6b8..c075bbf546 100644 > > > --- a/xen/common/libfdt/Makefile > > > +++ b/xen/common/libfdt/Makefile > > > @@ -3,6 +3,7 @@ include Makefile.lib

Re: [Xen-devel] [PATCH] mm: option to _always_ scrub freed domheap pages

2019-05-07 Thread Wei Liu
On Tue, May 07, 2019 at 10:55:51AM +0100, George Dunlap wrote: > On 5/6/19 1:46 PM, Eslam Elnikety wrote: > > Give the administrator further control on when to scrub domheap pages by > > adding > > an option to always scrub. This is a safety feature that, when enabled, > > prevents a (buggy) domai

Re: [Xen-devel] [PATCH] libxl: make vkbd tunable for HVM guests

2019-05-07 Thread Wei Liu
On Tue, May 07, 2019 at 08:35:48AM +, Eslam Elnikety wrote: > Each HVM guest currently gets a vkbd frontend/backend pair (c/s ebbd2561b4c). > This consumes host resources unnecessarily for guests that have no use for > vkbd. Make this behaviour tunable to allow an administrator to choose. The >

[Xen-devel] [PATCH] libxl: don't enable synthetic timer by default

2019-05-07 Thread Wei Liu
It broke Windows installation. More investigation is needed. Don't enable it by default. Signed-off-by: Wei Liu --- Cc: Ian Jackson Cc: Paul Durrant Cc: Juergen Gross --- tools/libxl/libxl_dom.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/libxl/libxl_dom.c b/tools/

[Xen-devel] [PATCH] gitlab-ci: avoid deleting build-each-commit-gcc.log

2019-05-07 Thread Wei Liu
072a96c4901 used `git clean -ffdx` which caused the log to be deleted. Generate the log in the parent directory then move it back. Signed-off-by: Wei Liu --- automation/gitlab-ci/test.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/automation/gitlab-ci/test.yaml b

Re: [Xen-devel] [PATCH v2 2/3] x86/mm: make guest_physmap_add_entry() HVM-only

2019-05-09 Thread Wei Liu
> Signed-off-by: Jan Beulich Reviewed-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel

  1   2   3   4   5   6   7   8   9   10   >