[Xen-devel] [xen-unstable test] 146365: regressions - FAIL

2020-01-21 Thread osstest service owner
flight 146365 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/146365/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemut-stubdom-debianhvm-amd64-xsm 10 debian-hvm-install fail REGR. vs.

Re: [Xen-devel] [PATCH v2] ns16550: Add ACPI support for ARM only

2020-01-21 Thread Wei Xu
Hi Jan, On 2020/1/21 19:13, Jan Beulich wrote: > On 21.01.2020 04:44, Wei Xu wrote: >> --- a/xen/drivers/char/ns16550.c >> +++ b/xen/drivers/char/ns16550.c >> @@ -1620,6 +1620,66 @@ DT_DEVICE_START(ns16550, "NS16550 UART", >> DEVICE_SERIAL) >> DT_DEVICE_END >> >> #endif /* HAS_DEVICE_TREE

Re: [Xen-devel] [PATCH] arm/acpi: Add __acpi_unmap_table function for ARM

2020-01-21 Thread Wei Xu
Hi Julien, On 2020/1/21 19:25, Julien Grall wrote: > Hi Jan, > > On 21/01/2020 11:02, Jan Beulich wrote: >> On 21.01.2020 10:49, Wei Xu wrote: >>> Add __acpi_unmap_table function for ARM and invoke it at >>> acpi_os_unmap_memory >>> to make sure the related fixmap has been cleared before using

Re: [Xen-devel] [PATCH] arm/acpi: Add __acpi_unmap_table function for ARM

2020-01-21 Thread Wei Xu
Hi Jan, On 2020/1/21 19:02, Jan Beulich wrote: > On 21.01.2020 10:49, Wei Xu wrote: >> Add __acpi_unmap_table function for ARM and invoke it at acpi_os_unmap_memory >> to make sure the related fixmap has been cleared before using it for a >> different mapping. > > How can it possibly be that

[Xen-devel] [RFC XEN PATCH 09/23] riscv: Add domain.c

2020-01-21 Thread Bobby Eshleman
From: Alistair Francis Signed-off-by: Alistair Francis --- xen/arch/riscv/domain.c | 273 1 file changed, 273 insertions(+) create mode 100644 xen/arch/riscv/domain.c diff --git a/xen/arch/riscv/domain.c b/xen/arch/riscv/domain.c new file mode 100644

[Xen-devel] [RFC XEN PATCH 17/23] riscv: Add vm_event.c

2020-01-21 Thread Bobby Eshleman
From: Alistair Francis Signed-off-by: Alistair Francis --- xen/arch/riscv/vm_event.c | 42 +++ 1 file changed, 42 insertions(+) create mode 100644 xen/arch/riscv/vm_event.c diff --git a/xen/arch/riscv/vm_event.c b/xen/arch/riscv/vm_event.c new file mode

[Xen-devel] [RFC XEN PATCH 18/23] riscv: Add p2m.c

2020-01-21 Thread Bobby Eshleman
From: Alistair Francis Signed-off-by: Alistair Francis --- xen/arch/riscv/p2m.c | 261 +++ 1 file changed, 261 insertions(+) create mode 100644 xen/arch/riscv/p2m.c diff --git a/xen/arch/riscv/p2m.c b/xen/arch/riscv/p2m.c new file mode 100644 index

[Xen-devel] [RFC XEN PATCH 15/23] riscv: Add traps.c

2020-01-21 Thread Bobby Eshleman
From: Alistair Francis Signed-off-by: Alistair Francis --- xen/arch/riscv/traps.c | 56 ++ 1 file changed, 56 insertions(+) create mode 100644 xen/arch/riscv/traps.c diff --git a/xen/arch/riscv/traps.c b/xen/arch/riscv/traps.c new file mode 100644

[Xen-devel] [RFC XEN PATCH 02/23] HACK: Makefile: Don't build Xen tools

2020-01-21 Thread Bobby Eshleman
From: Alistair Francis Signed-off-by: Alistair Francis --- Makefile | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 512d6b73c8..7936f3a368 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ all: dist -include config/Toplevel.mk

[Xen-devel] [RFC XEN PATCH 07/23] riscv: Add asm-offsets.c

2020-01-21 Thread Bobby Eshleman
From: Alistair Francis Signed-off-by: Alistair Francis --- xen/arch/riscv/asm-offsets.c | 38 1 file changed, 38 insertions(+) create mode 100644 xen/arch/riscv/asm-offsets.c diff --git a/xen/arch/riscv/asm-offsets.c b/xen/arch/riscv/asm-offsets.c new

[Xen-devel] [RFC XEN PATCH 10/23] riscv: Add domctl.c

2020-01-21 Thread Bobby Eshleman
From: Alistair Francis Signed-off-by: Alistair Francis --- xen/arch/riscv/domctl.c | 53 + 1 file changed, 53 insertions(+) create mode 100644 xen/arch/riscv/domctl.c diff --git a/xen/arch/riscv/domctl.c b/xen/arch/riscv/domctl.c new file mode 100644

[Xen-devel] [RFC XEN PATCH 21/23] riscv: Add percpu.c

2020-01-21 Thread Bobby Eshleman
From: Alistair Francis Signed-off-by: Alistair Francis --- xen/arch/riscv/percpu.c | 84 + 1 file changed, 84 insertions(+) create mode 100644 xen/arch/riscv/percpu.c diff --git a/xen/arch/riscv/percpu.c b/xen/arch/riscv/percpu.c new file mode 100644

