[PATCH] MAINTAINERS: remove myself from various positions

2024-03-14 Thread Wei Liu
I have not been active in the Xen community for some time. Update the MAINTAINERS file to reflect reality. Signed-off-by: Wei Liu --- It has been a pleasure working with all of you. I'm sure we will cross paths in the future. Seabios is in need for a new owner. For now I left my name

Re: [PATCH] xen-netback: use default TX queue size for vifs

2023-10-06 Thread Wei Liu
djusted at runtime. > > Fixes: f942dc2552b8 ('xen network backend driver') > Signed-off-by: Roger Pau Monné Acked-by: Wei Liu

Re: [PATCH 14/15] hyper-v/azure: Remove now superfluous sentinel element from ctl_table array

2023-09-28 Thread Wei Liu
Please change the prefix to "Drivers: hv:" in the subject line in the two patches. On Thu, Sep 28, 2023 at 03:21:39PM +0200, Joel Granados via B4 Relay wrote: > From: Joel Granados > > This commit comes at the tail end of a greater effort to remove the > empty elements at the end of the ctl_tabl

Re: [PATCH] xen/netback: Pass (void *) to virt_to_page()

2023-05-25 Thread Wei Liu
On Wed, May 24, 2023 at 10:11:47PM -0700, Jakub Kicinski wrote: > On Tue, 23 May 2023 16:03:42 +0200 Linus Walleij wrote: > > virt_to_page() takes a virtual address as argument but > > the driver passes an unsigned long, which works because > > the target platform(s) uses polymorphic macros to calc

Re: [PATCH] xen/netback: Pass (void *) to virt_to_page()

2023-05-23 Thread Wei Liu
tectures implement virt_to_pfn() as > a macro, this function becomes polymorphic and accepts both a > (unsigned long) and a (void *). > > Fix this up by an explicit (void *) cast. > > Cc: Wei Liu > Cc: Paul Durrant > Cc: xen-devel@lists.xenproject.org > Cc: net...@vger.kern

Re: [PATCH v1 6/9] KVM: x86: Add Heki hypervisor support

2023-05-08 Thread Wei Liu
On Fri, May 05, 2023 at 05:20:43PM +0200, Mickaël Salaün wrote: > From: Madhavan T. Venkataraman > > Each supported hypervisor in x86 implements a struct x86_hyper_init to > define the init functions for the hypervisor. Define a new init_heki() > entry point in struct x86_hyper_init. Hypervisor

Re: [PATCH v1 5/9] KVM: x86: Add new hypercall to lock control registers

2023-05-08 Thread Wei Liu
On Fri, May 05, 2023 at 05:20:42PM +0200, Mickaël Salaün wrote: > This enables guests to lock their CR0 and CR4 registers with a subset of > X86_CR0_WP, X86_CR4_SMEP, X86_CR4_SMAP, X86_CR4_UMIP, X86_CR4_FSGSBASE > and X86_CR4_CET flags. > > The new KVM_HC_LOCK_CR_UPDATE hypercall takes two argumen

Re: [PATCH v1 3/9] virt: Implement Heki common code

2023-05-08 Thread Wei Liu
On Fri, May 05, 2023 at 05:20:40PM +0200, Mickaël Salaün wrote: > From: Madhavan T. Venkataraman > > Hypervisor Enforced Kernel Integrity (Heki) is a feature that will use > the hypervisor to enhance guest virtual machine security. > > Configuration > = > > Define the config variabl

Re: [PATCH 3/7] hv: simplify sysctl registration

2023-03-06 Thread Wei Liu
On Thu, Mar 02, 2023 at 12:46:08PM -0800, Luis Chamberlain wrote: > register_sysctl_table() is a deprecated compatibility wrapper. > register_sysctl() can do the directory creation for you so just use > that. > > Signed-off-by: Luis Chamberlain Reviewed-by: Wei Liu

Re: [PATCH 1/6] hyperv: Make remove callback of hyperv driver void returned

2022-12-06 Thread Wei Liu
On Mon, Dec 05, 2022 at 11:36:39PM +0800, Dawei Li wrote: > Since commit fc7a6209d571 ("bus: Make remove callback return > void") forces bus_type::remove be void-returned, it doesn't > make much sense for any bus based driver implementing remove > callbalk to return non-void to its caller. > > Thi

Re: [PATCH] xen-netback: use kstrdup instead of open-coding it

2022-09-23 Thread Wei Liu
On Wed, Sep 21, 2022 at 02:16:17AM +, cgel@gmail.com wrote: > From: Minghao Chi > > use kstrdup instead of open-coding it. > > Reported-by: Zeal Robot > Signed-off-by: Minghao Chi Acked-by: Wei Liu

Re: [PATCH v2] x86/PCI: Prefer MMIO over PIO on VMware hypervisor

2022-09-12 Thread Wei Liu
On Tue, Sep 06, 2022 at 12:38:37PM +0530, Ajay Kaher wrote: > During boot-time there are many PCI config reads, these could be performed > either using Port IO instructions (PIO) or memory mapped I/O (MMIO). > > PIO are less efficient than MMIO, they require twice as many PCI accesses > and PIO in

