[Xen-devel] [PATCH for-4.11] kconfig: don't select VPCI if building a shim-only binary

2018-03-27 Thread Roger Pau Monne
Reported-by: Wei Liu Signed-off-by: Roger Pau Monné --- Cc: Jan Beulich Cc: Andrew Cooper Cc: Wei Liu --- xen/arch/x86/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/Kconfig b/xen/arch/x86/Kconfig index c405c4bf4f..f64fc56739 100644 --- a/xen/arch/x86

[Xen-devel] [PATCH v2 for-4.11] kconfig: don't select VPCI if building a shim-only binary

2018-03-27 Thread Roger Pau Monne
Add dummy replacements for some functions used outside of the vpci code, and also a guard in vmsi.c to prevent vpci arch specific helpers from being compiled if the option is not selected. Reported-by: Wei Liu Signed-off-by: Roger Pau Monné --- Cc: Jan Beulich Cc: Andrew Cooper Cc: Wei Liu --

[Xen-devel] [PATCH for-4.11] tools: set DEBUG_DIR from configure

2018-03-27 Thread Roger Pau Monne
Allow the path to be set from a configure command line option. Signed-off-by: Roger Pau Monné --- Cc: Ian Jackson Cc: Wei Liu Cc: Olaf Hering Cc: Jan Beulich --- config/Paths.mk.in | 1 + m4/paths.m4| 9 + 2 files changed, 10 insertions(+) diff --git a/config/Paths.mk.in b/c

[Xen-devel] [PATCH v2 for-4.11] tools: set DEBUG_DIR from configure

2018-03-28 Thread Roger Pau Monne
Allow the path to be set from a configure command line option. Signed-off-by: Roger Pau Monné --- Cc: Ian Jackson Cc: Wei Liu Cc: Olaf Hering Cc: Jan Beulich --- Changes since v1: - Fix the path so it's PREFRIX/lib/... instead of PREFIX/usr/lib/... --- config/Paths.mk.in | 1 + m4/paths.m4

[Xen-devel] [PATCH v2 for-4.11 1/2] libxc/x86: fix mapping of the start_info area

2018-03-28 Thread Roger Pau Monne
The start_info size calculated in bootlate_hvm is wrong. It should use HVMLOADER_MODULE_MAX_COUNT instead of dom->num_modules and it doesn't take into account the size of the modules command line. This is not a problem so far because the actually used amount of memory doesn't cross a page boundary

[Xen-devel] [PATCH v2 for-4.11 2/2] libxc/x86: do not unconditionally set the module cmdline address

2018-03-28 Thread Roger Pau Monne
This will lead to writing a wrong module command line physical memory address if no command line is actually provided. This hasn't caused problems so far because hvmloader is the only consumer of the modules command line, and it's unconditionally set in that case. Signed-off-by: Roger Pau Monné

[Xen-devel] [PATCH] xen/x86: fix linker script to work with lld

2018-06-28 Thread Roger Pau Monne
lld (the llvm linker) has some issues with Xen linker script. It doesn't understand '||' in assert expressions: ld-melf_x86_64_fbsd -T xen.lds -N prelink.o --build-id=sha1 \ /root/src/xen/xen/common/symbols-dummy.o -o /root/src/xen/xen/.xen-syms.0 ld: error: xen.lds:260: malformed number:

[Xen-devel] [PATCH 2/2] osstest: move install of FreeBSD build deps to build-prep

2018-06-28 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné --- ts-build-prep-freebsd | 6 ++ ts-freebsd-build | 5 - 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ts-build-prep-freebsd b/ts-build-prep-freebsd index 1d78a3e1..3999ed79 100755 --- a/ts-build-prep-freebsd +++ b/ts-build-prep-freebs

[Xen-devel] [PATCH 1/2] osstest: allow to treat host install errors as failures

2018-06-28 Thread Roger Pau Monne
And use it for the build-amd64-freebsd-again job, which should test the new FreeBSD build produced by build-amd64-freebsd and a host install error should be treated as a failure in order to trigger the bisection. Signed-off-by: Roger Pau Monné --- make-freebsd-flight | 3 ++- sg-run-job

[Xen-devel] [PATCH 4/4] build: fix include paths in FreeBSD

2018-07-02 Thread Roger Pau Monne
FreeBSD package manager uses /usr/local/ as the default install path, but that's not part of the compiler search path, so add it using the APPEND_{LIB/INCLUDES} variables. Signed-off-by: Roger Pau Monné --- Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Julien Grall

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

2018-07-02 Thread Roger Pau Monne
clang is not capable of building the x86 emulator test harness, so disconnect it from the clang build until it can be fixed. Signed-off-by: Roger Pau Monné --- Cc: Ian Jackson Cc: Wei Liu --- tools/tests/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/tests/Makefile b/tool

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

2018-07-02 Thread Roger Pau Monne
SeaBIOS requires gcc and GNU ld in order to build, so allow setting SEABIOSCC and SEABIOSLD by the caller when building in order to pass the path to the compiler and linker that should be used when building SeaBIOS. Note that the LD32BIT-y variable was used by FreeBSD builds and is no longer neede

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