[Xen-devel] [RFC XEN PATCH 16/23] riscv: Add irq.c

2020-01-21 Thread Bobby Eshleman
From: Alistair Francis Signed-off-by: Alistair Francis --- xen/arch/riscv/irq.c | 107 +++ 1 file changed, 107 insertions(+) create mode 100644 xen/arch/riscv/irq.c diff --git a/xen/arch/riscv/irq.c b/xen/arch/riscv/irq.c new file mode 100644 index

[Xen-devel] [RFC XEN PATCH 12/23] riscv: Add time.c

2020-01-21 Thread Bobby Eshleman
From: Alistair Francis Signed-off-by: Alistair Francis --- xen/arch/riscv/time.c | 74 +++ 1 file changed, 74 insertions(+) create mode 100644 xen/arch/riscv/time.c diff --git a/xen/arch/riscv/time.c b/xen/arch/riscv/time.c new file mode 100644 index

[Xen-devel] [RFC XEN PATCH 19/23] riscv: Add the lib directory

2020-01-21 Thread Bobby Eshleman
From: Alistair Francis Add the lib directory with find_next_bit support. This was taken from Linux Signed-off-by: Alistair Francis --- xen/arch/riscv/lib/Makefile| 1 + xen/arch/riscv/lib/find_next_bit.c | 284 + 2 files changed, 285 insertions(+)

[Xen-devel] [RFC XEN PATCH 08/23] riscv: Add delay.c

2020-01-21 Thread Bobby Eshleman
From: Alistair Francis Signed-off-by: Alistair Francis --- xen/arch/riscv/delay.c | 114 + 1 file changed, 114 insertions(+) create mode 100644 xen/arch/riscv/delay.c diff --git a/xen/arch/riscv/delay.c b/xen/arch/riscv/delay.c new file mode 100644

[Xen-devel] [RFC XEN PATCH 11/23] riscv: Add guestcopy.c

2020-01-21 Thread Bobby Eshleman
From: Alistair Francis Signed-off-by: Alistair Francis --- xen/arch/riscv/guestcopy.c | 158 + 1 file changed, 158 insertions(+) create mode 100644 xen/arch/riscv/guestcopy.c diff --git a/xen/arch/riscv/guestcopy.c b/xen/arch/riscv/guestcopy.c new file

[Xen-devel] [RFC XEN PATCH 06/23] riscv: Add riscv to tools/libxc header files

2020-01-21 Thread Bobby Eshleman
From: Alistair Francis Signed-off-by: Alistair Francis --- tools/libxc/include/xenctrl.h | 7 + tools/libxc/xc_core.h | 2 ++ tools/libxc/xc_core_riscv.h | 57 +++ 3 files changed, 66 insertions(+) create mode 100644 tools/libxc/xc_core_riscv.h

[Xen-devel] [RFC XEN PATCH 03/23] riscv: makefiles and Kconfig

2020-01-21 Thread Bobby Eshleman
From: Alistair Francis Signed-off-by: Bobby Eshleman Signed-off-by: Alistair Francis --- config/riscv64.mk| 7 + xen/Makefile | 2 +- xen/Rules.mk | 2 +- xen/arch/Kconfig | 1 +

[Xen-devel] [RFC XEN PATCH 20/23] riscv: Add smpboot.c

2020-01-21 Thread Bobby Eshleman
From: Alistair Francis Signed-off-by: Alistair Francis --- xen/arch/riscv/smpboot.c | 114 +++ 1 file changed, 114 insertions(+) create mode 100644 xen/arch/riscv/smpboot.c diff --git a/xen/arch/riscv/smpboot.c b/xen/arch/riscv/smpboot.c new file mode

[Xen-devel] [RFC XEN PATCH 14/23] riscv: Add shutdown.c

2020-01-21 Thread Bobby Eshleman
From: Alistair Francis Signed-off-by: Alistair Francis --- xen/arch/riscv/shutdown.c | 24 1 file changed, 24 insertions(+) create mode 100644 xen/arch/riscv/shutdown.c diff --git a/xen/arch/riscv/shutdown.c b/xen/arch/riscv/shutdown.c new file mode 100644 index

[Xen-devel] [RFC XEN PATCH 23/23] riscv: Add iommu.c

2020-01-21 Thread Bobby Eshleman
Signed-off-by: Bobby Eshleman --- xen/drivers/passthrough/riscv/iommu.c | 74 +++ 1 file changed, 74 insertions(+) create mode 100644 xen/drivers/passthrough/riscv/iommu.c diff --git a/xen/drivers/passthrough/riscv/iommu.c b/xen/drivers/passthrough/riscv/iommu.c new

[Xen-devel] [RFC XEN PATCH 01/23] HACK: OE Build changes

2020-01-21 Thread Bobby Eshleman
From: Alistair Francis Signed-off-by: Alistair Francis --- config/StdGNU.mk| 12 ++-- tools/configure | 32 tools/firmware/Makefile | 12 ++-- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/config/StdGNU.mk

[Xen-devel] [RFC XEN PATCH 13/23] riscv: Add smp.c

2020-01-21 Thread Bobby Eshleman
From: Alistair Francis Signed-off-by: Alistair Francis --- xen/arch/riscv/smp.c | 41 + 1 file changed, 41 insertions(+) create mode 100644 xen/arch/riscv/smp.c diff --git a/xen/arch/riscv/smp.c b/xen/arch/riscv/smp.c new file mode 100644 index

[Xen-devel] [RFC XEN PATCH 05/23] riscv: early setup code