Re: [PATCH] xen/netback: fix incorrect usage of RING_HAS_UNCONSUMED_REQUESTS()

2022-05-30 Thread Wei Liu
On Mon, May 30, 2022 at 01:34:59PM +0200, Juergen Gross wrote: > Commit 6fac592cca60 ("xen: update ring.h") missed to fix one use case > of RING_HAS_UNCONSUMED_REQUESTS(). > > Reported-by: Jan Beulich > Fixes: 6fac592cca60 ("xen: update ring.h") > Signed-off-by: Juergen Gross Acked-by: Wei Liu

Re: [PATCH] xen/netback: do some code cleanup

2022-05-30 Thread Wei Liu
On Mon, May 30, 2022 at 01:41:03PM +0200, Juergen Gross wrote: > Remove some unused macros and functions, make local functions static. > > Signed-off-by: Juergen Gross Acked-by: Wei Liu

Re: Virtio on Xen with Rust

2022-04-14 Thread Wei Liu
On Thu, Apr 14, 2022 at 02:36:12PM +0100, Alex Bennée wrote: > > Wei Liu writes: > > > On Thu, Apr 14, 2022 at 12:07:10PM +, Andrew Cooper wrote: > >> On 14/04/2022 12:45, Wei Liu wrote: > >> > Hi Viresh > >> > > >> > This is very

Re: Virtio on Xen with Rust

2022-04-14 Thread Wei Liu
On Thu, Apr 14, 2022 at 12:07:10PM +, Andrew Cooper wrote: > On 14/04/2022 12:45, Wei Liu wrote: > > Hi Viresh > > > > This is very cool. > > > > On Thu, Apr 14, 2022 at 02:53:58PM +0530, Viresh Kumar wrote: > >> +xen-devel > >> >

Re: Virtio on Xen with Rust

2022-04-14 Thread Wei Liu
Hi Viresh This is very cool. On Thu, Apr 14, 2022 at 02:53:58PM +0530, Viresh Kumar wrote: > +xen-devel > > On 14-04-22, 14:45, Viresh Kumar wrote: > > Hello, > > > > We verified our hypervisor-agnostic Rust based vhost-user backends with Qemu > > based setup earlier, and there was growing conc

Re: [PATCH] libxl: force netback to wait for hotplug execution before connecting

2022-01-25 Thread Wei Liu
is required so that netback doesn't skip state 2 (InitWait) and > thus blocks libxl waiting for such state in order to launch the > hotplug script (see libxl__wait_device_connection). > > Reported-by: James Dingwall > Signed-off-by: Roger Pau Monné > Tested-by: James Dingwall Reviewed-by: Wei Liu

Re: [PATCH] x86/APIC: mark wait_tick_pvh() __init

2022-01-17 Thread Wei Liu
On Mon, Jan 17, 2022 at 11:34:20AM +0100, Jan Beulich wrote: > It should have been that way right from its introduction by 02e0de011555 > ("x86: APIC timer calibration when running as a guest"). > > Signed-off-by: Jan Beulich Reviewed-by: Wei Liu > > --- a/xen

[PATCH] Config.mk: update seabios to 1.15.0

2022-01-16 Thread Wei Liu
Signed-off-by: Wei Liu --- Config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Config.mk b/Config.mk index 1c1998a5a8e0..38e88b2927d2 100644 --- a/Config.mk +++ b/Config.mk @@ -233,7 +233,7 @@ OVMF_UPSTREAM_REVISION ?= 7b4a99be8a39c12d3a7fc4b8db9f0eab4ac688d5

Re: SeaBIOS 1.15.0