2018-07-02 Thread Roger Pau Monne
ENODATA is not part of the standard set of errno values, so use ENOENT instead. This fixes the build on FreeBSD. Signed-off-by: Roger Pau Monné --- Cc: Ian Jackson Cc: Wei Liu --- tools/tests/xenstore/xs-test.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[Xen-devel] [PATCH 0/4] xen: FreeBSD build fixes

2018-07-02 Thread Roger Pau Monne
Hello, This series contains some minor FreeBSD build fixes and improvements required in order to add a Xen build on FreeBSD to osstest. Thanks, Roger. Roger Pau Monne (4): firmware/seabios: fix build on systems with non GNU toolchains tests: disable x86 emulator test harness when using

[Xen-devel] [PATCH 1/3] osstest: remove duplicate set_freebsd_runvars

2018-07-02 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné --- make-freebsd-flight | 31 --- 1 file changed, 31 deletions(-) diff --git a/make-freebsd-flight b/make-freebsd-flight index 66d4b816..1a2b359c 100755 --- a/make-freebsd-flight +++ b/make-freebsd-flight @@ -36,37 +36,6 @@ job_create_bu

[Xen-devel] [PATCH 2/3] osstest: set the make command to use for xen-build

2018-07-02 Thread Roger Pau Monne
The default make on FreeBSD is the BSD make, and Xen requires the GNU make in order to build. Set the make command based on the OS for the Xen build. Signed-off-by: Roger Pau Monné --- ts-xen-build | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ts-xen-build b/ts-

[Xen-devel] [PATCH 0/3] osstest: initial support for building Xen on FreeBSD

2018-07-02 Thread Roger Pau Monne
://lists.xenproject.org/archives/html/xen-devel/2018-07/msg00048.html Thanks, Roger. Roger Pau Monne (3): osstest: remove duplicate set_freebsd_runvars osstest: set the make command to use for xen-build osstest: add FreeBSD Xen build job make-freebsd-flight | 48

[Xen-devel] [PATCH 3/3] osstest: add FreeBSD Xen build job

2018-07-02 Thread Roger Pau Monne
To both the FreeBSD and the xen-unstable flights. This is the runvar difference of a xen-unstable flight: +build-amd64-freebsd all_host_os freebsd +build-amd64-xsm-freebsd all_host_os freebsd +build-amd64-freebsd arch amd64 +build-amd64-xsm-freebsd arch a

[Xen-devel] [PATCH] osstest: limit FreeBSD jobs to hardware booting in BIOS mode

2018-07-04 Thread Roger Pau Monne
There's no support yet in osstest to install FreeBSD from UEFI, so for the time being limit the FreeBSD jobs to boxes booting with legacy BIOS. Signed-off-by: Roger Pau Monné --- Note that this patch depends on Ian Jackson's resource allocation series. --- make-freebsd-flight | 4 ++-- 1 file ch

[Xen-devel] [PATCH 1/6] osstest: allow appending to existing runvars

2018-07-05 Thread Roger Pau Monne
From: Ian Jackson So that the contents of the runvar can be expanded. There are currently two ways to do this: - Using += will append to the end of the runvar. - Using ,= will append to the end of the runvar using ',' as the separator. Note that if the runvar is empty {,|+}= just sets the

[Xen-devel] [PATCH 5/6] osstest: set the make command to use for xen-build

2018-07-05 Thread Roger Pau Monne
The default make on FreeBSD is the BSD make, and Xen requires the GNU make in order to build. Set the make command based on the OS for the Xen build. Signed-off-by: Roger Pau Monné --- Changes since v1: - Use gmake for all BSDs. --- ts-xen-build | 11 ++- 1 file changed, 6 insertions(+)

[Xen-devel] [PATCH 0/6] osstest: FreeBSD bugfixes and improvements

2018-07-05 Thread Roger Pau Monne
added to the FreeBSD flight and also to the Xen flights. The patches can also be found at: git://xenbits.xen.org/people/royger/osstest.git freebsd_improvement Thanks, Roger. Ian Jackson (1): osstest: allow appending to existing runvars Roger Pau Monne (5): osstest: remove duplicate

[Xen-devel] [PATCH 3/6] osstest: abstract code to create a FreeBSD build job

2018-07-05 Thread Roger Pau Monne
Into a helper. Signed-off-by: Roger Pau Monné --- make-freebsd-flight | 24 +--- mfi-common | 14 ++ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/make-freebsd-flight b/make-freebsd-flight index 1a2b359c..6c530ebe 100755 --- a/make-free

[Xen-devel] [PATCH 2/6] osstest: remove duplicate set_freebsd_runvars

2018-07-05 Thread Roger Pau Monne
The set_freebsd_runvars helper in mfi-common is a superset of the original function present in make-freebsd-flight, and will attempt to fetch the last anointed FreeBSD build as a last resort option if no FreeBSD build is signaled from the FreeBSD env vars. There's no reason to have this duplication

[Xen-devel] [PATCH 6/6] osstest: add FreeBSD Xen build job

2018-07-05 Thread Roger Pau Monne
To both the FreeBSD and the xen-unstable flights. This is the runvar difference of a xen-unstable flight: +build-amd64-xen-freebsd all_host_os freebsd +build-amd64-xen-xsm-freebsd all_host_os freebsd +build-amd64-xen-freebsd all_hostflagsPropEq:Firmware:bios:bios +build-amd6