2020-01-21 Thread Bobby Eshleman
This patch initializes virtual memory for Xen and initializes UART. Just the bare bones to start seeing output. Many shortcuts exist and many TODO's remain. Most of this patch is modeled after Xen ARM64 and Xvisor. Many values are hardcoded for the QEMU virt board, with TODO's left for pulling

[Xen-devel] [RFC XEN PATCH 22/23] riscv: Add sysctl.c

2020-01-21 Thread Bobby Eshleman
From: Alistair Francis Signed-off-by: Alistair Francis --- xen/arch/riscv/sysctl.c | 31 +++ 1 file changed, 31 insertions(+) create mode 100644 xen/arch/riscv/sysctl.c diff --git a/xen/arch/riscv/sysctl.c b/xen/arch/riscv/sysctl.c new file mode 100644 index

[Xen-devel] [RFC XEN PATCH 00/23] xen: beginning support for RISC-V

2020-01-21 Thread Bobby Eshleman
Hey everybody, This is an RFC patchset for the very beginnings of adding RISC-V support to Xen. This RFC is really just to start a dialogue about supporting RISC-V and align with the Xen project and community before going further. For that reason, it is very rough and very incomplete. My name

[Xen-devel] [ovmf test] 146370: regressions - FAIL

2020-01-21 Thread osstest service owner
flight 146370 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/146370/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-ovmf-amd64 10 debian-hvm-install fail REGR. vs. 145767

[Xen-devel] [qemu-mainline test] 146372: regressions - FAIL

2020-01-21 Thread osstest service owner
flight 146372 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/146372/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-xsm 6 xen-buildfail REGR. vs. 144861 build-arm64

Re: [Xen-devel] [xen-unstable test] 145796: tolerable FAIL - PUSHED

2020-01-21 Thread Dario Faggioli
On Fri, 2020-01-10 at 18:24 +, Julien Grall wrote: > Hi all, > Hi Julien, I was looking at this, and I have a couple of questions... > On 08/01/2020 23:14, Julien Grall wrote: > > On Wed, 8 Jan 2020 at 21:40, osstest service owner > > wrote: > > > >

Re: [Xen-devel] [PATCH 3/3] x86 / vmx: use a 'normal' domheap page for APIC_DEFAULT_PHYS_BASE

2020-01-21 Thread Tian, Kevin
> From: Paul Durrant > Sent: Tuesday, January 21, 2020 8:00 PM > > vmx_alloc_vlapic_mapping() currently contains some very odd looking code > that allocates a MEMF_no_owner domheap page and then shares with the > guest > as if it were a xenheap page. This then requires vmx_free_vlapic_mapping()

Re: [Xen-devel] [PATCH 1/3] x86 / vmx: make apic_access_mfn type-safe

2020-01-21 Thread Tian, Kevin
> From: Paul Durrant > Sent: Tuesday, January 21, 2020 8:00 PM > > Use mfn_t rather than unsigned long and change previous tests against 0 to > tests against INVALID_MFN (also introducing initialization to that value). > > Signed-off-by: Paul Durrant Reviewed-by: Kevin Tian

Re: [Xen-devel] [PATCH 1/2] nvmx: fix handling of interrupts

2020-01-21 Thread Tian, Kevin
> From: Roger Pau Monné > Sent: Wednesday, January 22, 2020 12:47 AM > > On Tue, Jan 21, 2020 at 03:34:13AM +, Tian, Kevin wrote: > > > From: Roger Pau Monné > > > Sent: Monday, January 20, 2020 6:19 PM > > > > > > On Sun, Jan 19, 2020 at 04:15:04AM +, Tian, Kevin wrote: > > > > > From:

Re: [Xen-devel] [PATCH] arm/acpi: Add __acpi_unmap_table function for ARM

2020-01-21 Thread Wei Xu
Hi Alexandru, On 2020/1/21 18:01, Alexandru Stefan ISAILA wrote: > > > On 21.01.2020 11:49, Wei Xu wrote: >> Add __acpi_unmap_table function for ARM and invoke it at acpi_os_unmap_memory >> to make sure the related fixmap has been cleared before using it for a >> different mapping. >> >>

Re: [Xen-devel] [PATCH v3 2/9] xen: split parameter related definitions in own header file

2020-01-21 Thread Dario Faggioli
On Tue, 2020-01-21 at 09:43 +0100, Juergen Gross wrote: > Move the parameter related definitions from init.h into a new header > file param.h. This will avoid include hell when new dependencies are > added to parameter definitions. > > Signed-off-by: Juergen Gross > sched-stuff: Acked-by: Dario

Re: [Xen-devel] HVM Driver Domain

2020-01-21 Thread Marek Marczykowski-Górecki
On Mon, Jan 20, 2020 at 06:07:57PM +, tosher 1 wrote: > Hi all, > > I was doing some experiments on the Xen network Driver Domain using Ubuntu > 18.04.  I was able to see the driver domain works fine when I run it in PV > mode. However, I wasn't able to make the driver domain work when I

[Xen-devel] [xen-unstable-smoke test] 146367: tolerable all pass - PUSHED

2020-01-21 Thread osstest service owner
flight 146367 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/146367/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt 13 migrate-support-checkfail never pass test-arm64-arm64-xl-xsm

[Xen-devel] [qemu-mainline test] 146363: regressions - FAIL

2020-01-21 Thread osstest service owner
flight 146363 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/146363/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-xsm 6 xen-buildfail REGR. vs. 144861 build-arm64

