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

2021-05-11 Thread Juergen Gross
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. Signed-off-by: Connor Davis Acked-by: Juergen Gross Juergen

[ovmf test] 161908: all pass - PUSHED

2021-05-11 Thread osstest service owner
flight 161908 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/161908/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 4e5ecdbac8bdf235b2072baa0c5e170cd9f57463 baseline version: ovmf

[linux-linus test] 161906: regressions - trouble: blocked/broken/fail/pass

2021-05-11 Thread osstest service owner
flight 161906 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/161906/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken build-arm64-pvops

[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

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

2021-05-11 Thread Connor Davis
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() to notify Xen that it is unsafe to touch MMIO registers until the next xen_dbgp_external_startup(). This notification allows Xen to avoid

[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

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

2021-05-11 Thread Connor Davis
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. The first patch prevents the early DbC driver from using an already-running DbC. The second exports xen_dbgp_reset_prep and xen_dbgp_external_startup functions when

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

2021-05-11 Thread Connor Davis
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 port on the target machine. Recent kernels report the existence of the DbC capability

Re: [PATCH 2/2] xen/swiotlb: check if the swiotlb has already been initialized

2021-05-11 Thread Boris Ostrovsky
On 5/11/21 1:41 PM, Stefano Stabellini wrote: > --- a/drivers/xen/swiotlb-xen.c > +++ b/drivers/xen/swiotlb-xen.c > @@ -164,6 +164,11 @@ int __ref xen_swiotlb_init(void) > int rc = -ENOMEM; > char *start; > > + if (io_tlb_default_mem != NULL) { > +

Re: [PATCH RFCv2 06/15] xen/arm: mm: Don't open-code Xen PT update in remove_early_mappings()

2021-05-11 Thread Stefano Stabellini
On Sun, 25 Apr 2021, Julien Grall wrote: > From: Julien Grall > > Now that xen_pt_update_entry() is able to deal with different mapping > size, we can replace the open-coding of the page-tables update by a call > to modify_xen_mappings(). > > As the function is not meant to fail, a BUG_ON() is

Re: [PATCH RFCv2 05/15] xen/arm: mm: Avoid flushing the TLBs when mapping are inserted

2021-05-11 Thread Stefano Stabellini
On Sun, 25 Apr 2021, Julien Grall wrote: > From: Julien Grall > > Currently, the function xen_pt_update() will flush the TLBs even when > the mappings are inserted. This is a bit wasteful because we don't > allow mapping replacement. Even if we were, the flush would need to > happen earlier

Re: [PATCH RFCv2 04/15] xen/arm: mm: Allow other mapping size in xen_pt_update_entry()

2021-05-11 Thread Stefano Stabellini
On Sun, 25 Apr 2021, Julien Grall wrote: > From: Julien Grall > > At the moment, xen_pt_update_entry() only supports mapping at level 3 > (i.e 4KB mapping). While this is fine for most of the runtime helper, > the boot code will require to use superpage mapping. > > We don't want to allow

Re: [PATCH RFCv2 03/15] xen/arm: p2m: Replace level_{orders, masks} arrays with LEVEL_{ORDER, MASK}

2021-05-11 Thread Stefano Stabellini
On Sun, 25 Apr 2021, Julien Grall wrote: > From: Julien Grall > > The array level_orders and level_masks can be replaced with the > recently introduced macros LEVEL_ORDER and LEVEL_MASK. > > Signed-off-by: Julien Grall So you actually planned to use LEVEL_ORDER and LEVEL_MASK in the xen/

Re: [PATCH RFCv2 02/15] xen/arm: lpae: Use the generic helpers to defined the Xen PT helpers

2021-05-11 Thread Stefano Stabellini
On Sun, 25 Apr 2021, Julien Grall wrote: > From: Julien Grall > > Currently, Xen PT helpers are only working with 4KB page granularity > and open-code the generic helpers. To allow more flexibility, we can > re-use the generic helpers and pass Xen's page granularity > (PAGE_SHIFT). > > As Xen

Re: [PATCH RFCv2 01/15] xen/arm: lpae: Rename LPAE_ENTRIES_MASK_GS to LPAE_ENTRY_MASK_GS

2021-05-11 Thread Stefano Stabellini
On Sun, 25 Apr 2021, Julien Grall wrote: > From: Julien Grall > > Commit 05031fa87357 "xen/arm: guest_walk: Only generate necessary > offsets/masks" introduced LPAE_ENTRIES_MASK_GS. In a follow-up patch, > we will use it for to define LPAE_ENTRY_MASK. > > This will lead to inconsistent naming.

[linux-5.4 test] 161905: trouble: blocked/broken/fail/pass

2021-05-11 Thread osstest service owner
flight 161905 linux-5.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/161905/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken build-arm64-pvops

Re: [PATCH v5 3/3] docs/doxygen: doxygen documentation for grant_table.h

2021-05-11 Thread Stefano Stabellini
On Thu, 6 May 2021, Jan Beulich wrote: > An alternative to correcting the (as it seems) v2 related issues, it > may be worth considering to extract only v1 documentation in this > initial phase. FWIW I agree with Jan that "grant table v1" documentation only is a good idea.

Re: [PATCH v2 00/17] live update and gnttab patches

2021-05-11 Thread Andrew Cooper
On 11/05/2021 19:05, Edwin Török wrote: > These patches have been posted previously. > The gnttab patches (tools/ocaml/libs/mmap) were not applied at the time > to avoid conflicts with an in-progress XSA. > The binary format live-update and fuzzing patches were not applied > because it was too

[xen-unstable test] 161904: trouble: blocked/broken/fail/pass

2021-05-11 Thread osstest service owner
flight 161904 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/161904/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken build-arm64-pvops

[PATCH v2 14/17] tools/ocaml: safer Xenmmap interface

2021-05-11 Thread Edwin Török
Xenmmap.mmap_interface is created from multiple places: * via mmap(), which needs to be unmap()-ed * xc_map_foreign_range * xengnttab_map_grant_ref Signed-off-by: Edwin Török --- tools/ocaml/libs/mmap/gnt.ml | 14 -- tools/ocaml/libs/mmap/gnt.mli | 3 ++-

[PATCH v2 11/17] tools/ocaml/libs/mmap: Expose stub_mmap_alloc

2021-05-11 Thread Edwin Török
This also handles mmap errors better by using the `uerror` helper to raise a proper exception using `errno`. Changed type of `len` from `int` to `size_t`: at construction time we ensure the length is >= 0, so we can reflect this by using an unsigned type. The type is unsigned at the C API level,

[PATCH v2 10/17] tools/ocaml/libs/mmap: allocate correct number of bytes

2021-05-11 Thread Edwin Török
OCaml memory allocation functions use words as units, unless explicitly documented otherwise. Thus we were allocating more memory than necessary, caml_alloc should've been called with the parameter '2', but was called with a lot more. To account for future changes in the struct keep using sizeof,

[PATCH v2 15/17] tools/ocaml/xenstored: use gnttab instead of xenctrl's foreign_map_range

2021-05-11 Thread Edwin Török
This is an oxenstored port of the following C xenstored commit: 38eeb3864de40aa568c48f9f26271c141c62b50b tools/xenstored: Drop mapping of the ring via foreign map Now only Xenctrl.domain_getinfo remains as the last use of unstable xenctrl interface in oxenstored. Depends on: tools/ocaml: safer

[PATCH v2 13/17] tools/ocaml/libs/xb: import gnttab stubs from mirage

2021-05-11 Thread Edwin Török
Upstream URL: https://github.com/mirage/ocaml-gnt Mirage is part of the Xen project and the license is compatible, copyright headers are retained. Changes from upstream: * cut down dependencies: dropped Lwt, replaced Io_page with Xenmmap * only import Gnttab and not Gntshr This is for

[PATCH v2 12/17] tools/ocaml/libs/mmap: mark mmap/munmap as blocking

2021-05-11 Thread Edwin Török
These functions can potentially take some time, so allow other OCaml code to proceed meanwhile (if any). Signed-off-by: Edwin Török --- tools/ocaml/libs/mmap/xenmmap_stubs.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tools/ocaml/libs/mmap/xenmmap_stubs.c

[PATCH v2 17/17] tools/ocaml/libs/mmap: Clean up unused read/write

2021-05-11 Thread Edwin Török
Xenmmap is only modified by the ring functions, these functions are unused. Signed-off-by: Edwin Török --- tools/ocaml/libs/mmap/xenmmap.ml | 5 tools/ocaml/libs/mmap/xenmmap.mli | 4 --- tools/ocaml/libs/mmap/xenmmap_stubs.c | 41 --- 3 files changed, 50

[PATCH v2 16/17] tools/ocaml/xenstored: don't store domU's mfn of ring page

2021-05-11 Thread Edwin Török
This is a port of the following C xenstored commit 122b52230aa5b79d65e18b8b77094027faa2f8e2 tools/xenstore: don't store domU's mfn of ring page in xenstored Backwards compat: accept a domain dump both with and without MFN. CC: Juergen Gross Signed-off-by: Edwin Török ---

Re: [PATCH v2 00/17] live update and gnttab patches

2021-05-11 Thread Edwin Torok
On Tue, 2021-05-11 at 19:05 +0100, Edwin Török wrote: > These patches have been posted previously. A git tree is available here for easier reviewing: https://github.com/edwintorok/xen/pull/2 > The gnttab patches (tools/ocaml/libs/mmap) were not applied at the > time > to avoid conflicts with an

[PATCH v2 09/17] tools/ocaml: use common macros for manipulating mmap_interface

2021-05-11 Thread Edwin Török
Also expose these macros in a header file that can be reused by the upcoming grant table code. Signed-off-by: Edwin Török --- tools/ocaml/libs/mmap/mmap_stubs.h| 7 +++ tools/ocaml/libs/mmap/xenmmap_stubs.c | 2 -- tools/ocaml/libs/xb/xs_ring_stubs.c | 14 +- 3 files

[PATCH v2 07/17] tools/ocaml/xenstored: validate config file before live update

2021-05-11 Thread Edwin Török
The configuration file can contain typos or various errors that could prevent live update from succeeding (e.g. a flag only valid on a different version). Unknown entries in the config file would be ignored on startup normally, add a strict --config-test that live-update can use to check that the

[PATCH v2 08/17] Add structured fuzzing unit test

2021-05-11 Thread Edwin Török
Based on ideas from qcstm, implemented using Crowbar. Quickcheck-style property tests that uses AFL for quickly exploring various values that trigger bugs in the code. This is structured/guided fuzzing: we read an arbitrary random number, and use it to generate some valid looking xenstore trees

[PATCH v2 02/17] tools/ocaml: add unit test skeleton with Dune build system

2021-05-11 Thread Edwin Török
Based on initial work by Christian Lindig Doing oxenstored development, especially fuzzing/unit tests requires an incremental and fast build system. Dune is the preferred upstream build system for OCaml, and has been in use by the XAPI project for years. Is is incremental and also generates

[PATCH v2 06/17] tools/ocaml/xenstored: add support for binary format

2021-05-11 Thread Edwin Török
oxenstored already had support for loading a partial dump from a text format. Add support for the binary format too. We no longer dump the text format, but we support loading the text format for backwards compatibility purposes. (a version of oxenstored supporting live-update with the old text

[PATCH v2 01/17] docs/designs/xenstore-migration.md: clarify that deletes are recursive

2021-05-11 Thread Edwin Török
Signed-off-by: Edwin Török --- docs/designs/xenstore-migration.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/designs/xenstore-migration.md b/docs/designs/xenstore-migration.md index 5f1155273e..87ef540918 100644 --- a/docs/designs/xenstore-migration.md +++

[PATCH v2 04/17] tools/ocaml/xenstored: implement the live migration binary format

2021-05-11 Thread Edwin Török
This is implemented by C xenstored as live update dump format. oxenstored already has its own (text-based) dump format, but for compatibility implement one compatible with C xenstored. This will also be useful in the future for non-cooperative guest live migration.

[PATCH v2 05/17] tools/ocaml/xenstored: add binary dump format support

2021-05-11 Thread Edwin Török
Do not dump -1, it'll trigger an assertion, use 0xFF.. instead. Signed-off-by: Edwin Török --- tools/ocaml/xenstored/connection.ml | 63 + tools/ocaml/xenstored/disk.ml | 3 +- 2 files changed, 49 insertions(+), 17 deletions(-) diff --git

[PATCH v2 00/17] live update and gnttab patches

2021-05-11 Thread Edwin Török
These patches have been posted previously. The gnttab patches (tools/ocaml/libs/mmap) were not applied at the time to avoid conflicts with an in-progress XSA. The binary format live-update and fuzzing patches were not applied because it was too close to the next Xen release freeze. The patches

[PATCH 2/2] xen/swiotlb: check if the swiotlb has already been initialized

2021-05-11 Thread Stefano Stabellini
From: Stefano Stabellini xen_swiotlb_init calls swiotlb_late_init_with_tbl, which fails with -ENOMEM if the swiotlb has already been initialized. Add an explicit check io_tlb_default_mem != NULL at the beginning of xen_swiotlb_init. If the swiotlb is already initialized print a warning and

[PATCH 1/2] xen/arm64: do not set SWIOTLB_NO_FORCE when swiotlb is required

2021-05-11 Thread Stefano Stabellini
From: Stefano Stabellini Although SWIOTLB_NO_FORCE is meant to allow later calls to swiotlb_init, today dma_direct_map_page returns error if SWIOTLB_NO_FORCE. For now, without a larger overhaul of SWIOTLB_NO_FORCE, the best we can do is to avoid setting SWIOTLB_NO_FORCE in mem_init when we know

Re: Regression when booting 5.15 as dom0 on arm64 (WAS: Re: [linux-linus test] 161829: regressions - FAIL)]

2021-05-11 Thread Christoph Hellwig
On Tue, May 11, 2021 at 09:51:20AM -0700, Stefano Stabellini wrote: > On Tue, 11 May 2021, Christoph Hellwig wrote: > > On Tue, May 11, 2021 at 09:47:33AM -0700, Stefano Stabellini wrote: > > > That's a much better plan. It is also not super urgent, so maybe for now > > > we could add an explicit

Re: Regression when booting 5.15 as dom0 on arm64 (WAS: Re: [linux-linus test] 161829: regressions - FAIL)]

2021-05-11 Thread Stefano Stabellini
On Tue, 11 May 2021, Christoph Hellwig wrote: > On Tue, May 11, 2021 at 09:47:33AM -0700, Stefano Stabellini wrote: > > That's a much better plan. It is also not super urgent, so maybe for now > > we could add an explicit check for io_tlb_default_mem != NULL at the > > beginning of

Re: Regression when booting 5.15 as dom0 on arm64 (WAS: Re: [linux-linus test] 161829: regressions - FAIL)]

2021-05-11 Thread Christoph Hellwig
On Tue, May 11, 2021 at 09:47:33AM -0700, Stefano Stabellini wrote: > That's a much better plan. It is also not super urgent, so maybe for now > we could add an explicit check for io_tlb_default_mem != NULL at the > beginning of xen_swiotlb_init? So that at least we can fail explicitly > or ignore

Re: [PATCH v6 08/15] swiotlb: Bounce data from/to restricted DMA pool if available

2021-05-11 Thread Claire Chang
On Mon, May 10, 2021 at 11:05 PM Christoph Hellwig wrote: > > > +static inline bool is_dev_swiotlb_force(struct device *dev) > > +{ > > +#ifdef CONFIG_DMA_RESTRICTED_POOL > > + if (dev->dma_io_tlb_mem) > > + return true; > > +#endif /* CONFIG_DMA_RESTRICTED_POOL */ > > +

Re: Regression when booting 5.15 as dom0 on arm64 (WAS: Re: [linux-linus test] 161829: regressions - FAIL)]

2021-05-11 Thread Stefano Stabellini
On Tue, 11 May 2021, Christoph Hellwig wrote: > On Mon, May 10, 2021 at 06:46:34PM -0700, Stefano Stabellini wrote: > > On Mon, 10 May 2021, Christoph Hellwig wrote: > > > On Sat, May 08, 2021 at 12:32:37AM +0100, Julien Grall wrote: > > > > The pointer dereferenced seems to suggest that the

Re: [PATCH v6 04/15] swiotlb: Add restricted DMA pool initialization

2021-05-11 Thread Claire Chang
On Mon, May 10, 2021 at 11:03 PM Christoph Hellwig wrote: > > > +#ifdef CONFIG_DMA_RESTRICTED_POOL > > +#include > > +#include > > +#include > > +#include > > +#include > > +#endif > > I don't think any of this belongs into swiotlb.c. Marking > swiotlb_init_io_tlb_mem non-static and having

Re: [PATCH v6 05/15] swiotlb: Add a new get_io_tlb_mem getter

2021-05-11 Thread Claire Chang
On Mon, May 10, 2021 at 11:03 PM Christoph Hellwig wrote: > > > +static inline struct io_tlb_mem *get_io_tlb_mem(struct device *dev) > > +{ > > +#ifdef CONFIG_DMA_RESTRICTED_POOL > > + if (dev && dev->dma_io_tlb_mem) > > + return dev->dma_io_tlb_mem; > > +#endif /*

Re: [PATCH v3 03/22] x86/xstate: re-size save area when CPUID policy changes

2021-05-11 Thread Andrew Cooper
On 03/05/2021 15:22, Jan Beulich wrote: >> Another consequence is that we need to rethink our hypercall behaviour.  >> There is no such thing as supervisor states in an uncompressed XSAVE >> image, which means we can't continue with that being the ABI. > I don't think the hypercall input / output

Re: [PATCH 13/14] tools/xenmon: xenbaked: Mark const the field text in stat_map_t

2021-05-11 Thread Anthony PERARD
On Mon, Apr 05, 2021 at 04:57:12PM +0100, Julien Grall wrote: > From: Julien Grall > > The field text in stat_map_t will point to string literals. So mark it > as const to allow the compiler to catch any modified of the string. > > Signed-off-by: Julien Grall Reviewed-by: Anthony PERARD

Re: [PATCH 12/14] tools/top: The string parameter in set_prompt() and set_delay() should be const

2021-05-11 Thread Anthony PERARD
On Mon, Apr 05, 2021 at 04:57:11PM +0100, Julien Grall wrote: > From: Julien Grall > > Neither string parameter in set_prompt() and set_delay() are meant to > be modified. In particular, new_prompt can point to a literal string. > > So mark the two parameters as const and propagate it. > >

[qemu-mainline test] 161902: regressions - trouble: blocked/broken/fail/pass

2021-05-11 Thread osstest service owner
flight 161902 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/161902/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken build-arm64-pvops

Re: [PATCH 11/14] tools/misc: Use const whenever we point to literal strings

2021-05-11 Thread Anthony PERARD
On Mon, Apr 05, 2021 at 04:57:10PM +0100, Julien Grall wrote: > From: Julien Grall > > literal strings are not meant to be modified. So we should use const > char * rather than char * when we we to store a pointer to them. > > Signed-off-by: Julien Grall Reviewed-by: Anthony PERARD Thanks,

Re: [PATCH 09/14] tools/console: Use const whenever we point to literal strings

2021-05-11 Thread Anthony PERARD
On Mon, Apr 05, 2021 at 04:57:08PM +0100, Julien Grall wrote: > From: Julien Grall > > literal strings are not meant to be modified. So we should use const > char * rather than char * when we want to store a pointer to them. > > Signed-off-by: Julien Grall > --- > diff --git

Re: [PATCH 06/14] tools/libs: stat: Use const whenever we point to literal strings

2021-05-11 Thread Anthony PERARD
On Mon, Apr 05, 2021 at 04:57:05PM +0100, Julien Grall wrote: > From: Julien Grall > > literal strings are not meant to be modified. So we should use const > char * rather than char * when we want to store a pointer to them. > > Signed-off-by: Julien Grall Reviewed-by: Anthony PERARD

Re: [PATCH 05/14] tools/libs: guest: Use const whenever we point to literal strings

2021-05-11 Thread Anthony PERARD
On Mon, Apr 05, 2021 at 04:57:04PM +0100, Julien Grall wrote: > From: Julien Grall > > literal strings are not meant to be modified. So we should use const > *char rather than char * when we want to store a pointer to them. > > Signed-off-by: Julien Grall > --- > diff --git

Re: [PATCH v3 1/1] kernel.h: Split out panic and oops helpers

2021-05-11 Thread Alex Elder
On 5/11/21 2:41 AM, Andy Shevchenko wrote: kernel.h is being used as a dump for all kinds of stuff for a long time. Here is the attempt to start cleaning it up by splitting out panic and oops helpers. There are several purposes of doing this: - dropping dependency in bug.h - dropping a loop by

RE: [PATCH] xen-netback: Check for hotplug-status existence before watching

2021-05-11 Thread Durrant, Paul
> -Original Message- > From: Marek Marczykowski-Górecki > Sent: 11 May 2021 11:45 > To: Durrant, Paul > Cc: Michael Brown ; p...@xen.org; > xen-devel@lists.xenproject.org; > net...@vger.kernel.org; wei@kernel.org > Subject: RE: [EXTERNAL] [PATCH] xen-netback: Check for

[linux-linus test] 161900: regressions - FAIL

2021-05-11 Thread osstest service owner
flight 161900 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/161900/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemut-debianhvm-amd64 7 xen-install fail REGR. vs. 152332

Re: [PATCH] xen-netback: Check for hotplug-status existence before watching

2021-05-11 Thread Marek Marczykowski-Górecki
On Tue, May 11, 2021 at 12:40:54PM +0200, Marek Marczykowski-Górecki wrote: > On Tue, May 11, 2021 at 07:06:55AM +, Durrant, Paul wrote: > > > -Original Message- > > > From: Marek Marczykowski-Górecki > > > Sent: 10 May 2021 20:43 > > > To: Michael Brown ; p...@xen.org > > > Cc:

Re: [PATCH] xen-netback: Check for hotplug-status existence before watching

2021-05-11 Thread Marek Marczykowski-Górecki
On Tue, May 11, 2021 at 07:06:55AM +, Durrant, Paul wrote: > > -Original Message- > > From: Marek Marczykowski-Górecki > > Sent: 10 May 2021 20:43 > > To: Michael Brown ; p...@xen.org > > Cc: p...@xen.org; xen-devel@lists.xenproject.org; net...@vger.kernel.org; > >

[xen-unstable test] 161898: tolerable FAIL - PUSHED

2021-05-11 Thread osstest service owner
flight 161898 xen-unstable real [real] flight 161903 xen-unstable real-retest [real] http://logs.test-lab.xenproject.org/osstest/logs/161898/ http://logs.test-lab.xenproject.org/osstest/logs/161903/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking):

[XEN PATCH v2 7/8] libxl: Use `id` with the "eject" QMP command

2021-05-11 Thread Anthony PERARD
`device` parameter is deprecated since QEMU 2.8. This requires changes to the command line introduced by: "libxl: Use -device for cd-rom drives" Signed-off-by: Anthony PERARD Reviewed-by: Jason Andryuk --- tools/libs/light/libxl_disk.c | 43 +-- 1 file

[XEN PATCH v2 8/8] libxl: Replace QMP command "change" by "blockdev-change-media"

2021-05-11 Thread Anthony PERARD
"change" command as been removed in QEMU 6.0. We can use "blockdev-change-medium" instead. Using `id` with "blockdev-change-medium" requires a change to the QEMU command line, introduced by: "libxl: Use -device for cd-rom drives" Signed-off-by: Anthony PERARD Reviewed-by: Jason Andryuk ---

[XEN PATCH v2 6/8] libxl: Export libxl__qmp_ev_qemu_compare_version

2021-05-11 Thread Anthony PERARD
We are going to want to check QEMU's version in other places where we can use libxl__ev_qmp_send. Signed-off-by: Anthony PERARD Reviewed-by: Jason Andryuk --- tools/libs/light/libxl_internal.h | 8 tools/libs/light/libxl_qmp.c | 4 ++-- 2 files changed, 10 insertions(+), 2

[XEN PATCH v2 5/8] libxl: Assert qmp_ev's state in qmp_ev_qemu_compare_version

2021-05-11 Thread Anthony PERARD
We are supposed to read the version information only when qmp_ev is in state "Connected" (that correspond to state==qmp_state_connected), assert it so that the function isn't used too early. Signed-off-by: Anthony PERARD Reviewed-by: Jason Andryuk --- tools/libs/light/libxl_qmp.c | 2 ++ 1

[XEN PATCH v2 3/8] libxl: Replace deprecated "cpu-add" QMP command by "device_add"

2021-05-11 Thread Anthony PERARD
The command "cpu-add" for CPU hotplug is deprecated and has been removed from QEMU 6.0 (April 2021). We need to add cpus with the command "device_add" now. In order to find out which parameters to pass to "device_add" we first make a call to "query-hotpluggable-cpus" which list the cpus drivers

[XEN PATCH v2 4/8] libxl: Use -device for cd-rom drives

2021-05-11 Thread Anthony PERARD
This allows to set an `id` on the device instead of only the drive. We are going to need the `id` with the "eject" and "blockdev-change-media" QMP command as using `device` parameter on those is deprecated. (`device` is the `id` of the `-drive` on the command line). We set the same `id` on both

[XEN PATCH v2 2/8] libxl: Replace QEMU's command line short-form boolean option

2021-05-11 Thread Anthony PERARD
Short-form boolean options are deprecated in QEMU 6.0. Upstream commit that deprecate those: ccd3b3b8112b ("qemu-option: warn for short-form boolean options"). Signed-off-by: Anthony PERARD Reviewed-by: Jason Andryuk --- tools/libs/light/libxl_dm.c | 14 +++--- 1 file changed, 7

[XEN PATCH v2 0/8] Fix libxl with QEMU 6.0 + remove some more deprecated usages.

2021-05-11 Thread Anthony PERARD
Patch series available in this git branch: https://xenbits.xen.org/git-http/people/aperard/xen-unstable.git br.deprecated-qemu-qmp-and-cmd-v2 v2: - fix coding style in patch 3 - all reviewed The Xen 4.15 release that went out just before QEMU 6.0 won't be compaptible with the latter. This patch

[XEN PATCH v2 1/8] libxl: Replace deprecated QMP command by "query-cpus-fast"

2021-05-11 Thread Anthony PERARD
We use the deprecated QMP command "query-cpus" which is removed in the QEMU 6.0 release. There's a replacement which is "query-cpus-fast", and have been available since QEMU 2.12 (April 2018). This patch try the new command first and when the command isn't available, it fall back to the

[libvirt test] 161901: regressions - trouble: blocked/broken/fail/pass

2021-05-11 Thread osstest service owner
flight 161901 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/161901/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken build-arm64-pvops

[PATCH v3 1/1] kernel.h: Split out panic and oops helpers

2021-05-11 Thread Andy Shevchenko
kernel.h is being used as a dump for all kinds of stuff for a long time. Here is the attempt to start cleaning it up by splitting out panic and oops helpers. There are several purposes of doing this: - dropping dependency in bug.h - dropping a loop by moving out panic_notifier.h - unload kernel.h

RE: [PATCH] xen-netback: Check for hotplug-status existence before watching

2021-05-11 Thread Durrant, Paul
> -Original Message- > From: Marek Marczykowski-Górecki > Sent: 10 May 2021 20:43 > To: Michael Brown ; p...@xen.org > Cc: p...@xen.org; xen-devel@lists.xenproject.org; net...@vger.kernel.org; > wei@kernel.org; Durrant, > Paul > Subject: RE: [EXTERNAL] [PATCH] xen-netback: Check for

Re: [PATCH v3 10/10] arm64: Change type of hsr, cpsr, spsr_el1 to uint64_t

2021-05-11 Thread Michal Orzel
Hi Jan, On 05.05.2021 10:00, Jan Beulich wrote: > On 05.05.2021 09:43, Michal Orzel wrote: >> --- a/xen/include/public/arch-arm.h >> +++ b/xen/include/public/arch-arm.h >> @@ -267,10 +267,10 @@ struct vcpu_guest_core_regs >> >> /* Return address and mode */ >> __DECL_REG(pc64,

Re: Regression when booting 5.15 as dom0 on arm64 (WAS: Re: [linux-linus test] 161829: regressions - FAIL)

2021-05-11 Thread Christoph Hellwig
On Mon, May 10, 2021 at 06:46:34PM -0700, Stefano Stabellini wrote: > On Mon, 10 May 2021, Christoph Hellwig wrote: > > On Sat, May 08, 2021 at 12:32:37AM +0100, Julien Grall wrote: > > > The pointer dereferenced seems to suggest that the swiotlb hasn't been > > > allocated. From what I can tell,

Re: [PATCH v3 1/5] tools/debugger: Fix PAGE_SIZE redefinition error

2021-05-11 Thread Tim Deegan
At 11:35 +0300 on 10 May (1620646515), Costin Lupu wrote: > If PAGE_SIZE is already defined in the system (e.g. in /usr/include/limits.h > header) then gcc will trigger a redefinition error because of -Werror. This > patch replaces usage of PAGE_* macros with KDD_PAGE_* macros in order to avoid >