Re: [Xen-devel] PVH Whitelist Results / Windows Dom0

2018-12-03 Thread Connor Davis
‐‐‐ Original Message ‐‐‐ On Monday, December 3, 2018 1:07 PM, Rian Quinn wrote: >> Xen signals in the FADT that there's no VGA, but I won't be surprised >> that some OSes simply ignore this bit because there are systems with >> broken ACPI tables out there with the bit set and VGA. > > We

[Xen-devel] [BUG] Serial port prevents PVH dom0 boot

2018-07-25 Thread Connor Davis
=115200,8n1 Xen either receives an NMI in process_pending_softirqs or gets stuck in __sync_local_execstate iommu=1 dom0 boots fine, but USB doesn't work (as others have recently posted about). I'm using xen staging and linux xen/tip. Example logs for the first two cases are attached. Co

[PATCH for-next 1/6] xen/char: Default HAS_NS16550 to y only for X86 and ARM

2021-02-25 Thread Connor Davis
Defaulting to yes only for X86 and ARM reduces the requirements for a minimal build when porting new architectures. Signed-off-by: Connor Davis --- xen/drivers/char/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/char/Kconfig b/xen/drivers/char/Kconfig

[PATCH for-next 2/6] xen/common: Guard iommu symbols with CONFIG_HAS_PASSTHROUGH

2021-02-25 Thread Connor Davis
. Signed-off-by: Connor Davis --- xen/common/domain.c | 2 ++ xen/common/memory.c | 10 ++ xen/common/sysctl.c | 2 ++ 3 files changed, 14 insertions(+) diff --git a/xen/common/domain.c b/xen/common/domain.c index d85984638a..ad66bca325 100644 --- a/xen/common/domain.c +++ b/xen/common

[PATCH for-next 3/6] xen/sched: Fix build when NR_CPUS == 1

2021-02-25 Thread Connor Davis
LL ) | Signed-off-by: Connor Davis --- xen/common/sched/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/common/sched/core.c b/xen/common/sched/core.c index 9745a77eee..f5ec65bf9b 100644 --- a/xen/common/sched/core.c +++ b/xen/common/sched/core.c @@ -2763,7 +

[PATCH for-next 4/6] xen: Fix build when !CONFIG_GRANT_TABLE