Re: [Xen-devel] [PATCH v4 12/16] libxl: use vchan for QMP access with Linux stubdomain

2020-01-21 Thread Marek Marczykowski-Górecki
On Tue, Jan 21, 2020 at 03:17:39PM -0500, Jason Andryuk wrote: > On Tue, Jan 14, 2020 at 9:42 PM Marek Marczykowski-Górecki > wrote: > > > > Access to QMP of QEMU in Linux stubdomain is possible over vchan > > connection. Handle the actual vchan connection in a separate process > >

[Xen-devel] [seabios test] 146357: tolerable FAIL - PUSHED

2020-01-21 Thread osstest service owner
flight 146357 seabios real [real] http://logs.test-lab.xenproject.org/osstest/logs/146357/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-i386-xl-qemuu-win7-amd64 17 guest-stop fail like 146064 test-amd64-amd64-xl-qemuu-ws16-amd64 17

Re: [Xen-devel] [PATCH v4 11/16] tools: add simple vchan-socket-proxy

2020-01-21 Thread Marek Marczykowski-Górecki
On Tue, Jan 21, 2020 at 02:43:03PM -0500, Jason Andryuk wrote: > On Tue, Jan 14, 2020 at 9:42 PM Marek Marczykowski-Górecki > wrote: > > > > Add a simple proxy for tunneling socket connection over vchan. This is > > based on existing vchan-node* applications, but extended with socket > > support.

[Xen-devel] [ovmf test] 146355: regressions - FAIL

2020-01-21 Thread osstest service owner
flight 146355 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/146355/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-ovmf-amd64 10 debian-hvm-install fail REGR. vs. 145767

[Xen-devel] [linux-5.4 test] 146354: regressions - FAIL

2020-01-21 Thread osstest service owner
flight 146354 linux-5.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/146354/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-ovmf-amd64 10 debian-hvm-install fail REGR. vs. 146121

[Xen-devel] [xen-unstable-smoke test] 146362: tolerable all pass - PUSHED

2020-01-21 Thread osstest service owner
flight 146362 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/146362/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt 13 migrate-support-checkfail never pass test-arm64-arm64-xl-xsm

Re: [Xen-devel] [PATCH v4 13/16] Regenerate autotools files

2020-01-21 Thread Rich Persaud
On Jan 21, 2020, at 15:58, Marek Marczykowski-Górecki wrote: > > On Wed, Jan 15, 2020 at 04:57:29PM -0500, Rich Persaud wrote: On Jan 14, 2020, at 21:42, Marek Marczykowski-Górecki wrote: >>> Since we have those generated files committed to the repo (why?!), >>> update them after

Re: [Xen-devel] [PATCH v4 08/16] tools/libvchan: notify server when client is connected

2020-01-21 Thread Marek Marczykowski-Górecki
On Mon, Jan 20, 2020 at 02:44:58PM -0500, Jason Andryuk wrote: > On Tue, Jan 14, 2020 at 9:42 PM Marek Marczykowski-Górecki > wrote: > > > > Let the server know when the client is connected. Otherwise server will > > notice only when client send some data. > > This change does not break existing

Re: [Xen-devel] [PATCH v4 07/16] xl: add stubdomain related options to xl config parser

2020-01-21 Thread Marek Marczykowski-Górecki
On Mon, Jan 20, 2020 at 02:41:07PM -0500, Jason Andryuk wrote: > On Tue, Jan 14, 2020 at 9:40 PM Marek Marczykowski-Górecki > wrote: > > > > Signed-off-by: Marek Marczykowski-Górecki > > Reviewed-by: Jason Andryuk > > --- > > docs/man/xl.cfg.5.pod.in | 23 +++ > >

Re: [Xen-devel] [PATCH v4 06/16] libxl: write qemu arguments into separate xenstore keys

2020-01-21 Thread Marek Marczykowski-Górecki
On Mon, Jan 20, 2020 at 02:36:08PM -0500, Jason Andryuk wrote: > On Tue, Jan 14, 2020 at 9:41 PM Marek Marczykowski-Górecki > wrote: > > > > This allows using arguments with spaces, like -append, without > > nominating any special "separator" character. > > > > Signed-off-by: Marek

Re: [Xen-devel] [PATCH] xen/arm: gic: Remove pointless assertion against enum gic_sgi

2020-01-21 Thread Stefano Stabellini
On Sat, 18 Jan 2020, Julien Grall wrote: > The Arm Compiler will complain that the assertions ASSERT(sgi < 16) is > always true. This is because sgi is a item of the enum gic_sgi and > should always contain less than 16 SGIs. > > Rather than using ASSERTs, introduce a new item in the num that

Re: [Xen-devel] [PATCH v4 05/16] libxl: Handle Linux stubdomain specific QEMU options.

2020-01-21 Thread Marek Marczykowski-Górecki
On Mon, Jan 20, 2020 at 02:24:18PM -0500, Jason Andryuk wrote: > On Tue, Jan 14, 2020 at 9:42 PM Marek Marczykowski-Górecki > wrote: > > > > From: Eric Shelton > > > > This patch creates an appropriate command line for the QEMU instance > > running in a Linux-based stubdomain. > > > > NOTE: a

Re: [Xen-devel] [PATCH v4 04/16] libxl: Allow running qemu-xen in stubdomain