2022-01-11 Thread Wei Liu
On Tue, Jan 11, 2022 at 09:37:56AM +0100, Jan Beulich wrote: > Wei, > > iirc it was you who has been looking after our SeaBIOS use. Seeing that > 1.15.0 was tagged, should we update the version we use by default? (I > would have asked on irc, but I didn't see you there.) > Yes, we should. I wil

Re: [PATCH V3 3/5] hyperv/IOMMU: Enable swiotlb bounce buffer for Isolation VM

2021-12-02 Thread Wei Liu
On Wed, Dec 01, 2021 at 11:02:54AM -0500, Tianyu Lan wrote: [...] > diff --git a/arch/x86/xen/pci-swiotlb-xen.c b/arch/x86/xen/pci-swiotlb-xen.c > index 46df59aeaa06..30fd0600b008 100644 > --- a/arch/x86/xen/pci-swiotlb-xen.c > +++ b/arch/x86/xen/pci-swiotlb-xen.c > @@ -4,6 +4,7 @@ > > #include

Re: [PATCH V3 2/5] x86/hyper-v: Add hyperv Isolation VM check in the cc_platform_has()

2021-12-02 Thread Wei Liu
On Wed, Dec 01, 2021 at 11:02:53AM -0500, Tianyu Lan wrote: > From: Tianyu Lan > > Hyper-V provides Isolation VM which has memory encrypt support. Add > hyperv_cc_platform_has() and return true for check of GUEST_MEM_ENCRYPT > attribute. > > Signed-off-by: Tianyu Lan > --- > arch/x86/kernel/cc

Re: [patch 11/22] x86/hyperv: Refactor hv_msi_domain_free_irqs()

2021-12-02 Thread Wei Liu
On Sat, Nov 27, 2021 at 02:18:51AM +0100, Thomas Gleixner wrote: > No point in looking up things over and over. Just look up the associated > irq data and work from there. > > No functional change. > > Signed-off-by: Thomas Gleixner Acked-by: Wei Liu

Re: [PATCH net-next v2 01/12] net: xen: use eth_hw_addr_set()

2021-10-25 Thread Wei Liu
> the writes to it got through appropriate helpers. > > Signed-off-by: Jakub Kicinski Acked-by: Wei Liu

Re: [PATCH V3 03/13] x86/HV: Add new hvcall guest address host visibility support

2021-08-10 Thread Wei Liu
On Mon, Aug 09, 2021 at 01:56:07PM -0400, Tianyu Lan wrote: > From: Tianyu Lan > > Add new hvcall guest address host visibility support to mark > memory visible to host. Call it inside set_memory_decrypted > /encrypted(). Add HYPERVISOR feature check in the > hv_is_isolation_supported() to optimi

Re: [PATCH V3 01/13] x86/HV: Initialize GHCB page in Isolation VM

2021-08-10 Thread Wei Liu
On Mon, Aug 09, 2021 at 01:56:05PM -0400, Tianyu Lan wrote: [...] > static int hv_cpu_init(unsigned int cpu) > { > union hv_vp_assist_msr_contents msr = { 0 }; > @@ -85,6 +111,8 @@ static int hv_cpu_init(unsigned int cpu) > } > } > > + hyperv_init_ghcb(); > + Why

Re: PING Re: [PATCH 00/14] Use const whether we point to literal strings (take 1)

2021-05-17 Thread Wei Liu
On Mon, May 10, 2021 at 06:49:01PM +0100, Julien Grall wrote: > Hi, > > Ian, Wei, Anthony, can I get some feedbacks on the tools side? I think this is moving to the right direction so Acked-by: Wei Liu

Re: [PATCH v2 2/6] tools/libs/ctrl: fix xc_core_arch_map_p2m() to support linear p2m table

2021-05-17 Thread Wei Liu
On Wed, Apr 21, 2021 at 12:17:49PM +0200, Juergen Gross wrote: > On 21.04.21 12:13, Wei Liu wrote: > > On Mon, Apr 12, 2021 at 05:22:32PM +0200, Juergen Gross wrote: > > > The core of a pv linux guest produced via "xl dump-core" is not usable > > > as since ker

Re: [PATCH] automation: save xen config before building

2021-05-05 Thread Wei Liu
On Wed, May 05, 2021 at 02:23:37PM +0200, Roger Pau Monné wrote: > On Wed, May 05, 2021 at 11:45:16AM +0000, Wei Liu wrote: > > It is reported that failed randconfig runs are missing the config file > > which makes debugging impossible. Fix this by moving the line that > > c

Re: [XEN PATCH v2] xl: constify cmd_table entries

2021-05-05 Thread Wei Liu
ony PERARD > Reviewed-by: Julien Grall Acked-by: Wei Liu

[PATCH] automation: save xen config before building

2021-05-05 Thread Wei Liu
It is reported that failed randconfig runs are missing the config file which makes debugging impossible. Fix this by moving the line that copies the config file before the build is executed. Signed-off-by: Wei Liu --- automation/scripts/build | 5 - 1 file changed, 4 insertions(+), 1

Re: [PATCH RFCv2 12/15] xen/arm: add Persistent Map (PMAP) infrastructure

2021-04-28 Thread Wei Liu
On Sun, Apr 25, 2021 at 09:13:15PM +0100, Julien Grall wrote: > From: Wei Liu > > The basic idea is like Persistent Kernel Map (PKMAP) in Linux. We > pre-populate all the relevant page tables before the system is fully > set up. > > We will need it on Arm in order to rework

Re: [PATCH v2 15/21] libs/guest: obtain a compatible cpu policy from two input ones

2021-04-21 Thread Wei Liu
On Wed, Apr 21, 2021 at 01:26:49PM +0200, Roger Pau Monné wrote: > On Wed, Apr 21, 2021 at 10:22:39AM +0000, Wei Liu wrote: > > On Tue, Apr 13, 2021 at 04:01:33PM +0200, Roger Pau Monne wrote: > > > Introduce a helper to obtain a compatible cpu policy based on two > &

Re: [PATCH v4] tools: create libxensaverestore

2021-04-21 Thread Wei Liu
gt; 67841 1872 8 69721 11059 > saverestore/libxensaverestore.so.4.15.0 > > While touching the files anyway, take the opportunity to drop the > reduntant xg_sr_ filename prefix. > > Signed-off-by: Olaf Hering Acked-by: Wei Liu

Re: [PATCH v3] tools: create libxensaverestore