[Xen-devel] [PATCH 4/6] osstest: limit FreeBSD jobs to hardware booting in BIOS mode

2018-07-05 Thread Roger Pau Monne
There's no support yet in osstest to install FreeBSD from UEFI, so for the time being limit the FreeBSD jobs to boxes booting with legacy BIOS. The hostflags are not set for examine jobs, in order to avoid them from only running on BIOS boxes. Signed-off-by: Roger Pau Monné --- Note that this pa

[Xen-devel] [PATCH] x86/pvh: clarify Dom0 PVH build error message

2018-07-10 Thread Roger Pau Monne
Avoid having error messages with the same text. No functional change. Signed-off-by: Roger Pau Monné --- Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/hvm/dom0_build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/dom0_build.c b/xen/arch/x86/hvm/dom0

[Xen-devel] [PATCH v2] xen/x86: fix linker script to work with lld

2018-07-11 Thread Roger Pau Monne
lld (the llvm linker) has some issues with Xen linker script. It doesn't understand '||' in assert expressions: ld-melf_x86_64_fbsd -T xen.lds -N prelink.o --build-id=sha1 \ /root/src/xen/xen/common/symbols-dummy.o -o /root/src/xen/xen/.xen-syms.0 ld: error: xen.lds:260: malformed number:

[Xen-devel] [PATCH v3 0/3] Fixes to build with lld 6.0.0

2018-07-11 Thread Roger Pau Monne
Hello, The following 3 patches allow building the hypervisor with lld 6.0.0. The only difference between v2 is the split into multiple patches. Thanks, Roger. Roger Pau Monne (3): xen/x86: replace '||' usage in the linker script xen/compiler: introduce a define for weak symbols

[Xen-devel] [PATCH v3 2/3] xen/compiler: introduce a define for weak symbols

2018-07-11 Thread Roger Pau Monne
And replace the open-coded versions already in tree. No functional change. Signed-off-by: Roger Pau Monné --- Cc: Jan Beulich Cc: Andrew Cooper Cc: Daniel Kiper --- xen/include/xen/compiler.h | 2 ++ xen/include/xen/livepatch_payload.h | 4 ++-- 2 files changed, 4 insertions(+), 2 de

[Xen-devel] [PATCH v3 3/3] xen/x86: declare the efi symbol as weak

2018-07-11 Thread Roger Pau Monne
This allows removing the DEFINED conditional in the linker script, and fixes compilation with lld: ld-melf_x86_64_fbsd -T xen.lds -N prelink.o --build-id=sha1 \ /root/src/xen/xen/common/symbols-dummy.o -o /root/src/xen/xen/.xen-syms.0 ld: error: xen.lds:233: symbol not found: efi Signed-

[Xen-devel] [PATCH v3 1/3] xen/x86: replace '||' usage in the linker script

2018-07-11 Thread Roger Pau Monne
With '|'. The result is the same, and the later works with lld. Fixes the following error when building Xen with lld: ld-melf_x86_64_fbsd -T xen.lds -N prelink.o --build-id=sha1 \ /root/src/xen/xen/common/symbols-dummy.o -o /root/src/xen/xen/.xen-syms.0 ld: error: xen.lds:260: malformed n

[Xen-devel] [PATCH] tools: remove local links to the x86 headers

2018-07-12 Thread Roger Pau Monne
In the x86 test harness and the fuzzer, and instead create a link in the tools/include directory that can be used by all the tools. No functional change. Signed-off-by: Roger Pau Monné --- Cc: Jan Beulich Cc: Andrew Cooper Cc: Ian Jackson Cc: Wei Liu --- tools/fuzz/x86_instruction_emulator/

[Xen-devel] [PATCH v2 4/6] osstest: limit FreeBSD jobs to hardware booting in BIOS mode

2018-07-12 Thread Roger Pau Monne
There's no support yet in osstest to install FreeBSD from UEFI, so for the time being limit the FreeBSD jobs to boxes booting with legacy BIOS. The hostflags are not set for examine jobs, in order to avoid them from only running on BIOS boxes. Signed-off-by: Roger Pau Monné Acked-by: Ian Jackson

[Xen-devel] [PATCH v2 6/6] osstest: add FreeBSD Xen build job

2018-07-12 Thread Roger Pau Monne
To both the FreeBSD and the xen-unstable flights. This is the runvar difference of a xen-unstable flight: +build-amd64-xen-freebsd all_host_os freebsd +build-amd64-xen-xsm-freebsd all_host_os freebsd +build-amd64-xen-freebsd all_hostflagsPropEq:Firmware:bios:bios +build-amd6

[Xen-devel] [PATCH v2 0/6] osstest: FreeBSD bugfixes and improvements

2018-07-12 Thread Roger Pau Monne
added to the FreeBSD flight and also to the Xen flights. The patches can also be found at: git://xenbits.xen.org/people/royger/osstest.git freebsd_improvement_v2 Thanks, Roger. Ian Jackson (1): osstest: allow appending to existing runvars Roger Pau Monne (5): osstest: remove duplicate

[Xen-devel] [PATCH v2 5/6] osstest: set the make command to use for xen-build