2020-01-21 Thread Marek Marczykowski-Górecki
On Mon, Jan 20, 2020 at 01:56:51PM -0500, Jason Andryuk wrote: > On Tue, Jan 14, 2020 at 9:41 PM Marek Marczykowski-Górecki > wrote: > > > > Do not prohibit anymore using stubdomain with qemu-xen. > > To help distingushing MiniOS and Linux stubdomain, add helper inline > > functions

Re: [Xen-devel] [PATCH v4 02/16] Document ioemu Linux stubdomain protocol

2020-01-21 Thread Marek Marczykowski-Górecki
On Mon, Jan 20, 2020 at 01:54:04PM -0500, Jason Andryuk wrote: > On Tue, Jan 14, 2020 at 9:41 PM Marek Marczykowski-Górecki > wrote: > > > > > + > > +Limitations: > > + - PCI passthrough require permissive mode > > + - only one nic is supported > > Why is only 1 nic supported? Multiple were

Re: [Xen-devel] [PATCH v2 1/4] x86/microcode: Improve documentation and parsing for ucode=

2020-01-21 Thread Konrad Rzeszutek Wilk
On Tue, Jan 21, 2020 at 10:27:47AM +0100, Jan Beulich wrote: > On 21.01.2020 00:50, Eslam Elnikety wrote: > > On 20.01.20 09:42, Jan Beulich wrote: > >> On 17.01.2020 20:06, Eslam Elnikety wrote: > >>> On 20.12.19 10:53, Jan Beulich wrote: > On 19.12.2019 22:08, Eslam Elnikety wrote: > >

Re: [Xen-devel] [PATCH v4 13/16] Regenerate autotools files

2020-01-21 Thread Marek Marczykowski-Górecki
On Wed, Jan 15, 2020 at 04:57:29PM -0500, Rich Persaud wrote: > > On Jan 14, 2020, at 21:42, Marek Marczykowski-Górecki > > wrote: > > Since we have those generated files committed to the repo (why?!), > > update them after changing configure.ac. > > Is there any reason not to remove the

Re: [Xen-devel] [PATCH] Revert "xen/arm32: setup: Give a xenheap page to the boot allocator"

2020-01-21 Thread Stefano Stabellini
On Thu, 16 Jan 2020, Julien Grall wrote: > Since commit c61c1b4943 "xen/page_alloc: statically allocate > bootmem_region_list", the boot allocator does not use the first page of > the first region passed for its own purpose. > > This reverts commit ae84f55353475f569daddb9a81ac0a6bc7772c90. > >

Re: [Xen-devel] [PATCH v2 1/4] x86/microcode: Improve documentation and parsing for ucode=

2020-01-21 Thread Eslam Elnikety
On 21.01.20 10:27, Jan Beulich wrote: On 21.01.2020 00:50, Eslam Elnikety wrote: On 20.01.20 09:42, Jan Beulich wrote: On 17.01.2020 20:06, Eslam Elnikety wrote: On 20.12.19 10:53, Jan Beulich wrote: On 19.12.2019 22:08, Eslam Elnikety wrote: On 18.12.19 12:49, Jan Beulich wrote: On

Re: [Xen-devel] [PATCH v4 16/16] libxl: consider also qemu in stubdomain in libxl__dm_active check

2020-01-21 Thread Jason Andryuk
On Tue, Jan 14, 2020 at 9:42 PM Marek Marczykowski-Górecki wrote: > > Since qemu-xen can now run in stubdomain too, handle this case when > checking it's state too. > > Signed-off-by: Marek Marczykowski-Górecki Reviewed-by: Jason Andryuk ___

Re: [Xen-devel] [PATCH v4 15/16] libxl: ignore emulated IDE disks beyond the first 4

2020-01-21 Thread Jason Andryuk
On Tue, Jan 14, 2020 at 9:42 PM Marek Marczykowski-Górecki wrote: > > Qemu supports only 4 emulated IDE disks, when given more (or with higher > indexes), it will fail to start. Since the disks can still be accessible > using PV interface, just ignore emulated path and log a warning, instead > of

Re: [Xen-devel] [PATCH v4 12/16] libxl: use vchan for QMP access with Linux stubdomain

2020-01-21 Thread Jason Andryuk
On Tue, Jan 14, 2020 at 9:42 PM Marek Marczykowski-Górecki wrote: > > Access to QMP of QEMU in Linux stubdomain is possible over vchan > connection. Handle the actual vchan connection in a separate process > (vchan-socket-proxy). This simplified integration with QMP (already > quite complex), but

[Xen-devel] [xen-unstable test] 146350: regressions - FAIL

2020-01-21 Thread osstest service owner
flight 146350 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/146350/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemut-stubdom-debianhvm-amd64-xsm 10 debian-hvm-install fail REGR. vs.

Re: [Xen-devel] [PATCH v4 11/16] tools: add simple vchan-socket-proxy

2020-01-21 Thread Jason Andryuk
On Tue, Jan 14, 2020 at 9:42 PM Marek Marczykowski-Górecki wrote: > > Add a simple proxy for tunneling socket connection over vchan. This is > based on existing vchan-node* applications, but extended with socket > support. vchan-socket-proxy serves both as a client and as a server, > depending on

Re: [Xen-devel] [PATCH] tools/libxl: Code-gen improvements for libxl_save_msgs_gen.pl

2020-01-21 Thread Anthony PERARD
On Fri, Dec 27, 2019 at 01:42:37PM +, Andrew Cooper wrote: > our @msgs() is an array of $msginfo's where the first element is a > unique number. The $msgnum_used check ensures they are unique. Instead > if specifying them explicitly, generate msgnum locally. This reduces > the diff