2021-04-21 Thread Wei Liu
On Tue, Apr 13, 2021 at 07:20:27PM +0200, Olaf Hering wrote: > Move all save/restore related code from libxenguest.so into a separate > library libxensaverestore.so. The only consumer is libxl-save-helper. > There is no need to have the moved code mapped all the time in binaries > where libxenguest

Re: [PATCH v2 15/21] libs/guest: obtain a compatible cpu policy from two input ones

2021-04-21 Thread Wei Liu
On Tue, Apr 13, 2021 at 04:01:33PM +0200, Roger Pau Monne wrote: > Introduce a helper to obtain a compatible cpu policy based on two > input cpu policies. Currently this is done by and'ing all CPUID leaves > and MSR entries, except for MSR_ARCH_CAPABILITIES which has the RSBA > bit or'ed. > I tho

Re: [PATCH v2 6/6] tools/libs/guest: make some definitions private to libxenguest

2021-04-21 Thread Wei Liu
On Mon, Apr 12, 2021 at 05:22:36PM +0200, Juergen Gross wrote: > There are some definitions which are used in libxenguest only now. > Move them from libxenctrl over to libxenguest. > > Remove an unused macro. > > Signed-off-by: Juergen Gross Acked-by: Wei Liu

Re: [PATCH v2 5/6] tools/libs: move xc_core* from libxenctrl to libxenguest

2021-04-21 Thread Wei Liu
eing used by xc_domain_memory_mapping(), which is used by qemu. > So leave the xc_core_arch_auto_translated_physmap() functionality in > libxenctrl. > > This will make it easier to merge common functionality of xc_core* > and xg_sr_save*. > > Signed-off-by: Juergen Gross Acked-by: Wei Liu

Re: [PATCH v2 4/6] tools/libs: move xc_resume.c to libxenguest

2021-04-21 Thread Wei Liu
On Mon, Apr 12, 2021 at 05:22:34PM +0200, Juergen Gross wrote: > The guest suspend functionality is already part of libxenguest. Move > the resume functionality from libxenctrl to libxenguest, too. > > Signed-off-by: Juergen Gross Acked-by: Wei Liu

Re: [PATCH v2 3/6] tools/libs/ctrl: use common p2m mapping code in xc_domain_resume_any()

2021-04-21 Thread Wei Liu
this code is needed for colo/remus only. > > Switching to xc_core_arch_map_p2m() drops the need to bail out for > bitness of tool stack and guest differing. > > Signed-off-by: Juergen Gross Acked-by: Wei Liu

Re: [PATCH v2 1/6] tools/libs/guest: fix max_pfn setting in map_p2m()

2021-04-21 Thread Wei Liu
o find last used pfn when migrating") > Signed-off-by: Juergen Gross Acked-by: Wei Liu

Re: [PATCH v2 2/6] tools/libs/ctrl: fix xc_core_arch_map_p2m() to support linear p2m table

2021-04-21 Thread Wei Liu
On Mon, Apr 12, 2021 at 05:22:32PM +0200, Juergen Gross wrote: > The core of a pv linux guest produced via "xl dump-core" is not usable > as since kernel 4.14 only the linear p2m table is kept if Xen indicates > it is supporting that. Unfortunately xc_core_arch_map_p2m() is still > supporting the 3

Re: [PATCH] tools/libs/light: Remove unnecessary libxl_list_vm() call

2021-04-21 Thread Wei Liu
reminiscence. Moreover, the call becomes very expensive when there is a > considerable number of VMs (~1000 instances) running on the host. > Nice catch. > Signed-off-by: Costin Lupu Acked-by: Wei Liu > --- > tools/libs/light/libxl_create.c | 11 +-- > 1 file changed

Re: [PATCH] tools: Drop XGETTEXT from Tools.mk.in

2021-04-21 Thread Wei Liu
On Fri, Apr 16, 2021 at 04:59:41PM +0100, Andrew Cooper wrote: > This hunk was missing from the work to drop gettext as a build dependency. > > Fixes: e21a6a4f96 ("tools: Drop gettext as a build dependency") > Signed-off-by: Andrew Cooper Acked-by: Wei Liu > --- >

Re: [PATCH] CI: Drop TravisCI

2021-04-21 Thread Wei Liu
On Wed, Apr 21, 2021 at 10:27:05AM +0100, Andrew Cooper wrote: > Travis-ci.org is shutting down shortly. The arm cross-compile testing has > been broken for a long time now, and all testing has now been superseded by > our Gitlab infrastructure. > > Signed-off-by: Andrew Cooper

Re: [PATCH] xen/evtchn: Change irq_info lock to raw_spinlock_t

2021-04-07 Thread Wei Liu
uct irq_info from spinlock_t > to raw_spinlock_t > > Cc: sta...@vger.kernel.org > Fixes: 25da4618af24 ("xen/events: don't unmask an event channel > when an eoi is pending") > > Signed-off-by: Luca Fancellu Reviewed-by: Wei Liu

Re: [PATCH v2 3/3] x86: avoid building COMPAT code when !HVM && !PV32

2021-04-06 Thread Wei Liu
o actually be off in this case, dealing with fallout. > > Signed-off-by: Jan Beulich Reviewed-by: Wei Liu