2018-07-12 Thread Roger Pau Monne
The default make on FreeBSD is the BSD make, and Xen requires the GNU make in order to build. Set the make command based on the OS for the Xen build. Signed-off-by: Roger Pau Monné Acked-by: Ian Jackson --- Changes since v1: - Use gmake for all BSDs. --- ts-xen-build | 11 ++- 1 file c

[Xen-devel] [PATCH v2 1/6] osstest: allow appending to existing runvars

2018-07-12 Thread Roger Pau Monne
From: Ian Jackson So that the contents of the runvar can be expanded. There are currently two ways to do this: - Using += will append to the end of the runvar. - Using ,= will append to the end of the runvar using ',' as the separator. Note that if the runvar is empty {,|+}= just sets the

[Xen-devel] [PATCH v2 2/6] osstest: remove duplicate set_freebsd_runvars

2018-07-12 Thread Roger Pau Monne
The set_freebsd_runvars helper in mfi-common is a superset of the original function present in make-freebsd-flight, and will attempt to fetch the last anointed FreeBSD build as a last resort option if no FreeBSD build is signaled from the FreeBSD env vars. There's no reason to have this duplication

[Xen-devel] [PATCH v2 3/6] osstest: abstract code to create a FreeBSD build job

2018-07-12 Thread Roger Pau Monne
Into a helper. A diff of the runvars of flights generated with and without the patch show no differences. No functional change. Signed-off-by: Roger Pau Monné --- make-freebsd-flight | 24 +--- mfi-common | 14 ++ 2 files changed, 19 insertions(+), 19 de

[Xen-devel] [PATCH v2] tools: remove local links to the x86 headers

2018-07-12 Thread Roger Pau Monne
In the x86 test harness and the fuzzer, and instead create a link in the tools/include directory that can be used by all the tools. No functional change. Signed-off-by: Roger Pau Monné --- Cc: Jan Beulich Cc: Andrew Cooper Cc: Ian Jackson Cc: Wei Liu --- Changes since v1: - Don't remove the

[Xen-devel] [PATCH] x86/efi: move the logic to detect PE build support

2018-07-13 Thread Roger Pau Monne
So that it can be used by other components apart from the efi specific code. This is required so that the conditional used to define the efi symbol in the linker script can be removed and instead the definition of the efi symbol can be guarded using the preprocessor. The motivation behind this ch

[Xen-devel] [PATCH v2 0/2] EFI build improvements

2018-07-16 Thread Roger Pau Monne
multiboot2 capable ELF binary linker PE support was also required. Thanks, Roger. Roger Pau Monne (2): x86/efi: move the logic to detect PE build support x86/efi: split compiler vs linker support .gitignore| 1 - xen/arch/x86/Makefile | 12 ++-- xen/arch/x86/efi

[Xen-devel] [PATCH v2 2/2] x86/efi: split compiler vs linker support

2018-07-16 Thread Roger Pau Monne
So that an ELF binary with support for EFI services will be built when the compiler supports the MS ABI, regardless of the linker support for PE. Signed-off-by: Roger Pau Monné --- Cc: Jan Beulich Cc: Andrew Cooper Cc: Daniel Kiper --- Changes since v1: - New in this version. --- xen/arch/x8

[Xen-devel] [PATCH v2 1/2] x86/efi: move the logic to detect PE build support

2018-07-16 Thread Roger Pau Monne
So that it can be used by other components apart from the efi specific code. By moving the detection code creating a dummy efi/disabled file can be avoided. This is required so that the conditional used to define the efi symbol in the linker script can be removed and instead the definition of the

[Xen-devel] [PATCH v2 03/11] vpci: add tear down functions

2018-07-17 Thread Roger Pau Monne
Tear down functions are not mandatory. Note that this patch just implements the framework, but doesn't implement any tear down function yet. The list of vpci init and teardown functions is also moved outside of the init section. This is in preparation for SR-IOV support, which requires the ability

[Xen-devel] [PATCH v2 08/11] vpci/header: allow multiple map operations

2018-07-17 Thread Roger Pau Monne
To be queued in vpci_vcpu. This will be required for SR-IOV support, which uses a single control register bit to toggle memory decoding for all the virtual functions. No functional change expected. Signed-off-by: Roger Pau Monné Reviewed-by: Wei Liu --- Cc: Andrew Cooper Cc: George Dunlap Cc:

[Xen-devel] [PATCH v2 02/11] vpci/msix: add lock to protect the list of MSIX regions

2018-07-17 Thread Roger Pau Monne
This is required in order to allow run-time removal of MSI-X regions. No functional change. Signed-off-by: Roger Pau Monné Reviewed-by: Wei Liu --- Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Julien Grall Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Ti

[Xen-devel] [PATCH v2 10/11] vpci: add a wait operation to the vpci vcpu pending actions

2018-07-17 Thread Roger Pau Monne
This allows waiting a specified number of cycles on the vcpu. Once the wait has finished a callback is executed. Note that this is still not used, but introduced here in order to simplify the complexity of the patches that actually make use of it. Signed-off-by: Roger Pau Monné --- Cc: Andrew Co

[Xen-devel] [PATCH v2 00/11] vpci: add support for SR-IOV capability