[Xen-devel] [qemu-mainline test] 146356: regressions - FAIL

2020-01-21 Thread osstest service owner
flight 146356 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/146356/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64-xsm 6 xen-buildfail REGR. vs. 144861 build-arm64

[Xen-devel] [PATCH v5 13/18] x86/mem_sharing: Skip xen heap pages in memshr nominate

2020-01-21 Thread Tamas K Lengyel
Trying to share these would fail anyway, better to skip them early. Signed-off-by: Tamas K Lengyel Reviewed-by: Jan Beulich --- xen/arch/x86/mm/mem_sharing.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/mm/mem_sharing.c b/xen/arch/x86/mm/mem_sharing.c

[Xen-devel] [PATCH v5 17/18] x86/mem_sharing: reset a fork

2020-01-21 Thread Tamas K Lengyel
Implement hypercall that allows a fork to shed all memory that got allocated for it during its execution and re-load its vCPU context from the parent VM. This allows the forked VM to reset into the same state the parent VM is in a faster way then creating a new fork would be. Measurements show

[Xen-devel] [PATCH v5 18/18] xen/tools: VM forking toolstack side

2020-01-21 Thread Tamas K Lengyel
Add necessary bits to implement "xl fork-vm" commands. The command allows the user to specify how to launch the device model allowing for a late-launch model in which the user can execute the fork without the device model and decide to only later launch it. Signed-off-by: Tamas K Lengyel ---

[Xen-devel] [PATCH v5 11/18] x86/mem_sharing: Replace MEM_SHARING_DEBUG with gdprintk