Re: [PATCH v2 2/3] x86: slim down hypercall handling when !PV32

2021-04-06 Thread Wei Liu
s no > purpose in such a build. > > Signed-off-by: Jan Beulich Reviewed-by: Wei Liu

Re: [PATCH v2 1/3] x86: don't build unused entry code when !PV32

2021-04-06 Thread Wei Liu
part because this code actually references compat/entry.S). > > This has the side effect of moving the tail part (now at compat_syscall) > of the code out of .text.entry (in line with e.g. compat_sysenter). > > Signed-off-by: Jan Beulich Reviewed-by: Wei Liu

Re: [PATCH v2 for-4.14] tools: Fix pkg-config file for libxenstore

2021-03-23 Thread Wei Liu
On Mon, Mar 22, 2021 at 04:38:47PM +, Andrew Cooper wrote: > There are no dependenices on evtchn, ctrl or gnttab. > > Fixes: 1b008e99 ("tools: provide pkg-config file for libxenstore") > Signed-off-by: Andrew Cooper Acked-by: Wei Liu

Re: [PATCH] automation: remove allow_failure from Alpine Linux jobs

2021-03-15 Thread Wei Liu
On Fri, Mar 12, 2021 at 01:05:26PM -0800, Stefano Stabellini wrote: > Now that the Alpine Linux build jobs complete successfully on staging we > can remove the "allow_failure: true" tag. > > Signed-off-by: Stefano Stabellini Acked-by: Wei Liu

Re: [PATCH] automation: add arm32 cross-build tests for Xen

2021-03-12 Thread Wei Liu
On Fri, Feb 12, 2021 at 05:38:13PM -0800, Stefano Stabellini wrote: > Add a debian build container with cross-gcc for arm32 installed. > Add build jobs to cross-compile Xen-only for arm32. > > Signed-off-by: Stefano Stabellini Acked-by: Wei Liu Cc Ian. The risk is small: Gitla

Re: [PATCH 1/2] xen-netback: add module parameter to disable ctrl-ring

2021-03-09 Thread Wei Liu
+ the author On Tue, Mar 09, 2021 at 07:21:22PM +, Wei Liu wrote: > On Tue, Mar 09, 2021 at 02:34:56PM +, Paul Durrant wrote: > > On 09/03/2021 14:10, Hsu, Chiahao wrote: > > > On 25.02.21, 13:29, "Hsu, Chiahao" wrote: > > > > > >

Re: [PATCH 1/2] xen-netback: add module parameter to disable ctrl-ring

2021-03-09 Thread Wei Liu
On Tue, Mar 09, 2021 at 02:34:56PM +, Paul Durrant wrote: > On 09/03/2021 14:10, Hsu, Chiahao wrote: > > On 25.02.21, 13:29, "Hsu, Chiahao" wrote: > > > > In order to support live migration of guests between kernels > > that do and do not support 'feature-ctrl-ring', we add a > >

Re: [PATCH-for-4.15] tools/libs/light: fix xl save -c handling

2021-02-19 Thread Wei Liu
_resume_state for > non-HVM domains. > > Fixes: 6298f0eb8f443 ("libxl: Re-introduce libxl__domain_resume") > Reported-by: Marek Marczykowski-Górecki > Signed-off-by: Juergen Gross Acked-by: Wei Liu

Re: [PATCH for-4.15] automation: Add Ubuntu Focal builds

2021-02-11 Thread Wei Liu
> > > > Signed-off-by: Andrew Cooper > > --- > > CC: Doug Goldstein > > CC: George Dunlap > > CC: Ian Jackson > > CC: Jan Beulich > > CC: Stefano Stabellini > > CC: Wei Liu > > CC: Julien Grall > > Forgot to say - > https:/

Re: [PATCH for-4.15] tools/libxl: Document where the magic MAC numbers come from

2021-02-11 Thread Wei Liu
On Wed, Feb 10, 2021 at 01:53:35PM +, Andrew Cooper wrote: > Matches the comment in the xl-network-configuration manpage. > > Signed-off-by: Andrew Cooper Acked-by: Wei Liu

Re: [PATCH v2 4/8] xen/netback: fix spurious event detection for common event case

2021-02-11 Thread Wei Liu
e a event being spurious if no rx OR no tx requests are > pending. > > Fix that plus using local variables for rx/tx pending indicators in > order to split function calls and if condition. > > Fixes: 23025393dbeb3b ("xen/netback: use lateeoi irq binding") > Signed-off-by: Juergen Gross Reviewed-by: Wei Liu

Re: [PATCH 4/7] xen/events: link interdomain events to associated xenbus device

2021-02-09 Thread Wei Liu
aces to take the pointer to the xenbus device as a > parameter instead of the domain id of the other side. > > While at it remove the stale prototype of bind_evtchn_to_irq_lateeoi(). > > Signed-off-by: Juergen Gross Reviewed-by: Wei Liu

Re: [PATCH] xen/netback: avoid race in xenvif_rx_ring_slots_available()