2018-07-17 Thread Roger Pau Monne
preparatory changes in order to support SR-IOV. Patch 11 actually adds support for the capability. The series can also be found at: git://xenbits.xen.org/people/royger/xen.git sriov.v2 The series has been tested with a Linux PVH Dom0 and an Intel I350 nic. Thanks, Roger. Roger Pau Monne (11): vpci

[Xen-devel] [PATCH v2 01/11] vpci: move lock

2018-07-17 Thread Roger Pau Monne
To the outside of the vpci struct. This way the lock can be used to check whether vpci is present, and removal can be performed while holding the lock, in order to make sure there are no accesses to the contents of the vpci struct. Previously removal could race with vpci_read for example, since the

[Xen-devel] [PATCH v2 05/11] vpci/msi: add teardown cleanup

2018-07-17 Thread Roger Pau Monne
So that interrupts are properly freed. Signed-off-by: Roger Pau Monné --- Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Julien Grall Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Tim Deegan Cc: Wei Liu --- Changes since v1: - Free the msi struct in the t

[Xen-devel] [PATCH v2 07/11] rangeset: introduce rangeset_merge

2018-07-17 Thread Roger Pau Monne
This new helper will merge two rangesets. Signed-off-by: Roger Pau Monné Acked-by: Wei Liu --- Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Julien Grall Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Tim Deegan Cc: Wei Liu --- xen/common/rangeset.c

[Xen-devel] [PATCH v2 04/11] vpci/msix: add teardown cleanup

2018-07-17 Thread Roger Pau Monne
So that interrupts are properly freed. Signed-off-by: Roger Pau Monné --- Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Julien Grall Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Tim Deegan Cc: Wei Liu --- Changes since v1: - Shuffle order of the teardow

[Xen-devel] [PATCH v2 06/11] vpci/header: add teardown cleanup

2018-07-17 Thread Roger Pau Monne
In order to unmap the BARs Signed-off-by: Roger Pau Monné --- Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Julien Grall Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Tim Deegan Cc: Wei Liu --- Changes since v1: - Add comment regarding the fact that memo

[Xen-devel] [PATCH v2 11/11] vpci/sriov: add support for SR-IOV capability

2018-07-17 Thread Roger Pau Monne
So that a PCI device that supports SR-IOV (PF) can enable the capability and use the virtual functions. This code is expected to only be used by privileged domains, unprivileged domains should not get access to the SR-IOV capability. The current code detects enabling of the virtual functions feat

[Xen-devel] [PATCH v2 09/11] pci: add vpci hooks for device addition/removal

2018-07-17 Thread Roger Pau Monne
So that pci_{add/remove}_device work correctly with vpci. Note that this requires moving vpci_add_handlers out of the init section. Signed-off-by: Roger Pau Monné Reviewed-by: Wei Liu --- Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Julien Grall Cc: Konrad Rzeszut

[Xen-devel] [PATCH XTF v4] add HPET functional test

2018-07-17 Thread Roger Pau Monne
In order to test HPET level trigger interrupts. Note that the test doesn't check that the interrupt is injected correctly, only that the status bits are properly set an acknowledged when using HPET with level triggered interrupts. Signed-off-by: Roger Pau Monné --- Cc: Andrew Cooper --- arch/x

[Xen-devel] [PATCH v4 1/2] vpt: add support for level interrupts

2018-07-17 Thread Roger Pau Monne
Level trigger interrupts will be asserted regardless of whether the interrupt is masked, and thus the callback will also be executed. Add a new 'level' parameter to create_periodic_time in order to create level triggered timers. None of the current users of vpt are switched to use level triggered

[Xen-devel] [PATCH v4 0/2] vhpet: add support for level triggered interrupts

2018-07-17 Thread Roger Pau Monne
(mainly the level triggered interrupts) to xtf. The Xen series can be found at: git://xenbits.xen.org/people/royger/xen.git vhpet.v4 Thanks, Roger. Roger Pau Monne (2): vpt: add support for level interrupts vhpet: add support for level triggered interrupts xen/arch/x86/hvm/hpet.c | 54

[Xen-devel] [PATCH v4 2/2] vhpet: add support for level triggered interrupts