2020-01-21 Thread Tamas K Lengyel
Using XENLOG_ERR level since this is only used in debug paths (ie. it's expected the user already has loglvl=all set). Also use %pd to print the domain ids. Signed-off-by: Tamas K Lengyel --- xen/arch/x86/mm/mem_sharing.c | 82 +-- 1 file changed, 41

[Xen-devel] [PATCH v5 16/18] xen/mem_access: Use __get_gfn_type_access in set_mem_access

2020-01-21 Thread Tamas K Lengyel
Use __get_gfn_type_access instead of p2m->get_entry to trigger page-forking when the mem_access permission is being set on a page that has not yet been copied over from the parent. Signed-off-by: Tamas K Lengyel --- xen/arch/x86/mm/mem_access.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[Xen-devel] [PATCH v5 06/18] x86/mem_sharing: don't try to unshare twice during page fault

2020-01-21 Thread Tamas K Lengyel
The page was already tried to be unshared in get_gfn_type_access. If that didn't work, then trying again is pointless. Don't try to send vm_event again either, simply check if there is a ring or not. Signed-off-by: Tamas K Lengyel Acked-by: Jan Beulich --- xen/arch/x86/hvm/hvm.c | 25

[Xen-devel] [PATCH v5 05/18] x86/mem_sharing: drop flags from mem_sharing_unshare_page

2020-01-21 Thread Tamas K Lengyel
All callers pass 0 in. Signed-off-by: Tamas K Lengyel Reviewed-by: Wei Liu --- xen/arch/x86/hvm/hvm.c| 2 +- xen/arch/x86/mm/p2m.c | 5 ++--- xen/common/memory.c | 2 +- xen/include/asm-x86/mem_sharing.h | 8 +++- 4 files changed, 7 insertions(+), 10

[Xen-devel] [PATCH v5 01/18] x86/hvm: introduce hvm_copy_context_and_params

2020-01-21 Thread Tamas K Lengyel
Currently the hvm parameters are only accessible via the HVMOP hypercalls. In this patch we introduce a new function that can copy both the hvm context and parameters directly into a target domain. No functional changes in existing code. Signed-off-by: Tamas K Lengyel --- xen/arch/x86/hvm/hvm.c

[Xen-devel] [PATCH v5 04/18] x86/mem_sharing: make get_two_gfns take locks conditionally

2020-01-21 Thread Tamas K Lengyel
During VM forking the client lock will already be taken. Signed-off-by: Tamas K Lengyel Acked-by: Andrew Coopers --- xen/arch/x86/mm/mem_sharing.c | 11 ++- xen/include/asm-x86/p2m.h | 10 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git

[Xen-devel] [PATCH v5 14/18] x86/mem_sharing: use default_access in add_to_physmap

2020-01-21 Thread Tamas K Lengyel
When plugging a hole in the target physmap don't use the access permission returned by __get_gfn_type_access as it can be non-sensical, leading to spurious vm_events being sent out for access violations at unexpected locations. Make use of p2m->default_access instead. Signed-off-by: Tamas K

[Xen-devel] [PATCH v5 02/18] xen/x86: Make hap_get_allocation accessible

2020-01-21 Thread Tamas K Lengyel
During VM forking we'll copy the parent domain's parameters to the client, including the HAP shadow memory setting that is used for storing the domain's EPT. We'll copy this in the hypervisor instead doing it during toolstack launch to allow the domain to start executing and unsharing memory

[Xen-devel] [PATCH v5 12/18] x86/mem_sharing: Enable mem_sharing on first memop

2020-01-21 Thread Tamas K Lengyel
It is wasteful to require separate hypercalls to enable sharing on both the parent and the client domain during VM forking. To speed things up we enable sharing on the first memop in case it wasn't already enabled. Signed-off-by: Tamas K Lengyel --- xen/arch/x86/mm/mem_sharing.c | 52

[Xen-devel] [PATCH v5 15/18] xen/mem_sharing: VM forking

2020-01-21 Thread Tamas K Lengyel
VM forking is the process of creating a domain with an empty memory space and a parent domain specified from which to populate the memory when necessary. For the new domain to be functional the VM state is copied over as part of the fork operation (HVM params, hap allocation, etc). Signed-off-by:

[Xen-devel] [PATCH v5 07/18] x86/mem_sharing: define mem_sharing_domain to hold some scattered variables

2020-01-21 Thread Tamas K Lengyel
Create struct mem_sharing_domain under hvm_domain and move mem sharing variables into it from p2m_domain and hvm_domain. Expose the mem_sharing_enabled macro to be used consistently across Xen. Remove some duplicate calls to mem_sharing_enabled in mem_sharing.c Signed-off-by: Tamas K Lengyel

[Xen-devel] [PATCH v5 10/18] x86/mem_sharing: Convert MEM_SHARING_DESTROY_GFN to a bool

2020-01-21 Thread Tamas K Lengyel
MEM_SHARING_DESTROY_GFN is used on the 'flags' bitfield during unsharing. However, the bitfield is not used for anything else, so just convert it to a bool instead. Signed-off-by: Tamas K Lengyel Reviewed-by: Jan Beulich --- xen/arch/x86/mm/mem_sharing.c | 9 -

[Xen-devel] [PATCH v5 03/18] x86/p2m: Allow p2m_get_page_from_gfn to return shared entries

2020-01-21 Thread Tamas K Lengyel
The owner domain of shared pages is dom_cow, use that for get_page otherwise the function fails to return the correct page. Signed-off-by: Tamas K Lengyel --- xen/arch/x86/mm/p2m.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/mm/p2m.c

[Xen-devel] [PATCH v5 09/18] x86/mem_sharing: Make add_to_physmap static and shorten name

2020-01-21 Thread Tamas K Lengyel
It's not being called from outside mem_sharing.c Signed-off-by: Tamas K Lengyel Reviewed-by: Jan Beulich --- xen/arch/x86/mm/mem_sharing.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/mm/mem_sharing.c b/xen/arch/x86/mm/mem_sharing.c index

[Xen-devel] [PATCH v5 00/18] VM forking

2020-01-21 Thread Tamas K Lengyel
The following series implements VM forking for Intel HVM guests to allow for the fast creation of identical VMs without the assosciated high startup costs of booting or restoring the VM from a savefile. JIRA issue: https://xenproject.atlassian.net/browse/XEN-89 The fork operation is implemented

[Xen-devel] [PATCH v5 08/18] x86/mem_sharing: Use INVALID_MFN and p2m_is_shared in relinquish_shared_pages

2020-01-21 Thread Tamas K Lengyel
While using _mfn(0) is of no consequence during teardown, INVALID_MFN is the correct value that should be used. Signed-off-by: Tamas K Lengyel Reviewed-by: Jan Beulich --- xen/arch/x86/mm/mem_sharing.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [Xen-devel] [PATCH v3 1/8] golang/xenlight: Don't try to marshall zero-length arrays in fromC

2020-01-21 Thread George Dunlap
On 1/20/20 11:39 PM, Nick Rosbrook wrote: > Sorry I didn't catch this the first time around, but: > >> diff --git a/tools/golang/xenlight/helpers.gen.go >> b/tools/golang/xenlight/helpers.gen.go >> index b9a7e828a0..889807d928 100644 >> --- a/tools/golang/xenlight/helpers.gen.go >> +++

Re: [Xen-devel] [PATCH V8 2/4] x86/altp2m: Add hypercall to set a range of sve bits

2020-01-21 Thread George Dunlap
On 1/21/20 3:09 PM, Alexandru Stefan ISAILA wrote: > Hi George, > > This is a kind reminder, when you have the time, can you take a look at > this series? It's on the top of my list of things to review. :-) I should be able to get to it Thursday. -George

Re: [Xen-devel] libvirt support for scheduler credit2

2020-01-21 Thread Jürgen Groß
On 21.01.20 17:56, Kevin Stange wrote: Hi, I looked around a bit and wasn't able to find a good answer to this, so George suggested I ask here. Cc-ing Jim. Since Xen 4.12, credit2 is the default scheduler, but at least as of libvirt 5.1.0 virsh doesn't appear to understand credit2 and

Re: [Xen-devel] [Qemu-devel] [PATCH] trivial: Remove xenfb_enabled from sysemu.h

2020-01-21 Thread Paul Durrant
On Tue, 21 Jan 2020 at 16:18, Thomas Huth wrote: > > The define is only used in one other place. Move the code there > instead of keeping this xen-specific define in sysemu.h. > > Signed-off-by: Thomas Huth Acked-by: Paul Durrant ___ Xen-devel

Re: [Xen-devel] [PATCH v2] x86/hvmloader: round up memory BAR size to 4K

2020-01-21 Thread Roger Pau Monné
On Tue, Jan 21, 2020 at 05:15:20PM +0100, Jan Beulich wrote: > On 21.01.2020 16:57, Roger Pau Monné wrote: > > On Tue, Jan 21, 2020 at 11:43:58AM +0100, Jan Beulich wrote: > >> On 21.01.2020 11:29, Roger Pau Monné wrote: > >>> So I'm not sure how to progress with this patch, are we fine with > >>>

[Xen-devel] libvirt support for scheduler credit2

2020-01-21 Thread Kevin Stange
Hi, I looked around a bit and wasn't able to find a good answer to this, so George suggested I ask here. Since Xen 4.12, credit2 is the default scheduler, but at least as of libvirt 5.1.0 virsh doesn't appear to understand credit2 and produces this sort of output: # xl sched-credit2 -d

Re: [Xen-devel] [PATCH 1/2] nvmx: fix handling of interrupts

2020-01-21 Thread Roger Pau Monné
On Tue, Jan 21, 2020 at 03:34:13AM +, Tian, Kevin wrote: > > From: Roger Pau Monné > > Sent: Monday, January 20, 2020 6:19 PM > > > > On Sun, Jan 19, 2020 at 04:15:04AM +, Tian, Kevin wrote: > > > > From: Roger Pau Monne > > > > Sent: Wednesday, January 8, 2020 6:39 PM > > > > > > > >

Re: [Xen-devel] [Qemu-devel] [PATCH] trivial: Remove xenfb_enabled from sysemu.h

2020-01-21 Thread Philippe Mathieu-Daudé
On 1/21/20 5:17 PM, Thomas Huth wrote: The define is only used in one other place. Move the code there instead of keeping this xen-specific define in sysemu.h. Signed-off-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé --- hw/xenpv/xen_machine_pv.c | 2 +- include/sysemu/sysemu.h

Re: [Xen-devel] [PATCH v2 2/4] x86/xen: add basic KASAN support for PV kernel

2020-01-21 Thread kbuild test robot
Hi Sergey, Thank you for the patch! Yet something to improve: [auto build test ERROR on xen-tip/linux-next] [also build test ERROR on tip/x86/mm tip/auto-latest linux/master linus/master v5.5-rc7 next-20200121] [if your patch is applied to the wrong git tree, please drop us a note to help

[Xen-devel] [Qemu-devel] [PATCH] trivial: Remove xenfb_enabled from sysemu.h

2020-01-21 Thread Thomas Huth
The define is only used in one other place. Move the code there instead of keeping this xen-specific define in sysemu.h. Signed-off-by: Thomas Huth --- hw/xenpv/xen_machine_pv.c | 2 +- include/sysemu/sysemu.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git

Re: [Xen-devel] [PATCH v2] x86/hvmloader: round up memory BAR size to 4K

2020-01-21 Thread Jan Beulich
On 21.01.2020 16:57, Roger Pau Monné wrote: > On Tue, Jan 21, 2020 at 11:43:58AM +0100, Jan Beulich wrote: >> On 21.01.2020 11:29, Roger Pau Monné wrote: >>> So I'm not sure how to progress with this patch, are we fine with >>> those limitations? >> >> I'm afraid this depends on ... >> >>> As I

Re: [Xen-devel] [PATCH v2] x86/hvmloader: round up memory BAR size to 4K

2020-01-21 Thread Roger Pau Monné
On Tue, Jan 21, 2020 at 11:43:58AM +0100, Jan Beulich wrote: > On 21.01.2020 11:29, Roger Pau Monné wrote: > > So I'm not sure how to progress with this patch, are we fine with > > those limitations? > > I'm afraid this depends on ... > > > As I said, Xen hasn't got enough knowledge to correctly

Re: [Xen-devel] [PATCH V8 2/4] x86/altp2m: Add hypercall to set a range of sve bits

2020-01-21 Thread Alexandru Stefan ISAILA
Hi George, This is a kind reminder, when you have the time, can you take a look at this series? Regards, Alex On 17.01.2020 15:31, Alexandru Stefan ISAILA wrote: > By default the sve bits are not set. > This patch adds a new hypercall, xc_altp2m_set_supress_ve_multi(), > to set a range of sve

[Xen-devel] [PATCH v4 1/2] xen/arm: remove physical timer offset

2020-01-21 Thread Jeff Kubascik
The physical timer traps apply an offset so that time starts at 0 for the guest. However, this offset is not currently applied to the physical counter. Per the ARMv8 Reference Manual (ARM DDI 0487E.a), section D11.2.4 Timers, the "Offset" between the counter and timer should be zero for a physical

[Xen-devel] [PATCH v4 2/2] xen/arm: Sign extend TimerValue when computing the CompareValue

2020-01-21 Thread Jeff Kubascik
Xen will only store the CompareValue as it can be derived from the TimerValue (ARM DDI 0487E.a section D11.2.4): CompareValue = (Counter[63:0] + SignExtend(TimerValue))[63:0] While the TimerValue is a 32-bit signed value, our implementation assumed it is a 32-bit unsigned value.

[Xen-devel] [PATCH v4 0/2] xen/arm: physical timer improvements

2020-01-21 Thread Jeff Kubascik
This patch set improves the emulation of the physical timer by removing the physical timer offset and sign extend the TimerValue to better match the behavior described in the ARMv8 Reference Manual (ARM DDI 0487E.a), section D11.2.4. Changes in v2: - Update commit message to specify reference

Re: [Xen-devel] [PATCH v2 2/4] x86/xen: add basic KASAN support for PV kernel

2020-01-21 Thread kbuild test robot
Hi Sergey, Thank you for the patch! Yet something to improve: [auto build test ERROR on xen-tip/linux-next] [also build test ERROR on tip/x86/mm tip/auto-latest linux/master linus/master v5.5-rc7 next-20200117] [if your patch is applied to the wrong git tree, please drop us a note to help

[Xen-devel] [xen-unstable-smoke test] 146353: tolerable all pass - PUSHED

2020-01-21 Thread osstest service owner
flight 146353 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/146353/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt 13 migrate-support-checkfail never pass test-arm64-arm64-xl-xsm

  1   2   >