2021-02-25 Thread Connor Davis
tic inline int mem_sharing_gref_to_gfn(struct grant_table *gt, | Signed-off-by: Connor Davis --- xen/include/xen/grant_table.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/include/xen/grant_table.h b/xen/include/xen/grant_table.h index 63b6dc78f4..0e5f6f85c7 100644 --- a/xen/i

[PATCH for-next 6/6] automation: add container for riscv64 builds

2021-02-25 Thread Connor Davis
Signed-off-by: Connor Davis --- automation/build/archlinux/riscv64.dockerfile | 32 +++ automation/scripts/containerize | 1 + 2 files changed, 33 insertions(+) create mode 100644 automation/build/archlinux/riscv64.dockerfile diff --git a/automation/build/archlinux

[PATCH for-next 0/6] Minimal build for RISCV

2021-02-25 Thread Connor Davis
b/find_next_bit.c I imagine some of these will want some consolidation, but I put them under the respective RISCV directories for now. [0] https://lore.kernel.org/xen-devel/cover.1579615303.git.bobbyeshle...@gmail.com/ Connor Davis (6): xen/char: Default HAS_NS16550 to y only for X86 and ARM

Re: [XEN PATCH v6 31/31] build,riscv: tell the build system about riscv64/head.S

2021-07-09 Thread Connor Davis
/arch/riscv/riscv64/Makefile @@ -0,0 +1 @@ +extra-y += head.o Acked-by: Connor Davis - Connor

[PATCH] drivers/char: Add USB3 debug capability driver

2021-05-11 Thread Connor Davis
dbgp=xhci`. Note that to see output and/or provide input after dom0 starts, DMA remapping of the host controller must be disabled. Signed-off-by: Connor Davis --- MAINTAINERS |6 + docs/misc/xen-command-line.pandoc | 19 +- xen/arch/x86/Kconfig |1 -

[PATCH 0/3] Support xen-driven USB3 debug capability

2021-05-11 Thread Connor Davis
CONFIG_XEN_DOM0 is enabled so they may be used by the xHCI driver. The last uses those functions to notify xen of unsafe periods (e.g. reset and D3hot transition). Thanks, Connor -- Connor Davis (3): usb: early: Avoid using DbC if already enabled xen: Export dbgp functions when CONFIG_XEN_DOM0 is

[PATCH 1/3] usb: early: Avoid using DbC if already enabled

2021-05-11 Thread Connor Davis
Check if the debug capability is enabled in early_xdbc_parse_parameter, and if it is, return with an error. This avoids collisions with whatever enabled the DbC prior to linux starting. Signed-off-by: Connor Davis --- drivers/usb/early/xhci-dbc.c | 10 ++ 1 file changed, 10 insertions

[PATCH 3/3] usb: xhci: Notify xen when DbC is unsafe to use

2021-05-11 Thread Connor Davis
undefined behavior resulting from MMIO access when the host controller's CNR bit is set or when the device transitions to D3hot. Signed-off-by: Connor Davis --- drivers/usb/host/xhci-dbgcap.h | 6 drivers/usb/host/xhci.c| 57 ++ drivers/usb

[PATCH 2/3] xen: Export dbgp functions when CONFIG_XEN_DOM0 is enabled

2021-05-11 Thread Connor Davis
Export xen_dbgp_reset_prep and xen_dbgp_external_startup when CONFIG_XEN_DOM0 is defined. This allows use of these symbols even if CONFIG_EARLY_PRINK_DBGP is defined. Signed-off-by: Connor Davis --- drivers/xen/dbgp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

Re: [PATCH 2/3] xen: Export dbgp functions when CONFIG_XEN_DOM0 is enabled

2021-05-12 Thread Connor Davis
On May 12, 21, Boris Ostrovsky wrote: > > On 5/11/21 8:18 PM, Connor Davis wrote: > > Export xen_dbgp_reset_prep and xen_dbgp_external_startup > > when CONFIG_XEN_DOM0 is defined. This allows use of these symbols > > even if CONFIG_EARLY_PRINK_DBGP is defined. > > &

Re: [PATCH 3/3] usb: xhci: Notify xen when DbC is unsafe to use

2021-05-12 Thread Connor Davis
On May 12, 21, Greg Kroah-Hartman wrote: > On Tue, May 11, 2021 at 06:18:21PM -0600, Connor Davis wrote: > > When running as a dom0 guest on Xen, check if the USB3 debug > > capability is enabled before xHCI reset, suspend, and resume. If it > > is, call xen_dbgp_reset_prep()

Re: [PATCH 2/3] xen: Export dbgp functions when CONFIG_XEN_DOM0 is enabled

2021-05-12 Thread Connor Davis
On May 12, 21, Juergen Gross wrote: > On 12.05.21 02:18, Connor Davis wrote: > > Export xen_dbgp_reset_prep and xen_dbgp_external_startup > > when CONFIG_XEN_DOM0 is defined. This allows use of these symbols > > even if CONFIG_EARLY_PRINK_DBGP is defined. > > >

[PATCH v2 1/4] usb: early: Avoid using DbC if already enabled

2021-05-13 Thread Connor Davis
Check if the debug capability is enabled in early_xdbc_parse_parameter, and if it is, return with an error. This avoids collisions with whatever enabled the DbC prior to linux starting. Signed-off-by: Connor Davis --- drivers/usb/early/xhci-dbc.c | 10 ++ 1 file changed, 10 insertions

[PATCH v2 0/4] Support xen-driven USB3 debug capability

2021-05-13 Thread Connor Davis
tions to notify xen of unsafe periods (e.g. reset and D3hot transition). Thanks, Connor -- Changes since v1: - Added patch for dbgp return value fixes - Return -EPERM when !xen_initial_domain() in xen_dbgp_op - Moved #ifdef-ary out of xhci.c into xhci-dbgcap.h -- Connor Davis (4): usb: early:

[PATCH v2 2/4] xen: Export dbgp functions when CONFIG_XEN_DOM0 is enabled

2021-05-13 Thread Connor Davis
Export xen_dbgp_reset_prep and xen_dbgp_external_startup when CONFIG_XEN_DOM0 is defined. This allows use of these symbols even if CONFIG_EARLY_PRINK_DBGP is defined. Signed-off-by: Connor Davis Acked-by: Juergen Gross --- drivers/xen/dbgp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v2 3/4] usb: dbgp: Fix return values for reset prep and startup

2021-05-13 Thread Connor Davis
no functional change since no callers actually check the value). Signed-off-by: Connor Davis --- drivers/usb/early/ehci-dbgp.c | 9 ++--- drivers/xen/dbgp.c| 2 +- include/linux/usb/ehci-dbgp.h | 14 +- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/dr

Re: [PATCH for-next 5/6] xen: Add files needed for minimal riscv build

2021-05-13 Thread Connor Davis
On 3/12/21 10:09 AM, Jan Beulich wrote: On 25.02.2021 16:24, Connor Davis wrote: --- a/xen/include/public/hvm/save.h +++ b/xen/include/public/hvm/save.h @@ -106,6 +106,8 @@ DECLARE_HVM_SAVE_TYPE(END, 0, struct hvm_save_end); #include "../arch-x86/hvm/save.h" #elif defin

[PATCH v2 1/5] xen/char: Default HAS_NS16550 to y only for X86 and ARM

2021-05-13 Thread Connor Davis
Defaulting to yes only for X86 and ARM reduces the requirements for a minimal build when porting new architectures. Signed-off-by: Connor Davis --- xen/drivers/char/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/char/Kconfig b/xen/drivers/char/Kconfig

[PATCH v2 0/5] Minimal build for RISCV

2021-05-13 Thread Connor Davis
CPUS == 1" since this was fixed for 4.15 - Moved #ifdef-ary around iommu_enabled to iommu.h - Moved struct grant_table declaration above ifdef CONFIG_GRANT_TABLE instead of defining an empty struct when !CONFIG_GRANT_TABLE Connor Davis (5): xen/char: Default HAS_NS16550 to y only for X

[PATCH v2 2/5] xen/common: Guard iommu symbols with CONFIG_HAS_PASSTHROUGH

2021-05-13 Thread Connor Davis
. Signed-off-by: Connor Davis --- xen/common/memory.c | 10 ++ xen/include/xen/iommu.h | 8 +++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/xen/common/memory.c b/xen/common/memory.c index b5c70c4b85..72a6b70cb5 100644 --- a/xen/common/memory.c +++ b/xen/common

[PATCH v2 3/5] xen: Fix build when !CONFIG_GRANT_TABLE

2021-05-13 Thread Connor Davis
tic inline int mem_sharing_gref_to_gfn(struct grant_table *gt, | Signed-off-by: Connor Davis --- xen/include/xen/grant_table.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/include/xen/grant_table.h b/xen/include/xen/grant_table.h index 63b6dc78f4..9f8b7e66c1 10

[PATCH v2 5/5] automation: add container for riscv64 builds

2021-05-13 Thread Connor Davis
Signed-off-by: Connor Davis --- automation/build/archlinux/riscv64.dockerfile | 33 +++ automation/scripts/containerize | 1 + 2 files changed, 34 insertions(+) create mode 100644 automation/build/archlinux/riscv64.dockerfile diff --git a/automation/build/archlinux

Re: [PATCH v2 4/5] xen: Add files needed for minimal riscv build

2021-05-14 Thread Connor Davis
On 5/14/21 3:46 AM, Julien Grall wrote: Hi Connor, On 14/05/2021 05:17, Connor Davis wrote: Add the minimum code required to get xen to build with XEN_TARGET_ARCH=riscv64. It is minimal in the sense that every file and function added is required for a successful build, given the .config

Re: [PATCH v2 0/5] Minimal build for RISCV

2021-05-14 Thread Connor Davis
On 5/13/21 10:43 PM, Alistair Francis wrote: On Fri, May 14, 2021 at 2:18 PM Connor Davis wrote: Hi all, This series introduces a minimal build for RISCV. It is based on Bobby's previous work from last year[0]. I have worked to rebase onto current Xen, as well as update the various h

Re: [PATCH v2 2/4] xen: Export dbgp functions when CONFIG_XEN_DOM0 is enabled

2021-05-14 Thread Connor Davis
Adding Greg and linux-usb On 5/13/21 6:56 PM, Connor Davis wrote: Export xen_dbgp_reset_prep and xen_dbgp_external_startup when CONFIG_XEN_DOM0 is defined. This allows use of these symbols even if CONFIG_EARLY_PRINK_DBGP is defined. Signed-off-by: Connor Davis Acked-by: Juergen Gross

Re: [PATCH v2 0/4] Support xen-driven USB3 debug capability

2021-05-14 Thread Connor Davis
On 5/14/21 12:46 AM, Greg Kroah-Hartman wrote: On Thu, May 13, 2021 at 06:56:47PM -0600, Connor Davis wrote: Hi all, This goal of this series is to allow the USB3 debug capability (DbC) to be safely used by xen while linux runs as dom0. Patch 2/4 does not seem to be showing up anywhere, did

Re: [PATCH v2 1/5] xen/char: Default HAS_NS16550 to y only for X86 and ARM

2021-05-14 Thread Connor Davis
On 5/13/21 11:34 PM, Elliott Mitchell wrote: On Thu, May 13, 2021 at 10:17:08PM -0600, Connor Davis wrote: Defaulting to yes only for X86 and ARM reduces the requirements for a minimal build when porting new architectures. Signed-off-by: Connor Davis --- xen/drivers/char/Kconfig | 2

[PATCH v3 0/5] Minimal build for RISCV

2021-05-14 Thread Connor Davis
ifdef CONFIG_GRANT_TABLE instead of defining an empty struct when !CONFIG_GRANT_TABLE Connor Davis (5): xen/char: Default HAS_NS16550 to y only for X86 and ARM xen/common: Guard iommu symbols with CONFIG_HAS_PASSTHROUGH xen: Fix build when !CONFIG_GRANT_TABLE xen: Add files neede

[PATCH v3 1/5] xen/char: Default HAS_NS16550 to y only for X86 and ARM

2021-05-14 Thread Connor Davis
Defaulting to yes only for X86 and ARM reduces the requirements for a minimal build when porting new architectures. Signed-off-by: Connor Davis --- xen/drivers/char/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/char/Kconfig b/xen/drivers/char/Kconfig

[PATCH v3 2/5] xen/common: Guard iommu symbols with CONFIG_HAS_PASSTHROUGH

2021-05-14 Thread Connor Davis
. Signed-off-by: Connor Davis --- xen/common/memory.c | 10 ++ xen/include/xen/iommu.h | 8 +++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/xen/common/memory.c b/xen/common/memory.c index b5c70c4b85..72a6b70cb5 100644 --- a/xen/common/memory.c +++ b/xen/common

[PATCH v3 3/5] xen: Fix build when !CONFIG_GRANT_TABLE

2021-05-14 Thread Connor Davis
tic inline int mem_sharing_gref_to_gfn(struct grant_table *gt, | Signed-off-by: Connor Davis --- xen/include/xen/grant_table.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/include/xen/grant_table.h b/xen/include/xen/grant_table.h index 63b6dc78f4..9f8b7e66c1 10

[PATCH v3 4/5] xen: Add files needed for minimal riscv build

2021-05-14 Thread Connor Davis
Add arch-specific makefiles and configs needed to build for riscv64. Also add a minimal head.S that is a simple infinite loop. head.o can be built with $ make XEN_TARGET_ARCH=riscv64 SUBSYSTEMS=xen -C xen TARGET=head.o No other TARGET is supported at the moment. Signed-off-by: Connor Davis

[PATCH v3 5/5] automation: Add container for riscv64 builds

2021-05-14 Thread Connor Davis
Add a container for cross-compiling xen to riscv64. This just includes the cross-compiler and necessary packages for building xen itself (packages for tools, stubdoms, etc., can be added later). Signed-off-by: Connor Davis --- automation/build/archlinux/riscv64.dockerfile | 33

Re: [PATCH v3 4/5] xen: Add files needed for minimal riscv build

2021-05-14 Thread Connor Davis
On 5/14/21 3:53 PM, Bob Eshleman wrote: On 5/14/21 11:53 AM, Connor Davis wrote: Add arch-specific makefiles and configs needed to build for riscv64. Also add a minimal head.S that is a simple infinite loop. head.o can be built with $ make XEN_TARGET_ARCH=riscv64 SUBSYSTEMS=xen -C xen TARGET

Re: [PATCH v3 5/5] automation: Add container for riscv64 builds

2021-05-14 Thread Connor Davis
On 5/14/21 3:01 PM, Bob Eshleman wrote: On 5/14/21 11:53 AM, Connor Davis wrote: + +# There is a regression in GDB that causes an assertion error +# when setting breakpoints, use this commit until it is fixed! +RUN git clone --recursive -j$(nproc) --progress https://github.com/riscv/riscv

Re: [PATCH] drivers/char: Add USB3 debug capability driver

2021-05-17 Thread Connor Davis
On 5/17/21 3:27 AM, Jan Beulich wrote: On 12.05.2021 02:12, Connor Davis wrote: Add support for the xHCI debug capability (DbC). The DbC provides a SuperSpeed serial link between a debug target running Xen and a debug host. To use it you will need a USB3 A/A debug cable plugged into a root

Re: [PATCH] drivers/char: Add USB3 debug capability driver

2021-05-17 Thread Connor Davis
On 5/17/21 3:36 AM, Julien Grall wrote: Hi Connor, On 12/05/2021 01:12, Connor Davis wrote: +config XHCI_FIXMAP_PAGES +    int "Number of fixmap entries to allocate for the xHC" +    depends on HAS_XHCI_DBC +    default 16 +    help +  This should equal the s

Re: [PATCH v2 1/4] usb: early: Avoid using DbC if already enabled

2021-05-17 Thread Connor Davis
On 5/17/21 3:32 AM, Jan Beulich wrote: On 14.05.2021 02:56, Connor Davis wrote: Check if the debug capability is enabled in early_xdbc_parse_parameter, and if it is, return with an error. This avoids collisions with whatever enabled the DbC prior to linux starting. Doesn't this go to

Re: [PATCH v3 2/5] xen/common: Guard iommu symbols with CONFIG_HAS_PASSTHROUGH

2021-05-17 Thread Connor Davis
On 5/17/21 5:16 AM, Jan Beulich wrote: On 14.05.2021 20:53, Connor Davis wrote: --- a/xen/common/memory.c +++ b/xen/common/memory.c @@ -294,7 +294,9 @@ int guest_remove_page(struct domain *d, unsigned long gmfn) p2m_type_t p2mt; #endif mfn_t mfn; +#ifdef CONFIG_HAS_PASSTHROUGH

Re: [PATCH v2 1/4] usb: early: Avoid using DbC if already enabled

2021-05-17 Thread Connor Davis
On 5/17/21 8:13 AM, Jan Beulich wrote: On 17.05.2021 15:48, Connor Davis wrote: On 5/17/21 3:32 AM, Jan Beulich wrote: On 14.05.2021 02:56, Connor Davis wrote: Check if the debug capability is enabled in early_xdbc_parse_parameter, and if it is, return with an error. This avoids collisions

Re: [PATCH v3 1/5] xen/char: Default HAS_NS16550 to y only for X86 and ARM

2021-05-17 Thread Connor Davis
On 5/17/21 5:56 AM, Jan Beulich wrote: --- a/xen/drivers/char/Kconfig +++ b/xen/drivers/char/Kconfig @@ -1,6 +1,6 @@ config HAS_NS16550 bool "NS16550 UART driver" if ARM - default y + default y if (ARM || X86) ... this approach doesn't scale very well. You would likely ha

Re: [PATCH v3 3/5] xen: Fix build when !CONFIG_GRANT_TABLE

2021-05-17 Thread Connor Davis
On 5/17/21 5:22 AM, Jan Beulich wrote: On 14.05.2021 20:53, Connor Davis wrote: Move struct grant_table; in grant_table.h above ifdef CONFIG_GRANT_TABLE. This fixes the following: /build/xen/include/xen/grant_table.h:84:50: error: 'struct grant_table' declared inside parameter lis

Re: [PATCH v3 3/5] xen: Fix build when !CONFIG_GRANT_TABLE

2021-05-17 Thread Connor Davis
On 5/17/21 5:22 AM, Jan Beulich wrote: On 14.05.2021 20:53, Connor Davis wrote: Move struct grant_table; in grant_table.h above ifdef CONFIG_GRANT_TABLE. This fixes the following: /build/xen/include/xen/grant_table.h:84:50: error: 'struct grant_table' declared inside parameter lis

Re: [PATCH v3 4/5] xen: Add files needed for minimal riscv build

2021-05-17 Thread Connor Davis
On 5/17/21 7:43 PM, Bob Eshleman wrote: On 5/14/21 4:47 PM, Connor Davis wrote: On 5/14/21 3:53 PM, Bob Eshleman wrote: On 5/14/21 11:53 AM, Connor Davis wrote: + +#ifdef CONFIG_RISCV_64 + +/* + * RISC-V Layout: + *   0x - 0x003f (256GB, L2 slots [0-255

Re: [PATCH v3 2/5] xen/common: Guard iommu symbols with CONFIG_HAS_PASSTHROUGH

2021-05-17 Thread Connor Davis
On 5/17/21 9:42 AM, Julien Grall wrote: Hi Jan, On 17/05/2021 12:16, Jan Beulich wrote: On 14.05.2021 20:53, Connor Davis wrote: --- a/xen/common/memory.c +++ b/xen/common/memory.c @@ -294,7 +294,9 @@ int guest_remove_page(struct domain *d, unsigned long gmfn)   p2m_type_t p2mt

Re: [PATCH v3 4/5] xen: Add files needed for minimal riscv build

2021-05-17 Thread Connor Davis
On 5/17/21 5:51 AM, Jan Beulich wrote: On 14.05.2021 20:53, Connor Davis wrote: --- /dev/null +++ b/config/riscv64.mk @@ -0,0 +1,5 @@ +CONFIG_RISCV := y +CONFIG_RISCV_64 := y +CONFIG_RISCV_$(XEN_OS) := y I wonder whether the last one actually gets used anywhere, but I do realize that other

[PATCH v4 2/4] xen/common: Guard iommu symbols with CONFIG_HAS_PASSTHROUGH

2021-05-24 Thread Connor Davis
. Signed-off-by: Connor Davis --- xen/common/memory.c | 10 ++ xen/include/xen/iommu.h | 8 +++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/xen/common/memory.c b/xen/common/memory.c index b5c70c4b85..72a6b70cb5 100644 --- a/xen/common/memory.c +++ b/xen/common

[PATCH v4 3/4] xen: Add files needed for minimal riscv build

2021-05-24 Thread Connor Davis
TARGET is supported at the moment. Signed-off-by: Connor Davis --- config/riscv.mk | 4 +++ xen/Makefile| 8 +++-- xen/arch/riscv/Kconfig | 47 + xen/arch/riscv/Kconfig.debug| 0 xen/arch/riscv

[PATCH v4 4/4] automation: Add container for riscv64 builds

2021-05-24 Thread Connor Davis
Add a container for cross-compiling xen to riscv64. This just includes the cross-compiler and necessary packages for building xen itself (packages for tools, stubdoms, etc., can be added later). Signed-off-by: Connor Davis --- automation/build/archlinux/riscv64.dockerfile | 19

[PATCH v4 1/4] xen/char: Default HAS_NS16550 to y only for X86 and ARM

2021-05-24 Thread Connor Davis
Defaulting to yes only for X86 and ARM reduces the requirements for a minimal build when porting new architectures. Signed-off-by: Connor Davis Reviewed-by: Alistair Francis --- xen/drivers/char/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/drivers/char/Kconfig b/xen/drivers

[PATCH v4 0/4] Minimal build for RISCV

2021-05-24 Thread Connor Davis
ped "xen/sched: Fix build when NR_CPUS == 1" since this was fixed for 4.15 - Moved #ifdef-ary around iommu_enabled to iommu.h - Moved struct grant_table declaration above ifdef CONFIG_GRANT_TABLE instead of defining an empty struct when !CONFIG_GRANT_TABLE -- Connor Davis (4):

Re: [PATCH v4 3/4] xen: Add files needed for minimal riscv build

2021-05-31 Thread Connor Davis
On 5/25/21 12:13 PM, Bob Eshleman wrote: On 5/25/21 1:48 AM, Jan Beulich wrote: On 24.05.2021 16:34, Connor Davis wrote: Add arch-specific makefiles and configs needed to build for riscv. Also add a minimal head.S that is a simple infinite loop. head.o can be built with $ make

Re: [PATCH v4 3/4] xen: Add files needed for minimal riscv build

2021-06-01 Thread Connor Davis
On 6/1/21 12:11 AM, Jan Beulich wrote: On 24.05.2021 16:34, Connor Davis wrote: Add arch-specific makefiles and configs needed to build for riscv. Also add a minimal head.S that is a simple infinite loop. head.o can be built with $ make XEN_TARGET_ARCH=riscv SUBSYSTEMS=xen -C xen

Re: [PATCH v4 3/4] xen: Add files needed for minimal riscv build

2021-06-01 Thread Connor Davis
On 6/1/21 2:40 AM, Julien Grall wrote: Hi, On 01/06/2021 07:03, Jan Beulich wrote: On 01.06.2021 04:26, Connor Davis wrote: On 5/25/21 12:13 PM, Bob Eshleman wrote: On 5/25/21 1:48 AM, Jan Beulich wrote: On 24.05.2021 16:34, Connor Davis wrote: Add arch-specific makefiles and configs

[PATCH v5 0/2] Minimal build for RISCV

2021-06-02 Thread Connor Davis
ary around iommu_enabled to iommu.h - Moved struct grant_table declaration above ifdef CONFIG_GRANT_TABLE instead of defining an empty struct when !CONFIG_GRANT_TABLE -- Connor Davis (2): xen/char: Default HAS_NS16550 to y only for X86 and ARM xen: Add files needed fo

[PATCH v5 1/2] xen/char: Default HAS_NS16550 to y only for X86 and ARM

2021-06-02 Thread Connor Davis
Defaulting to yes only for X86 and ARM reduces the requirements for a minimal build when porting new architectures. Signed-off-by: Connor Davis --- xen/drivers/char/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/drivers/char/Kconfig b/xen/drivers/char/Kconfig index b572305657

[PATCH v5 2/2] xen: Add files needed for minimal riscv build

2021-06-02 Thread Connor Davis
No other TARGET is supported at the moment. Signed-off-by: Connor Davis --- Bob: I moved back to XEN_TARGET_ARCH=riscv64 because supplying just XEN_TARGET_ARCH=riscv causes TARGET_ARCH == TARGET_SUBARCH, and that broke the build after the recent commit b6ecd5c8bc "build: centralize / unif

Re: [PATCH v5 1/2] xen/char: Default HAS_NS16550 to y only for X86 and ARM

2021-06-02 Thread Connor Davis
On 6/2/21 9:52 AM, Jan Beulich wrote: On 02.06.2021 17:08, Connor Davis wrote: Defaulting to yes only for X86 and ARM reduces the requirements for a minimal build when porting new architectures. Signed-off-by: Connor Davis Please can you accumulate tags you've already got in

[PATCH v5 0/2] Minimal build for RISCV

2021-06-02 Thread Connor Davis
" since this was fixed for 4.15 - Moved #ifdef-ary around iommu_enabled to iommu.h - Moved struct grant_table declaration above ifdef CONFIG_GRANT_TABLE instead of defining an empty struct when !CONFIG_GRANT_TABLE -- Connor Davis (2): xen/char: Default HAS_NS16550 to y only for X86

[PATCH v6 1/2] xen/char: Default HAS_NS16550 to y only for X86 and ARM

2021-06-02 Thread Connor Davis
Defaulting to yes only for X86 and ARM reduces the requirements for a minimal build when porting new architectures. Signed-off-by: Connor Davis Acked-by: Jan Beulich --- xen/drivers/char/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/drivers/char/Kconfig b/xen/drivers/char

[PATCH v6 2/2] xen: Add files needed for minimal riscv build

2021-06-02 Thread Connor Davis
No other TARGET is supported at the moment. Signed-off-by: Connor Davis --- Bob: I moved back to XEN_TARGET_ARCH=riscv64 because supplying just XEN_TARGET_ARCH=riscv causes TARGET_ARCH == TARGET_SUBARCH, and that broke the build after the recent commit b6ecd5c8bc "build: centralize / unif

Re: [PATCH v5 0/2] Minimal build for RISCV

2021-06-02 Thread Connor Davis
Sigh.. lets try this again with the version numbers in sync On 6/2/21 5:20 PM, Connor Davis wrote: Hi all, This series introduces a minimal build for RISCV. It is based on Bobby's previous work from last year[0] rebased onto current Xen. This series provides the patches necessary to

[PATCH v7 1/2] xen/char: Default HAS_NS16550 to y only for X86 and ARM

2021-06-02 Thread Connor Davis
Defaulting to yes only for X86 and ARM reduces the requirements for a minimal build when porting new architectures. Signed-off-by: Connor Davis Acked-by: Jan Beulich --- xen/drivers/char/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/drivers/char/Kconfig b/xen/drivers/char

[PATCH v7 0/2] Minimal build for RISCV

2021-06-02 Thread Connor Davis
1: - Dropped "xen/sched: Fix build when NR_CPUS == 1" since this was fixed for 4.15 - Moved #ifdef-ary around iommu_enabled to iommu.h - Moved struct grant_table declaration above ifdef CONFIG_GRANT_TABLE instead of defining an empty struct when !CONFIG_GRANT_TABLE -- Co

[PATCH v7 2/2] xen: Add files needed for minimal riscv build

2021-06-02 Thread Connor Davis
No other TARGET is supported at the moment. Signed-off-by: Connor Davis --- Bob: I moved back to XEN_TARGET_ARCH=riscv64 because supplying just XEN_TARGET_ARCH=riscv causes TARGET_ARCH == TARGET_SUBARCH, and that broke the build after the recent commit b6ecd5c8bc "build: centralize / unif

Re: [PATCH v7 2/2] xen: Add files needed for minimal riscv build

2021-06-03 Thread Connor Davis
On 6/3/21 5:33 PM, Alistair Francis wrote: On Thu, Jun 3, 2021 at 9:38 AM Connor Davis wrote: Add arch-specific makefiles and configs needed to build for riscv. Also add a minimal head.S that is a simple infinite loop. head.o can be built with $ make XEN_TARGET_ARCH=riscv64 SUBSYSTEMS=xen

Re: [PATCH v7 1/2] xen/char: Default HAS_NS16550 to y only for X86 and ARM

2021-06-03 Thread Connor Davis
On 6/3/21 5:27 PM, Alistair Francis wrote: On Thu, Jun 3, 2021 at 9:38 AM Connor Davis wrote: Defaulting to yes only for X86 and ARM reduces the requirements for a minimal build when porting new architectures. Signed-off-by: Connor Davis Acked-by: Jan Beulich Reviewed-by: Alistair

[PATCH v8 0/2] Minimal build for RISCV

2021-06-03 Thread Connor Davis
enabled to iommu.h - Moved struct grant_table declaration above ifdef CONFIG_GRANT_TABLE -- Connor Davis (2): xen/char: Default HAS_NS16550 to y only for X86 and ARM xen: Add files needed for minimal riscv build MAINTAINERS | 9 + config/riscv64.mk

[PATCH v8 1/2] xen/char: Default HAS_NS16550 to y only for X86 and ARM

2021-06-03 Thread Connor Davis
Defaulting to yes only for X86 and ARM reduces the requirements for a minimal build when porting new architectures. Signed-off-by: Connor Davis Acked-by: Jan Beulich Reviewed-by: Alistair Francis --- xen/drivers/char/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/drivers/char

[PATCH v8 2/2] xen: Add files needed for minimal riscv build

2021-06-03 Thread Connor Davis
No other TARGET is supported at the moment. Signed-off-by: Connor Davis Reviewed-by: Alistair Francis --- MAINTAINERS | 9 + config/riscv64.mk | 5 +++ xen/Makefile| 8 +++-- xen/arch/riscv/Kconfig

Re: [PATCH for-next 2/6] xen/common: Guard iommu symbols with CONFIG_HAS_PASSTHROUGH

2021-02-25 Thread Connor Davis
On Thu, Feb 25, 2021 at 04:45:15PM +0100, Jan Beulich wrote: > On 25.02.2021 16:24, Connor Davis wrote: > > --- a/xen/common/domain.c > > +++ b/xen/common/domain.c > > @@ -501,7 +501,9 @@ static int sanitise_domain_config(struct > > xen_domctl_createdomain *config) >

Re: [PATCH for-next 3/6] xen/sched: Fix build when NR_CPUS == 1

2021-02-25 Thread Connor Davis
On Thu, Feb 25, 2021 at 02:55:45PM -0800, Bob Eshleman wrote: > On 2/25/21 7:24 AM, Connor Davis wrote: > > Return from cpu_schedule_up when either cpu is 0 or > > NR_CPUS == 1. This fixes the following: > > > > core.c: In function 'cpu_schedule_up': > &g

Re: [PATCH for-next 3/6] xen/sched: Fix build when NR_CPUS == 1

2021-02-25 Thread Connor Davis
On Thu, Feb 25, 2021 at 04:50:02PM +0100, Jan Beulich wrote: > On 25.02.2021 16:24, Connor Davis wrote: > > Return from cpu_schedule_up when either cpu is 0 or > > NR_CPUS == 1. This fixes the following: > > > > core.c: In function 'cpu_schedule_up': > &g

Re: [PATCH for-next 5/6] xen: Add files needed for minimal riscv build

2021-02-25 Thread Connor Davis
On Thu, Feb 25, 2021 at 11:14:53PM +, Andrew Cooper wrote: > On 25/02/2021 15:24, Connor Davis wrote: > > Add the minimum code required to get xen to build with > > XEN_TARGET_ARCH=riscv64. It is minimal in the sense that every file and > > function added is required f

Re: [PATCH for-next 4/6] xen: Fix build when !CONFIG_GRANT_TABLE

2021-02-25 Thread Connor Davis
On Thu, Feb 25, 2021 at 04:53:23PM +0100, Jan Beulich wrote: > On 25.02.2021 16:24, Connor Davis wrote: > > --- a/xen/include/xen/grant_table.h > > +++ b/xen/include/xen/grant_table.h > > @@ -66,6 +66,8 @@ int gnttab_acquire_resource( > > > > #define opt_max

Re: [PATCH for-next 6/6] automation: add container for riscv64 builds

2021-02-25 Thread Connor Davis
On Thu, Feb 25, 2021 at 04:31:13PM -0800, Stefano Stabellini wrote: > On Thu, 25 Feb 2021, Connor Davis wrote: > > Add a container for cross-compiling xen to riscv64. > > This just includes the cross-compiler and necessary packages for > > building xen itself (packages for

Re: [PATCH for-next 5/6] xen: Add files needed for minimal riscv build

2021-02-26 Thread Connor Davis
On Thu, Feb 25, 2021 at 05:06:46PM -0800, Stefano Stabellini wrote: > On Thu, 25 Feb 2021, Andrew Cooper wrote: > > On 25/02/2021 15:24, Connor Davis wrote: > > > Add the minimum code required to get xen to build with > > > XEN_TARGET_ARCH=riscv64. It is minimal in th

Re: [PATCH for-next 3/6] xen/sched: Fix build when NR_CPUS == 1

2021-02-26 Thread Connor Davis
On Fri, Feb 26, 2021 at 09:31:02AM +0100, Jan Beulich wrote: > On 26.02.2021 04:08, Connor Davis wrote: > > On Thu, Feb 25, 2021 at 04:50:02PM +0100, Jan Beulich wrote: > >> On 25.02.2021 16:24, Connor Davis wrote: > >>> Return from cpu_schedule_up when either cpu is