2018-07-17 Thread Roger Pau Monne
Level triggered interrupts are not an optional feature of HPET, and must be implemented in order to comply with the HPET specification. Implement them by adding a callback to the timer which sets the interrupt bit in the general interrupt status register. Further interrupts (in case of periodic mo

[Xen-devel] [PATCH v4 8/9] osstest: introduce a helper to create Xen build jobs

2018-07-17 Thread Roger Pau Monne
This is currently a non-functional change, since no new jobs are added, and the existing ones should stay unchanged. Runvars of a xen-unstable flight are exactly the same. The purpose of the helper is to allow adding different Xen build jobs, with likely different runvars in the future. Signed-of

[Xen-devel] [PATCH v4 5/9] osstest: abstract code to create a FreeBSD build job

2018-07-17 Thread Roger Pau Monne
Into a helper. A diff of the runvars of flights generated with and without the patch show no differences. No functional change. Signed-off-by: Roger Pau Monné --- make-freebsd-flight | 24 +--- mfi-common | 14 ++ 2 files changed, 19 insertions(+), 19 de

[Xen-devel] [PATCH v4 1/9] dummy flight generation: Tolerate lack of repos

2018-07-17 Thread Roger Pau Monne
From: Ian Jackson In particular OSSTEST_CONFIG=standalone-config-example eatmydata bash -x ./standalone-generate-dump-flight-runvars should not require ~/osstest-repos to exist. Signed-off-by: Ian Jackson --- cri-getconfig | 2 +- cri-lock-repos | 4 +++- 2 files changed, 4 insertions(+),

[Xen-devel] [PATCH v4 0/9] osstest: FreeBSD bugfixes and improvements

2018-07-17 Thread Roger Pau Monne
print { } osstest: allow appending to existing runvars Roger Pau Monne (6): osstest: remove duplicate set_freebsd_runvars osstest: abstract code to create a FreeBSD build job osstest: limit FreeBSD jobs to hardware booting in BIOS mode osstest: set the make command to use for xen-build

[Xen-devel] [PATCH v4 7/9] osstest: set the make command to use for xen-build

2018-07-17 Thread Roger Pau Monne
The default make on FreeBSD is the BSD make, and Xen requires the GNU make in order to build. Set the make command based on the OS for the Xen build. Signed-off-by: Roger Pau Monné Acked-by: Ian Jackson --- Changes since v1: - Use gmake for all BSDs. --- ts-xen-build | 11 ++- 1 file c

[Xen-devel] [PATCH v4 6/9] osstest: limit FreeBSD jobs to hardware booting in BIOS mode

2018-07-17 Thread Roger Pau Monne
There's no support yet in osstest to install FreeBSD from UEFI, so for the time being limit the FreeBSD jobs to boxes booting with legacy BIOS. The hostflags are not set for examine jobs, in order to avoid them from only running on BIOS boxes. The runvar difference with this patch applied is: +f

[Xen-devel] [PATCH v4 3/9] osstest: allow appending to existing runvars

2018-07-17 Thread Roger Pau Monne
From: Ian Jackson So that the contents of the runvar can be expanded. There are currently two ways to do this: - Using += will append to the end of the runvar. - Using ,= will append to the end of the runvar using ',' as the separator. Note that if the runvar is empty {,|+}= just sets the

[Xen-devel] [PATCH v4 4/9] osstest: remove duplicate set_freebsd_runvars

2018-07-17 Thread Roger Pau Monne
The set_freebsd_runvars helper in mfi-common is a superset of the original function present in make-freebsd-flight, and will attempt to fetch the last anointed FreeBSD build as a last resort option if no FreeBSD build is signaled from the FreeBSD env vars. There's no reason to have this duplication

[Xen-devel] [PATCH v4 2/9] dummy flight generation: cs-hosts-list should not print { }

2018-07-17 Thread Roger Pau Monne
From: Ian Jackson With newer bash, this causes local envvar="FREEBSD_${arch^^}_BUILDJOB" if [ -n "${!envvar}" ]; then to (properly) report a syntax error. As Roger says, it is better to print a dummy host for each architecture, so do that. Reported-by: Roger Pau Monné Signed-off-by

[Xen-devel] [PATCH v4 9/9] osstest: add FreeBSD Xen build job

2018-07-17 Thread Roger Pau Monne
To both the FreeBSD and the xen-unstable flights. This is the runvar difference of all flights: +freebsd-master build-amd64-xen-freebsd all_host_osfreebsd +freebsd-master build-amd64-xen-freebsd all_hostflags PropEq:Firmware:bios:bios +freebsd-master build-amd64-xen-freebsd

[Xen-devel] [PATCH v3 0/2] EFI build improvements

2018-07-18 Thread Roger Pau Monne
multiboot2 capable ELF binary linker PE support was also required. The series can be found at: git://xenbits.xen.org/people/royger/xen.git efi.v3 Thanks, Roger. Roger Pau Monne (2): x86/efi: move the logic to detect PE build support x86/efi: split compiler vs linker support .gitignore

[Xen-devel] [PATCH v3 2/2] x86/efi: split compiler vs linker support

2018-07-18 Thread Roger Pau Monne
So that an ELF binary with support for EFI services will be built when the compiler supports the MS ABI, regardless of the linker support for PE. Signed-off-by: Roger Pau Monné Reviewed-by: Jan Beulich --- Cc: Jan Beulich Cc: Andrew Cooper Cc: Daniel Kiper --- Changes since v1: - New in this

[Xen-devel] [PATCH v3 1/2] x86/efi: move the logic to detect PE build support

2018-07-18 Thread Roger Pau Monne
So that it can be used by other components apart from the efi specific code. By moving the detection code creating a dummy efi/disabled file can be avoided. This is required so that the conditional used to define the efi symbol in the linker script can be removed and instead the definition of the

[Xen-devel] [PATCH] lzma: fix hypervisor build

2018-07-20 Thread Roger Pau Monne
Remove local definition of MIN and instead include the kernel.h header for the hypervisor build. Fixes the following error on the tools build: In file included from xc_dom_decompress_unsafe_lzma.c:8:0: ../../xen/common/unlzma.c:33:0: error: "MIN" redefined [-Werror] #define MIN(a, b) (((a) < (b))

[Xen-devel] [PATCH] docs: use the make wildcard function instead of find

2018-07-23 Thread Roger Pau Monne
The regexp used with find in order to list the man pages doesn't work with FreeBSD find, so use a wildcard instead. No functional change. Signed-off-by: Roger Pau Monné --- Cc: Ian Jackson Cc: Wei Liu --- docs/Makefile | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a

[Xen-devel] [PATCH] x86/pvh: change the order of the iommu initialization for Dom0

2018-07-24 Thread Roger Pau Monne
The iommu initialization will also create MMIO mappings in the Dom0 p2m, so the paging memory pool needs to be allocated or else iommu initialization will fail. Move the call to init the iommu after the Dom0 p2m has been setup in order to solve this. Note that issues caused by this wrong ordering

[Xen-devel] [PATCH 4/4] x86/iommu: add PVH support to the inclusive options

2018-07-27 Thread Roger Pau Monne
Several people have reported hardware issues (malfunctioning USB controllers) due to iommu page faults. Those faults are caused by missing RMRR (VTd) or IRVS (AMD-Vi) entries in the ACPI tables. Those can be worked around on VTd hardware by manually adding RMRR entries on the command line, this is

[Xen-devel] [PATCH 3/4] x86/iommu: reorder conditions used in the inclusive iommu mappings

2018-07-27 Thread Roger Pau Monne
In order to place all the map conditions in a single if ... else conditional. No functional change. Signed-off-by: Roger Pau Monné --- Cc: Jan Beulich --- xen/drivers/passthrough/x86/iommu.c | 23 ++- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/xen/drive

[Xen-devel] [PATCH 2/4] iommu: generalize iommu_inclusive_mapping

2018-07-27 Thread Roger Pau Monne
Introduce a new iommu=inclusive generic option that supersedes iommu_inclusive_mapping. This should be a non-functional change on Intel hardware, while AMD hardware will gain the same functionality of mapping almost everything below the 4GB boundary. Note that is a noop for ARM hardware. Signed-o

[Xen-devel] [PATCH 1/4] iommu: remove unneeded return from iommu_hwdom_init

2018-07-27 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné --- Cc: Jan Beulich --- xen/drivers/passthrough/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/passthrough/iommu.c b/xen/drivers/passthrough/iommu.c index 2c44fabf99..70d218f910 100644 --- a/xen/drivers/passthrough/iommu.c +

[Xen-devel] [PATCH 0/4] x86/iommu: PVH Dom0 workarounds for missing RMRR/IRSV entries

2018-07-27 Thread Roger Pau Monne
emory map. The series can be found at: git://xenbits.xen.org/people/royger/xen.git iommu_inclusive_v1 Thanks, Roger. Roger Pau Monne (4): iommu: remove unneeded return from iommu_hwdom_init iommu: generalize iommu_inclusive_mapping x86/iommu: reorder conditions used in the inclusive iommu map

[Xen-devel] [PATCH v2 2/5] iommu: introduce dom0-iommu option

2018-08-01 Thread Roger Pau Monne
To select the iommu configuration used by Dom0. This option supersedes iommu=dom0-strict|dom0-passthrough. No functional change. Signed-off-by: Roger Pau Monné --- Changes since v1: - New in this version. --- Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Julien Gra

[Xen-devel] [PATCH v2 1/5] iommu/vtd: cleanup vtd_set_hwdom_mapping after ia64 removal

2018-08-01 Thread Roger Pau Monne
Remove the handling for different page sizes now that ia64 is gone. No functional change. Reported by: Jan Beulich Signed-off-by: Roger Pau Monné --- Changes since v1: - New in this version. --- Cc: Kevin Tian --- xen/drivers/passthrough/vtd/x86/vtd.c | 17 - 1 file changed,

[Xen-devel] [PATCH v2 5/5] x86/iommu: add PVH support to the inclusive options

2018-08-01 Thread Roger Pau Monne
Several people have reported hardware issues (malfunctioning USB controllers) due to iommu page faults on Intel hardware. Those faults are caused by missing RMRR (VTd) entries in the ACPI tables. Those can be worked around on VTd hardware by manually adding RMRR entries on the command line, this is

[Xen-devel] [PATCH v2 0/5] x86/iommu: PVH Dom0 workarounds for missing RMRR entries

2018-08-01 Thread Roger Pau Monne
dware. It's also available to AMD hardware, although it's disabled by default in that case. The series can be found at: git://xenbits.xen.org/people/royger/xen.git iommu_inclusive_v2 Thanks, Roger. Roger Pau Monne (5): iommu/vtd: cleanup vtd_set_hwdom_mapping after ia64 removal i

[Xen-devel] [PATCH v2 4/5] dom0/pvh: change the order of the MMCFG initialization

2018-08-01 Thread Roger Pau Monne
So it's done before the iommu is initialized. This is required in order to be able to fetch the MMCFG regions from the domain struct. No functional change. Signed-off-by: Roger Pau Monné --- Changes since v1: - New in this version. --- Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/hvm/d

[Xen-devel] [PATCH v2 3/5] iommu: make iommu_inclusive_mapping a suboption of dom0-iommu

2018-08-01 Thread Roger Pau Monne
Introduce a new dom0-iommu=inclusive generic option that supersedes iommu_inclusive_mapping. The prevcious behaviour is preserved and the option should only be enabled by default on Intel hardware. No functional change intended. Signed-off-by: Roger Pau Monné --- Changes since v1: - Use dom0-io

[Xen-devel] [PATCH] tools: fix python shebangs to use /usr/bin/env

2018-08-02 Thread Roger Pau Monne
The path to the python binary can be different from /usr/bin/python depending on the distro/OS. Signed-off-by: Roger Pau Monné --- Cc: Ian Jackson Cc: Wei Liu Cc: Christian Lindig Cc: David Scott --- tools/include/xen-foreign/mkchecker.py | 2 +- tools/include/xen-foreign/mkheader.py|

[Xen-devel] [PATCH v3 4/4] x86/iommu: add reserved dom0-iommu option to map reserved memory ranges

2018-08-07 Thread Roger Pau Monne
Several people have reported hardware issues (malfunctioning USB controllers) due to iommu page faults on Intel hardware. Those faults are caused by missing RMRR (VTd) entries in the ACPI tables. Those can be worked around on VTd hardware by manually adding RMRR entries on the command line, this is

[Xen-devel] [PATCH v3 0/4] x86/iommu: PVH Dom0 workarounds for missing RMRR entries

2018-08-07 Thread Roger Pau Monne
dware. It's also available to AMD hardware, although it's disabled by default in that case. The series can be found at: git://xenbits.xen.org/people/royger/xen.git iommu_inclusive_v3 Thanks, Roger. Roger Pau Monne (4): iommu: introduce dom0-iommu option iommu: make iommu_incl

[Xen-devel] [PATCH v3 2/4] iommu: make iommu_inclusive_mapping a suboption of dom0-iommu

2018-08-07 Thread Roger Pau Monne
Introduce a new dom0-iommu=inclusive generic option that supersedes iommu_inclusive_mapping. The previous behaviour is preserved and the option should only be enabled by default on Intel hardware. No functional change intended. Signed-off-by: Roger Pau Monné --- Changes since v2: - Fix typo in

[Xen-devel] [PATCH v3 1/4] iommu: introduce dom0-iommu option

2018-08-07 Thread Roger Pau Monne
To select the iommu configuration used by Dom0. This option supersedes iommu=dom0-strict|dom0-passthrough. No functional change. Signed-off-by: Roger Pau Monné Reviewed-by: Paul Durrant --- Changes since v2: - Change the style and text used in the xen command line document. - Don't allow none

[Xen-devel] [PATCH v3 3/4] dom0/pvh: change the order of the MMCFG initialization

2018-08-07 Thread Roger Pau Monne
So it's done before the iommu is initialized. This is required in order to be able to fetch the MMCFG regions from the domain struct. No functional change. Signed-off-by: Roger Pau Monné --- Changes since v1: - New in this version. --- Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/hvm/d

[Xen-devel] [PATCH v4 1/4] iommu: introduce dom0-iommu option

2018-08-08 Thread Roger Pau Monne
To select the iommu configuration used by Dom0. This option supersedes iommu=dom0-strict|dom0-passthrough. No functional change. Signed-off-by: Roger Pau Monné Reviewed-by: Paul Durrant --- Changes since v2: - Change the style and text used in the xen command line document. - Don't allow none

[Xen-devel] [PATCH v4 3/4] dom0/pvh: change the order of the MMCFG initialization

2018-08-08 Thread Roger Pau Monne
So it's done before the iommu is initialized. This is required in order to be able to fetch the MMCFG regions from the domain struct. No functional change. Signed-off-by: Roger Pau Monné --- Changes since v1: - New in this version. --- Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/hvm/d

[Xen-devel] [PATCH v4 2/4] iommu: make iommu_inclusive_mapping a suboption of dom0-iommu

2018-08-08 Thread Roger Pau Monne
Introduce a new dom0-iommu=inclusive generic option that supersedes iommu_inclusive_mapping. The previous behaviour is preserved and the option should only be enabled by default on Intel hardware. No functional change intended. Signed-off-by: Roger Pau Monné Reviewed-by: Paul Durrant --- Change

[Xen-devel] [PATCH v4 0/4] 86/iommu: PVH Dom0 workarounds for missing RMRR entries

2018-08-08 Thread Roger Pau Monne
dware. It's also available to AMD hardware, although it's disabled by default in that case. The series can be found at: git://xenbits.xen.org/people/royger/xen.git iommu_inclusive_v4 Thanks. Roger Pau Monne (4): iommu: introduce dom0-iommu option iommu: make iommu_inclusive_mapping

[Xen-devel] [PATCH v4 4/4] x86/iommu: add reserved dom0-iommu option to map reserved memory ranges

2018-08-08 Thread Roger Pau Monne
Several people have reported hardware issues (malfunctioning USB controllers) due to iommu page faults on Intel hardware. Those faults are caused by missing RMRR (VTd) entries in the ACPI tables. Those can be worked around on VTd hardware by manually adding RMRR entries on the command line, this is

[Xen-devel] [PATCH] xen/balloon: fix balloon initialization for PVH Dom0

2018-08-08 Thread Roger Pau Monne
The current balloon code tries to calculate a delta factor for the balloon target when running in HVM mode in order to account for memory used by the firmware. This workaround for memory accounting doesn't work properly on a PVH Dom0, that has a static-max value different from the target value eve

<    1   2   3   4   5   6   7   8   9   10   >