2021-02-02 Thread Wei Liu
> associated queue held. > > Reported-by: Igor Druzhinin > Fixes: 23025393dbeb3b8b3 ("xen/netback: use lateeoi irq binding") > Cc: sta...@vger.kernel.org > Signed-off-by: Juergen Gross Acked-by: Wei Liu

Re: [PATCH] memory: fix build with COVERAGE but !HVM

2021-02-01 Thread Wei Liu
HVM-only") > Reported-by: Oleksandr Tyshchenko > Signed-off-by: Julien Grall > Signed-off-by: Jan Beulich > Release-Acked-by: Ian Jackson Reviewed-by: Wei Liu

Re: [PATCH v4] tools/foreignmem: Support querying the size of a resource

2021-01-28 Thread Wei Liu
y c/s 4a64e2bb39 "libs/foreignmemory: Implement on NetBSD". > > Signed-off-by: Andrew Cooper > Reviewed-by: Roger Pau Monné Acked-by: Wei Liu

Re: [PATCH] tools/libs: honor build dependencies for recently moved subdirs

2021-01-26 Thread Wei Liu
king care of in individual Makefile-s. > > Signed-off-by: Jan Beulich > Release-acked-by: Ian Jackson Acked-by: Wei Liu

Re: [PATCH v1] mm/memory_hotplug: MEMHP_MERGE_RESOURCE -> MHP_MERGE_RESOURCE

2021-01-26 Thread Wei Liu
tplug now. > > [1] > https://lore.kernel.org/linux-mm/c37de2d0-28a1-4f7d-f944-cfd7d81c3...@redhat.com/ > [...] > Signed-off-by: David Hildenbrand Acked-by: Wei Liu

Re: [PATCH v2 5/5] libxenguest: simplify kernel decompression

2021-01-21 Thread Wei Liu
Signed-off-by: Jan Beulich I think the code changes are correct: Acked-by: Wei Liu But a second pair of eyes would be useful here since this patch is complex. Wei.

Re: [PATCH v2 1/5] libxenguest: support zstd compressed kernels

2021-01-21 Thread Wei Liu
On Thu, Jan 21, 2021 at 04:05:39PM +0100, Jan Beulich wrote: > On 21.01.2021 16:01, Wei Liu wrote: > > On Tue, Jan 19, 2021 at 04:15:25PM +0100, Jan Beulich wrote: > >> This follows the logic used for other decompression methods utilizing an > >> external library, albe

Re: [PATCH v2 4/5] libxenguest: drop redundant decompression declarations

2021-01-21 Thread Wei Liu
On Tue, Jan 19, 2021 at 04:16:53PM +0100, Jan Beulich wrote: > The ones in xg_dom_decompress_unsafe.h suffice. > > Signed-off-by: Jan Beulich Acked-by: Wei Liu

Re: [PATCH v2 3/5] libxenguest: "standardize" LZO kernel decompression code

2021-01-21 Thread Wei Liu
r to > freed memory in dom->kernel_blob in case of a decompression error. > > Signed-off-by: Jan Beulich Acked-by: Wei Liu

Re: [PATCH v2 2/5] xen/decompress: make helper symbols static

2021-01-21 Thread Wei Liu
he top level functions will now be non-static > in stubdom builds of libxenguest, but I think that's acceptable. This > does require declaring them first, though, as the compiler warns about > the lack of declarations. > > Signed-off-by: Jan Beulich > Acked-by: Andrew Cooper Acked-by: Wei Liu

Re: [PATCH v2 1/5] libxenguest: support zstd compressed kernels

2021-01-21 Thread Wei Liu
t; fail. Leverage the field instead to allocate the output buffer in one > go, i.e. without incrementally realloc()ing. > > Note that, where possible, instead of #ifdef-ing xen/*.h inclusions, > they get removed. > > Signed-off-by: Jan Beulich Acked-by: Wei Liu > --- >

Re: [PATCH v2 4/4] tools/libs: Apply MSR policy to a guest

2021-01-21 Thread Wei Liu
On Wed, Jan 20, 2021 at 05:49:12PM -0500, Boris Ostrovsky wrote: > When creating a guest, if ignore_msrs option has been specified, > apply it to guest's MSR policy. > > Signed-off-by: Boris Ostrovsky Acked-by: Wei Liu

Re: [PATCH v2 1/4] xl: Add support for ignore_msrs option

2021-01-21 Thread Wei Liu
On Wed, Jan 20, 2021 at 05:49:09PM -0500, Boris Ostrovsky wrote: > This option allows guest administrator specify what should happen when > guest accesses an MSR which is not explicitly emulated by the hypervisor. > > Signed-off-by: Boris Ostrovsky > --- > docs/man/xl.cfg.5.pod.in | 20 +

Re: [PATCH v7 7/7] libxl / libxlu: support 'xl pci-attach/detach' by name

2021-01-21 Thread Wei Liu
ulate the 'name' field of 'libxl_device_pci'. > > If the 'name' field is non-NULL then both libxl_device_pci_add() and > libxl_device_pci_remove() will use it to look up the device BDF in > the list of assignable devices. > > Signed-off-by: Paul Durrant Acked-by: Wei Liu

Re: [PATCH v7 5/7] xl: support naming of assignable devices

2021-01-21 Thread Wei Liu
'xl pci-assignable-list' will take a optional '--show-names' flag which > determines whether names are displayed in its output. > > Signed-off-by: Paul Durrant Acked-by: Wei Liu

Re: [PATCH v7 4/7] libxl: add 'name' field to 'libxl_device_pci' in the IDL...

2021-01-21 Thread Wei Liu
gt; NOTE: This patch also fixes whitespace in the declaration of > 'libxl_device_pci' > in the IDL. > > Signed-off-by: Paul Durrant Acked-by: Wei Liu

Re: [PATCH v7 3/7] libxl: stop setting 'vdevfn' in pci_struct_fill()

2021-01-21 Thread Wei Liu
ld directly (after proper structure initialization), avoiding > the need for a local variable. > > A subsequent patch will also make use of pci_struct_fill() in a context > where 'vdevfn' may already have been set. > > Signed-off-by: Paul Durrant Acked-by: Wei Liu

Re: [PATCH 0/3] automation: build qemu-system-aarch64 and use it for tests

2021-01-06 Thread Wei Liu
fano Stabellini (3): > automation: add qemu-system-aarch64 to test-artifacts > automation: add a job to import qemu-system-aarch64 into the pipeline > automation: use test-artifacts/qemu-system-aarch64 instead of Debian's Acked-by: Wei Liu I do wonder if there is a way to not build QEMU during every pipeline run though...

Re: [PATCH] x86/dpci: EOI interrupt regardless of it's masking status

2021-01-06 Thread Wei Liu
Typo in subject line ("it's").

Re: [PATCH v1] tools: ipxe: update for fixing build with GCC10 [and 1 more messages]

2021-01-06 Thread Wei Liu
On Wed, Jan 06, 2021 at 11:25:34AM +, Wei Liu wrote: > On Wed, Jan 06, 2021 at 11:23:43AM +, Ian Jackson wrote: > > Wei Liu writes ("Re: [PATCH v1] tools: ipxe: update for fixing build with > > GCC10"): > > > On Mon, Jan 04, 2021 at 12:52:23PM +0100, Ol

Re: [PATCH v1] tools: ipxe: update for fixing build with GCC10 [and 1 more messages]

2021-01-06 Thread Wei Liu
On Wed, Jan 06, 2021 at 11:23:43AM +, Ian Jackson wrote: > Wei Liu writes ("Re: [PATCH v1] tools: ipxe: update for fixing build with > GCC10"): > > On Mon, Jan 04, 2021 at 12:52:23PM +0100, Olaf Hering wrote: > > > Update to v1.21.1 to fix build in Tu

Re: [PATCH] xsm/dummy: harden against speculative abuse

2021-01-05 Thread Wei Liu
et && evaluate_nospec(src->target == target) ) > > return 0; > > /* fall through */ > > case XSM_PRIV: > > -if ( src->is_privileged ) > > +if ( !is_control_domain(src) ) > > return 0; > > return -EPERM; > > And a stray ! slipped in here. Now fixed. FWIW: Reviewed-by: Wei Liu > > Jan

Re: [PATCH v10 00/25] tools/xenstore: support live update for xenstored

2021-01-05 Thread Wei Liu
On Tue, Dec 15, 2020 at 05:35:38PM +0100, Juergen Gross wrote: > Today Xenstore is not restartable. This means a Xen server needing an > update of xenstored has to be rebooted in order to let this update > become effective. > > This patch series is changing that: The internal state of xenstored >

Re: [PATCH] libxl: cleanup remaining backend xs dirs after driver domain

2021-01-05 Thread Wei Liu
; > > > Signed-off-by: Marek Marczykowski-Górecki > > Ping? Acked-by: Wei Liu

Re: [XEN PATCH v2] docs: set date to SOURCE_DATE_EPOCH if available

2021-01-05 Thread Wei Liu
On Thu, Dec 24, 2020 at 08:02:37PM +0100, Hans van Kranenburg wrote: > Hi, > > On 12/23/20 5:56 PM, Maximilian Engelhardt wrote: > > check if a GNU date that supports the '-u -d @...' options and syntax or > > a BSD date are available. If so, use the appropriate options for the > > date command to

Re: [PATCH v1] tools: ipxe: update for fixing build with GCC10

2021-01-05 Thread Wei Liu
On Mon, Jan 04, 2021 at 12:52:23PM +0100, Olaf Hering wrote: > Update to v1.21.1 to fix build in Tumbleweed, which has been broken > since months due to lack of new release. > > Signed-off-by: Olaf Hering Acked-by: Wei Liu > --- > tools/firmware/etherboot/Makefile | 2 +- &g

Re: [PATCH v1] tools: handle more than 16T in precopy_stats

2021-01-05 Thread Wei Liu
On Tue, Jan 05, 2021 at 11:54:11AM +, Wei Liu wrote: > On Tue, Jan 05, 2021 at 09:30:48AM +0100, Olaf Hering wrote: > > total_written tracks the number of transferred dirty pages. > > > > Signed-off-by: Olaf Hering > > Acked-by: Wei Liu I've added libxengue

Re: [PATCH v1] tools: handle more than 16T in precopy_stats

2021-01-05 Thread Wei Liu
On Tue, Jan 05, 2021 at 09:30:48AM +0100, Olaf Hering wrote: > total_written tracks the number of transferred dirty pages. > > Signed-off-by: Olaf Hering Acked-by: Wei Liu > --- > tools/include/xenguest.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > di

Re: [PATCH 0/2] libs: implement some missing functions on FreeBSD

2021-01-05 Thread Wei Liu
On Tue, Jan 05, 2021 at 11:25:44AM +0100, Roger Pau Monne wrote: > Add support for dm_op, restrict and map resource ioctls on FreeBSD. > > Roger Pau Monne (2): > libs/foreignmemory: implement the missing functions on FreeBSD > libs/devicemodel: add dm_op support for FreeBSD Acked-by: Wei Liu

Re: [xen-unstable-smoke bisection] complete build-amd64-libvirt

2020-12-16 Thread Wei Liu
On Wed, Dec 16, 2020 at 10:43:57AM +, Wei Liu wrote: > Paul, are you able to cook up a patch today? If not I will revert the > offending patch(es). > I've reverted the offending 8 patches for now. Wei.

Re: [xen-unstable-smoke bisection] complete build-amd64-libvirt

2020-12-16 Thread Wei Liu
t; > that only require BDF information, rather than passing a > > 'libxl_device_pci' > > structure which is only partially filled. In this patch only the > > minimal > > mechanical changes necessary to deal with the structural changes are &g

Re: [PATCH v1 3/3] tools: add API to work with sevaral bits at once

2020-12-15 Thread Wei Liu
On Tue, Dec 15, 2020 at 05:29:17PM +0100, Olaf Hering wrote: > Am Tue, 15 Dec 2020 16:22:44 + > schrieb Wei Liu : > > > What's wrong with requiring the input addr be const unsigned long *? > > Probably nothing. In the end I just borrowed the prototypes from the

Re: [PATCH v2 3/4] x86/PV: avoid double stack reset during schedule tail handling

2020-12-15 Thread Wei Liu
by: Jan Beulich > Reviewed-by: Juergen Gross Reviewed-by: Wei Liu

Re: [PATCH v2 2/4] x86: clobber registers in switch_stack_and_jump() when !LIVEPATCH

2020-12-15 Thread Wei Liu
On Tue, Dec 15, 2020 at 05:12:12PM +0100, Jan Beulich wrote: > In order to have the same effect on registers as a call to > check_for_livepatch_work() may have, clobber all call-clobbered > registers in debug builds. > > Signed-off-by: Jan Beulich Reviewed-by: Wei Liu

Re: [PATCH v2 1/4] x86: verify function type (and maybe attribute) in switch_stack_and_jump()

2020-12-15 Thread Wei Liu
y() along with adding the attribute, also restrict > its scope. > > Signed-off-by: Jan Beulich > Reviewed-by: Juergen Gross Reviewed-by: Wei Liu

Re: [PATCH v1 3/3] tools: add API to work with sevaral bits at once

2020-12-15 Thread Wei Liu
On Wed, Dec 09, 2020 at 04:54:51PM +0100, Olaf Hering wrote: > Introduce new API to test if a fixed number of bits is clear or set, > and clear or set them all at once. > > The caller has to make sure the input bitnumber is a multiply of > BITS_PER_LONG. > > This API avoids the loop over each bi

Re: [PATCH v1 2/3] tools: remove unused ORDER_LONG

2020-12-15 Thread Wei Liu
On Wed, Dec 09, 2020 at 04:54:50PM +0100, Olaf Hering wrote: > There are no users left, xenpaging has its own variant. > The last user was removed with commit 11d0044a168994de85b9b328452292852aedc871 > > Signed-off-by: Olaf Hering Acked-by: Wei Liu

Re: [PATCH v1 1/3] tools: allocate bitmaps in units of unsigned long

2020-12-15 Thread Wei Liu
d-off-by: Olaf Hering Acked-by: Wei Liu I can see where you're coming from. This (internal) API's returned pointer is being assigned to unsigned long *. > --- > tools/libs/ctrl/xc_bitops.h | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a

Re: [PATCH v6 23/25] xl: support naming of assignable devices

2020-12-15 Thread Wei Liu
x27;--show-names' flag which > determines whether names are displayed in its output. > > Signed-off-by: Paul Durrant Acked-by: Wei Liu

Re: [PATCH v6 22/25] libxl: introduce libxl_pci_bdf_assignable_add/remove/list/list_free(), ...

2020-12-15 Thread Wei Liu
two functions. They will be added in > a subsequent patch. > > libxl_device_pci_assignable_add/remove/list/list_free() are left in place > for compatibility but are re-implemented in terms of the newly introduced > functions. > > Signed-off-by: Paul Durrant > --- > Cc: Ian Jackson > Cc: Wei Liu > Cc: Anthony PERARD Acked-by: Wei Liu

  1   2   3   4   5   6   7   8   9   10   >