Re: [Xen-devel] [PATCH 15/25] argo: implement the sendv op

2019-01-04 Thread Christopher Clark
On Thu, Dec 20, 2018 at 12:33 AM Jan Beulich wrote: > > >>> On 20.12.18 at 06:58, wrote: > > On Wed, Dec 12, 2018 at 3:53 AM Jan Beulich wrote: > >> >>> On 01.12.18 at 02:32, wrote: > >> > +static struct argo_ring_info * > >> > +argo_ring_find_info_by_match(const struct domain *d, uint32_t port

Re: [Xen-devel] [PATCH 15/25] argo: implement the sendv op

2019-01-04 Thread Roger Pau Monné
On Fri, Jan 04, 2019 at 12:13:09AM -0800, Christopher Clark wrote: > 2) the p2m type of the guest-supplied memory for the ring. > > Roger raised a query about not pinning the p2m type of memory > used for the ring, and my response on 21st December is here: > > https://lists.xenproject.org/archive

[Xen-devel] [qemu-mainline test] 131723: tolerable FAIL - PUSHED

2019-01-04 Thread osstest service owner
flight 131723 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/131723/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-armhf-armhf-libvirt 14 saverestore-support-checkfail like 131518 test-amd64-amd64-xl-qemuu-win7-amd6

Re: [Xen-devel] [PATCH v4 2/2] xen: use SYMBOL when required

2019-01-04 Thread Jan Beulich
>>> On 02.01.19 at 19:20, wrote: > On Wed, 14 Nov 2018, Jan Beulich wrote: >> >>> On 13.11.18 at 23:02, wrote: >> > On Tue, 13 Nov 2018, Jan Beulich wrote: >> >> >>> On 13.11.18 at 14:17, wrote: >> >> > On 13/11/2018 12:56, Jan Beulich wrote: >> >> > On 13.11.18 at 00:06, wrote: >> >> >>> @

Re: [Xen-devel] [PATCH v3 1/1] xen/blkback: rework connect_ring() to avoid inconsistent xenstore 'ring-page-order' set by malicious blkfront

2019-01-04 Thread Paul Durrant
> -Original Message- > On 12/19/2018 09:23 PM, Dongli Zhang wrote: > > The xenstore 'ring-page-order' is used globally for each blkback queue > and > > therefore should be read from xenstore only once. However, it is > obtained > > in read_per_ring_refs() which might be called multiple time

Re: [Xen-devel] [PATCH 13/25] argo: implement the register op

2019-01-04 Thread Roger Pau Monné
On Fri, Dec 21, 2018 at 03:05:03PM -0800, Christopher Clark wrote: > On Thu, Dec 20, 2018 at 4:52 AM Roger Pau Monné wrote: > > > > On Wed, Dec 19, 2018 at 09:41:59PM -0800, Christopher Clark wrote: > > > On Wed, Dec 12, 2018 at 8:48 AM Roger Pau Monné > > > wrote: > > > > > > > > On Fri, Nov 30

Re: [Xen-devel] [PATCH 5/9] x86/amd: Probe for legacy SSBD interfaces on boot

2019-01-04 Thread Jan Beulich
>>> On 28.12.18 at 17:30, wrote: > On 06/12/2018 10:59, Jan Beulich wrote: > On 03.12.18 at 17:18, wrote: >>> --- a/xen/include/asm-x86/cpufeatures.h >>> +++ b/xen/include/asm-x86/cpufeatures.h >>> @@ -25,6 +25,7 @@ XEN_CPUFEATURE(XEN_SMAP,(FSCAPINTS+0)*32+11) /* > SMAP gets used by

Re: [Xen-devel] [PATCH for-4.12] xen/iommu: fix dev assignment on ARM after 91d4eca7

2019-01-04 Thread Paul Durrant
> -Original Message- > From: Stefano Stabellini [mailto:sstabell...@kernel.org] > Sent: 03 January 2019 18:20 > To: Andrew Cooper > Cc: Stefano Stabellini ; xen-de...@lists.xen.org; > julien.gr...@arm.com; jbeul...@suse.com; Paul Durrant > > Subject: Re: [Xen-devel] [PATCH for-4.12] xen/i

Re: [Xen-devel] [PATCH 1/2] xen/dom0: Improve documentation for dom0= and dom0-iommu=

2019-01-04 Thread Jan Beulich
>>> On 21.12.18 at 13:44, wrote: > On 21/12/2018 12:08, Jan Beulich wrote: > On 21.12.18 at 00:40, wrote: >>> --- a/docs/misc/xen-command-line.markdown >>> +++ b/docs/misc/xen-command-line.markdown >>> @@ -636,55 +636,76 @@ trace feature is only enabled in debugging builds of >>> Xen. >>>

Re: [Xen-devel] [PATCH v7 09/18] xen: remove unnecessary code from dataplane/xen-block.c

2019-01-04 Thread Paul Durrant
Ping Anthony? I dropped your R-b on v6 since I screwed it up. Are you ok with v7? It should be back to how it was but with some whitespace fixes. Paul > -Original Message- > From: Paul Durrant [mailto:paul.durr...@citrix.com] > Sent: 20 December 2018 17:15 > To: qemu-de...@nongnu.org;

Re: [Xen-devel] RT Xen on ARM - R-Car series

2019-01-04 Thread LOPEZ, FUENTES NACARINO Jairo Eduardo
Andrii, Sorry for not responding sooner. First of all happy new year! I seriously overlooked the firmware update. I will attempt that next week and see if the boot is successful. Thanks for the help. Best regards, Jairo 2018年12月28日(金) 17:39 Andrii Anisov : > > > On 28.12.18 10:28, Andrii A

Re: [Xen-devel] [PATCH 2/2] xen/dom0: Add a dom0-iommu=none option

2019-01-04 Thread Jan Beulich
>>> On 21.12.18 at 13:55, wrote: > On 21/12/2018 12:13, Jan Beulich wrote: > On 21.12.18 at 00:40, wrote: >>> @@ -271,6 +272,26 @@ int parse_boolean(const char *name, const char *s, >>> const char *e) >>> return -1; >>> } >>> >>> +int cmdline_strcmp(const char *frag, const char *name

Re: [Xen-devel] [PATCH v7 16/18] xen: automatically create XenBlockDevice-s

2019-01-04 Thread Paul Durrant
Ping Anthony & Kevin? I believe this version is purged of all legacy interface use. > -Original Message- > From: Paul Durrant [mailto:paul.durr...@citrix.com] > Sent: 20 December 2018 17:15 > To: qemu-de...@nongnu.org; qemu-bl...@nongnu.org; xen- > de...@lists.xenproject.org > Cc: Paul Du

Re: [Xen-devel] PVH and ACPI discussion

2019-01-04 Thread Roger Pau Monné
On Thu, Jan 03, 2019 at 03:42:18PM -0500, Boris Ostrovsky wrote: > On 1/3/19 12:45 PM, Roger Pau Monné wrote: > > Hello, > > > > While looking at some tangential issues I realized that the 'VGA Not > > Present' flag that Xen currently sets for PVH DomUs might be slightly > > different from what we

Re: [Xen-devel] [PATCH v4 1/3] xen/pt: fix some pass-thru devices don't work across reboot

2019-01-04 Thread Jan Beulich
>>> On 21.12.18 at 16:21, wrote: > On Fri, Dec 21, 2018 at 03:13:50AM -0700, Jan Beulich wrote: > On 20.12.18 at 16:29, wrote: >>> --- a/xen/drivers/passthrough/pci.c >>> +++ b/xen/drivers/passthrough/pci.c >>> @@ -1514,6 +1514,55 @@ static int assign_device(struct domain *d, u16 seg, >>> u8

Re: [Xen-devel] [PATCH] x86emul: fix test harness and fuzzer build dependencies

2019-01-04 Thread Jan Beulich
>>> On 21.12.18 at 15:16, wrote: > Jan Beulich writes ("Re: [Xen-devel] [PATCH] x86emul: fix test harness and > fuzzer build dependencies"): >> On 20.12.18 at 17:05, wrote: >>> On 20.12.18 at 16:23, wrote: >> >> Ie, it is there to satisfy the requirement I mention above, that the >> >> dependen

[Xen-devel] [RFC PATCH 2/2] xen: credit2: cached attribute for next runqueue entry

2019-01-04 Thread Praveen Kumar
The patch introduces a cached attribute (next_elem) in csched2_runqueue_data which will keep track of next runq candidate which has the maximum credit score within the runqueue. This will save unnecessary tree traversal during the time of scheduling. This element will be populated during the remova

[Xen-devel] [RFC PATCH v2 1/2] xen: credit2: rb-tree for runqueues

2019-01-04 Thread Praveen Kumar
The patch optimized the sorted credit2 runq from simple linked list to rb-tree implementation. This way we will gain performance and scalability when the number of vCPUs are huge. Signed-off-by: Praveen Kumar --- Changes since v1: * Renamed the rb_runq_insert * Corrected the next probable runq

[Xen-devel] [RFC PATCH v2 0/2] xen: credit2: rb-tree for runqueues

2019-01-04 Thread Praveen Kumar
Hi All, This is the continued work with respect to rb-tree usage in Credit2, as mentioned in previous conversations https://lists.xen.org/archives/html/xen-devel/2017-06/msg01968.html https://lists.xen.org/archives/html/xen-devel/2018-04/msg00119.html The patch optimized the Credit2 runqueue fro

Re: [Xen-devel] 4.10.1 Xen crash and reboot

2019-01-04 Thread Jan Beulich
>>> On 01.01.19 at 20:46, wrote: > On Fri, Dec 21, 2018 at 06:55:38PM +, Andy Smith wrote: >> Is it worth me moving this guest to a test host without pcid=0 to >> see if it crashes it, meanwhile keeping production hosts with >> pcid=0? And then putting pcid=0 on the test host to see if it >> s

Re: [Xen-devel] [PATCH 5/6] x86/AMD: Fix handling of FPU pointer on Zen hardware

2019-01-04 Thread Jan Beulich
>>> On 28.12.18 at 17:11, wrote: > On 28/12/2018 15:43, Roger Pau Monné wrote: >> On Fri, Dec 28, 2018 at 12:39:35PM +, Andrew Cooper wrote: >>> AMD hardware before Zen doesn't safe/restore the FPU error pointers >>> unless an unmasked FPU exception is pending. Zen processors have a >>> featu

Re: [Xen-devel] [PATCH v3 2/3] x86/svm: Drop enum instruction_index and simplify svm_get_insn_len()

2019-01-04 Thread Jan Beulich
>>> On 31.12.18 at 12:57, wrote: > On 31/12/2018 11:37, Andrew Cooper wrote: >> +/* >> + * Encoding for svm_get_insn_len(). We take X86EMUL_OPC() for the main >> + * opcode, shifted left to make room for the ModRM byte. >> + */ >> +#define INSTR_ENC(opc, modrm) (((unsigned int)(opc) << 8) | (modr

[Xen-devel] [PATCH 1/4] maintainers: always use hard tabs

2019-01-04 Thread Roger Pau Monne
As that seems to be the prevailing style. 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 --- MAINTAINERS | 66 ++--

[Xen-devel] [PATCH 0/4] Disentangle PCI from IOMMU maintainership

2019-01-04 Thread Roger Pau Monne
Hello, Current arrangement of the PCI code puts it under vendor agnostic IOMMU maintainership, which is IMO not very accurate. The aim of this series is to add a new maintainership section containing the PCI code in Xen, and add myself as reviewer. Due to my work on PVH Dom0, which makes heavy us

[Xen-devel] [PATCH 2/4] x86/passthrough: move io.c to the x86 subfolder

2019-01-04 Thread Roger Pau Monne
It makes no sense for io.c to be on the top level passthrough directory, since it's x86 specific. No functional change. Signed-off-by: Roger Pau Monné --- Cc: Jan Beulich --- xen/drivers/passthrough/Makefile | 3 --- xen/drivers/passthrough/x86/Makefile | 1 + xen/drivers/passthrough/{

[Xen-devel] [PATCH 4/4] pci: add a pci section to the maintainers file

2019-01-04 Thread Roger Pau Monne
And add myself as reviewer. 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 --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+)

[Xen-devel] [PATCH 3/4] x86/passthrough: put the x86 folder under x86 maintainership

2019-01-04 Thread Roger Pau Monne
passthrough/x86 is tied to the x86 code, and as such put it under x86 maintainership. 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 --- M

Re: [Xen-devel] [PATCH v7 06/14] libxl_qmp: Implementation of libxl__ev_qmp_*

2019-01-04 Thread Anthony PERARD
On Thu, Jan 03, 2019 at 12:40:18PM +, Anthony PERARD wrote: > On Fri, Dec 21, 2018 at 03:36:18PM +, Ian Jackson wrote: > > Anthony PERARD writes ("[PATCH v7 06/14] libxl_qmp: Implementation of > > libxl__ev_qmp_*"): > > > +static void qmp_ev_set_state(libxl__gc *gc, libxl__ev_qmp *ev, > >

Re: [Xen-devel] [PATCH v7 06/14] libxl_qmp: Implementation of libxl__ev_qmp_*

2019-01-04 Thread Ian Jackson
(Skipping the parts where you were just agreeing with me...) Anthony PERARD writes ("Re: [PATCH v7 06/14] libxl_qmp: Implementation of libxl__ev_qmp_*"): > On Fri, Dec 21, 2018 at 03:36:18PM +, Ian Jackson wrote: > > > diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h >

Re: [Xen-devel] [PATCH v7 06/14] libxl_qmp: Implementation of libxl__ev_qmp_*

2019-01-04 Thread Anthony PERARD
On Fri, Jan 04, 2019 at 11:21:11AM +, Ian Jackson wrote: > Anthony PERARD writes ("Re: [PATCH v7 06/14] libxl_qmp: Implementation of > libxl__ev_qmp_*"): > > On Fri, Dec 21, 2018 at 03:36:18PM +, Ian Jackson wrote: > > > > +while (ev->tx_buf_off < ev->tx_buf_len) { > > > > +r =

Re: [Xen-devel] [PATCH 1/2] xen/dom0: Improve documentation for dom0= and dom0-iommu=

2019-01-04 Thread Roger Pau Monné
On Mon, Dec 24, 2018 at 12:46:06PM +, Andrew Cooper wrote: > When it comes to the IOMMU setup, there should not be a difference > between PV and PVH, because the difference in virtulisation mode is not > relevant to how the devices on the system behave. > > IMO, map-inclusive should be disable

Re: [Xen-devel] [PATCH 1/2] xen/dom0: Improve documentation for dom0= and dom0-iommu=

2019-01-04 Thread Andrew Cooper
On 04/01/2019 12:04, Roger Pau Monné wrote: > On Mon, Dec 24, 2018 at 12:46:06PM +, Andrew Cooper wrote: >> When it comes to the IOMMU setup, there should not be a difference >> between PV and PVH, because the difference in virtulisation mode is not >> relevant to how the devices on the system

Re: [Xen-devel] [PATCH v7 01/14] libxl: Enhance libxl__sendmsg_fds to deal with EINTR and EWOULDBLOCK

2019-01-04 Thread Anthony PERARD
On Fri, Dec 21, 2018 at 02:30:05PM +, Ian Jackson wrote: > Anthony PERARD writes ("[PATCH v7 01/14] libxl: Enhance libxl__sendmsg_fds to > deal with EINTR and EWOULDBLOCK"): > > This patch change the behavior of libxl__sendmsg_fds to retry sendmsg on > > EINTR error. > > > > This patch also a

Re: [Xen-devel] [PATCH v2 1/4] xen/dom0: Improve documentation for dom0= and dom0-iommu=

2019-01-04 Thread Roger Pau Monné
On Mon, Dec 31, 2018 at 03:16:20PM +, Andrew Cooper wrote: > +Controls for the dom0 IOMMU setup. > + > +* The `passthrough` boolean controls whether IOMMU translation > functionality > +is disabled for devices in dom0 (`passthrough=1`) or whether the IOMMU is > +used to ensure that d

Re: [Xen-devel] [PATCH v2 2/4] x86/dom0: Improve dom0= useability

2019-01-04 Thread Roger Pau Monné
On Mon, Dec 31, 2018 at 03:16:21PM +, Andrew Cooper wrote: > Having a pvh boolean isn't ideal. If we gain a 3rd virtulsation mode, > what does `dom0=no-pvh` mean? > > Change the syntax to be "dom0 = pv | pvh" which offers an option to more > obviously select PV mode. Hide both options behind

Re: [Xen-devel] 4.10.1 Xen crash and reboot

2019-01-04 Thread Andy Smith
Hello, On Fri, Jan 04, 2019 at 03:16:32AM -0700, Jan Beulich wrote: > >>> On 01.01.19 at 20:46, wrote: > > I did move the suspect guest to a test host that does not have > > pcid=0 and 10 days later it crashed too: > > Thanks for trying this. It is now pretty clear that we need a means > to repr

Re: [Xen-devel] [PATCH v2 3/4] xen/dom0: Drop iommu_hwdom_inclusive entirely

2019-01-04 Thread Roger Pau Monné
On Mon, Dec 31, 2018 at 03:16:22PM +, Andrew Cooper wrote: > This option is unique to x86 PV dom0's, but it is not sensible to have a > catch-all which blindly maps all non-RAM regions into the IOMMU. > > The map-reserved option remains, and covers all the buggy firmware issues that > I am awa

Re: [Xen-devel] [PATCH v2 4/4] xen/dom0: Add a dom0-iommu=none option

2019-01-04 Thread Roger Pau Monné
On Mon, Dec 31, 2018 at 03:16:23PM +, Andrew Cooper wrote: > For development purposes, it is very convenient to boot Xen as a PVH guest, > with an XTF PV or PVH "dom0". The edit-compile-go cycle is a matter of > seconds, and you can reasonably insert printk() debugging in places which > which

Re: [Xen-devel] [PATCH v2 3/4] xen/dom0: Drop iommu_hwdom_inclusive entirely

2019-01-04 Thread Andrew Cooper
On 04/01/2019 12:33, Roger Pau Monné wrote: > On Mon, Dec 31, 2018 at 03:16:22PM +, Andrew Cooper wrote: >> This option is unique to x86 PV dom0's, but it is not sensible to have a >> catch-all which blindly maps all non-RAM regions into the IOMMU. >> >> The map-reserved option remains, and cov

Re: [Xen-devel] [PATCH v2 3/4] xen/dom0: Drop iommu_hwdom_inclusive entirely

2019-01-04 Thread Roger Pau Monné
On Fri, Jan 04, 2019 at 12:46:27PM +, Andrew Cooper wrote: > On 04/01/2019 12:33, Roger Pau Monné wrote: > > On Mon, Dec 31, 2018 at 03:16:22PM +, Andrew Cooper wrote: > >> This option is unique to x86 PV dom0's, but it is not sensible to have a > >> catch-all which blindly maps all non-RAM

Re: [Xen-devel] PVH and ACPI discussion

2019-01-04 Thread Jan Beulich
>>> On 03.01.19 at 18:45, wrote: > While looking at some tangential issues I realized that the 'VGA Not > Present' flag that Xen currently sets for PVH DomUs might be slightly > different from what we expect it to mean. The purpose was that Xen > would set this flag to denote there's no VGA MMIO r

Re: [Xen-devel] [PATCH 13/25] argo: implement the register op

2019-01-04 Thread Jan Beulich
>>> On 04.01.19 at 09:57, wrote: > On Fri, Dec 21, 2018 at 03:05:03PM -0800, Christopher Clark wrote: >> On Thu, Dec 20, 2018 at 4:52 AM Roger Pau Monné wrote: >> > >> > On Wed, Dec 19, 2018 at 09:41:59PM -0800, Christopher Clark wrote: >> > > On Wed, Dec 12, 2018 at 8:48 AM Roger Pau Monné >>

Re: [Xen-devel] [PATCH 15/25] argo: implement the sendv op

2019-01-04 Thread Jan Beulich
>>> On 04.01.19 at 09:13, wrote: > ok, I'm at the point where I'm close to having a version three of the > series to post that addresses all the feedback so far, plus some > additional improvements, with the following two items remaining to > discuss: > > 1) the domain_cookie, with Jan's question

Re: [Xen-devel] [PATCH v2 3/4] xen/dom0: Drop iommu_hwdom_inclusive entirely

2019-01-04 Thread Roger Pau Monné
On Mon, Dec 31, 2018 at 03:16:22PM +, Andrew Cooper wrote: > diff --git a/xen/drivers/passthrough/x86/iommu.c > b/xen/drivers/passthrough/x86/iommu.c > index c68a722..0ccb754 100644 > --- a/xen/drivers/passthrough/x86/iommu.c > +++ b/xen/drivers/passthrough/x86/iommu.c > @@ -169,10 +169,10 @@

Re: [Xen-devel] Command line options of dubious use

2019-01-04 Thread Jan Beulich
>>> On 31.12.18 at 19:46, wrote: > As I've spent a while staring at the command line docs recently, I've > come to the conclusion that we should probably remove these: > > * ro-hpet > > I'm afraid that I didn't spot this one going in, and would have objected > to it if I'd found it. Not how the

[Xen-devel] [freebsd-master test] 131733: trouble: blocked/broken

2019-01-04 Thread osstest service owner
flight 131733 freebsd-master real [real] http://logs.test-lab.xenproject.org/osstest/logs/131733/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-freebsd broken build-amd64-freebs

Re: [Xen-devel] PVH and ACPI discussion

2019-01-04 Thread Roger Pau Monné
On Fri, Jan 04, 2019 at 06:10:29AM -0700, Jan Beulich wrote: > >>> On 03.01.19 at 18:45, wrote: > > While looking at some tangential issues I realized that the 'VGA Not > > Present' flag that Xen currently sets for PVH DomUs might be slightly > > different from what we expect it to mean. The purpo

Re: [Xen-devel] [PATCH 3/5] x86/dom0: add missing flag to printf format for PVH

2019-01-04 Thread Jan Beulich
>>> On 27.12.18 at 16:26, wrote: > --- a/xen/arch/x86/hvm/dom0_build.c > +++ b/xen/arch/x86/hvm/dom0_build.c > @@ -124,7 +124,7 @@ static int __init pvh_populate_memory_range(struct domain > *d, > order); > if ( rc != 0 ) > { > -p

Re: [Xen-devel] [PATCH v2 1/2] x86/dom0: take alignment into account when populating p2m in PVH mode

2019-01-04 Thread Jan Beulich
>>> On 28.12.18 at 12:18, wrote: > --- a/xen/arch/x86/hvm/dom0_build.c > +++ b/xen/arch/x86/hvm/dom0_build.c > @@ -91,16 +91,54 @@ static int __init pvh_populate_memory_range(struct domain > *d, > unsigned long start, >

Re: [Xen-devel] [PATCH v2 3/3] x86/mm-locks: apply a bias to lock levels for control domain

2019-01-04 Thread Jan Beulich
>>> On 21.12.18 at 10:41, wrote: > paging_log_dirty_op function takes mm locks from a subject domain and > then attempts to perform copy to operations against the caller domain > in order to copy the result of the hypercall into the caller provided > buffer. > > This works fine when the caller is

[Xen-devel] [linux-linus test] 131718: regressions - FAIL

2019-01-04 Thread osstest service owner
flight 131718 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/131718/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-amd64-pvgrub 7 xen-bootfail REGR. vs. 125898 test-amd64-amd64-li

[Xen-devel] [PATCH] x86/dom0: change align type to int

2019-01-04 Thread Roger Pau Monne
There's no reason to use long to store the alignment, since the bigger page size is 1GB, and the alignment is stored as a frame number. Reported-by: Jan Beulich Signed-off-by: Roger Pau Monné --- Cc: Jan Beulich Cc: Andrew Cooper Cc: Wei Liu --- xen/arch/x86/hvm/dom0_build.c | 3 +-- 1 file

Re: [Xen-devel] [PATCH v2 1/2] x86/dom0: take alignment into account when populating p2m in PVH mode

2019-01-04 Thread Roger Pau Monné
On Fri, Jan 04, 2019 at 07:42:35AM -0700, Jan Beulich wrote: > >>> On 28.12.18 at 12:18, wrote: > > --- a/xen/arch/x86/hvm/dom0_build.c > > +++ b/xen/arch/x86/hvm/dom0_build.c > > @@ -91,16 +91,54 @@ static int __init pvh_populate_memory_range(struct > > domain *d, > >

[Xen-devel] [PATCH v8 08/17] libxl: Add init/dispose of for libxl__domain_build_state

2019-01-04 Thread Anthony PERARD
These two new functions libxl__domain_build_state_{init,dispose} should be called every time a new libxl__domain_build_state comes to existance. There seems to be two of them, one with the domain creation machinery, and one in the stub_dm_spawn. Signed-off-by: Anthony PERARD Acked-by: Ian Jackso

[Xen-devel] [PATCH v8 02/17] libxl_qmp: Separate QMP message generation from qmp_send_prepare

2019-01-04 Thread Anthony PERARD
.. to be able to re-use qmp_prepare_cmd with libxl__ev_qmp. This patch also add the QMP end of command '\r\n' into the generated string as every caller will needs this. There should be no functional change. Signed-off-by: Anthony PERARD Acked-by: Ian Jackson --- Notes: v8: Acked

[Xen-devel] [PATCH v8 01/17] libxl: Enhance libxl__sendmsg_fds to deal with EINTR and EWOULDBLOCK

2019-01-04 Thread Anthony PERARD
This patch change the behavior of libxl__sendmsg_fds to retry sendmsg on EINTR error and return an error on short writes. This patch allow a caller of libxl__sendmsg_fds to deal with EWOULDBLOCK and short writes. The function now requires to send only 1 byte of data so that when dealing with non-b

[Xen-devel] [PATCH v8 06/17] libxl_qmp: Implementation of libxl__ev_qmp_*

2019-01-04 Thread Anthony PERARD
This patch implement the API libxl__ev_qmp documented in the previous patch, "libxl: Design of an async API to issue QMP commands to QEMU". Since this API is to interact with QEMU via the QMP protocol, it also implement a QMP client. The specification for the QEMU Machine Protocol (QMP) can be fou

[Xen-devel] [PATCH v8 00/17] libxl: Enable save/restore/migration of a restricted QEMU + libxl__ev_qmp_*

2019-01-04 Thread Anthony PERARD
Patch series available in this git branch: https://xenbits.xen.org/git-http/people/aperard/xen-unstable.git br.libxl-ev-qmp-v8 Changes in v8: libxl_qmp: Implementation of libxl__ev_qmp_*: - few changes Then 3 patches have been added but are not necessary, they are follow-up p

[Xen-devel] [PATCH v8 03/17] libxl_qmp: Change qmp_qemu_check_version to compare version

2019-01-04 Thread Anthony PERARD
This patch makes the function simpler to read. It also add the ability for a caller to tell if QEMU is newer or have the exact version. Signed-off-by: Anthony PERARD Acked-by: Ian Jackson --- Notes: v6: new patch tools/libxl/libxl_qmp.c | 28 +--- 1 file ch

[Xen-devel] [PATCH v8 05/17] libxl: Design of an async API to issue QMP commands to QEMU

2019-01-04 Thread Anthony PERARD
All the functions will be implemented in later patches. This patch includes the API that libxl can use to send QMP commands to QEMU. Signed-off-by: Anthony PERARD Acked-by: Ian Jackson --- Notes: v7: acked, but with: fd field renamed to payload_fd libxl__ao

[Xen-devel] [PATCH v8 07/17] libxl_exec: Add libxl__spawn_initiate_failure

2019-01-04 Thread Anthony PERARD
This function can be used by user of libxl__spawn_* when they setup a notification other than xenstore. The parent can already report success via libxl__spawn_initiate_detach(), this new function can be used for failure instead of waiting for the timeout. Signed-off-by: Anthony PERARD Acked-by: I

[Xen-devel] [PATCH v8 04/17] libxl: Add wrapper around libxl__json_object_to_json JSON

2019-01-04 Thread Anthony PERARD
That wrapper is going to be used to safely log a json_object, as libxl__json_object_to_json return NULL on error. In the error case, JSON() will return an invalid json string. Signed-off-by: Anthony PERARD Acked-by: Ian Jackson --- Notes: v8: Acked v7: new patch

[Xen-devel] [PATCH v8 09/17] libxl_dm: Pre-open QMP socket for QEMU

2019-01-04 Thread Anthony PERARD
This patch moves the creation of the QMP unix socket from QEMU to libxl. But libxl doesn't rely on this yet. When starting QEMU with dm_restrict=1, pre-open the QMP socket before exec QEMU. That socket will be useful to find out if QEMU is ready, and pre-opening it means that libxl can connect to

Re: [Xen-devel] [PATCH] xen/cmdline: Fix buggy strncmp(s, LITERAL, ss - s) construct

2019-01-04 Thread Jan Beulich
>>> On 31.12.18 at 18:35, wrote: > --- a/xen/arch/x86/cpu/vpmu.c > +++ b/xen/arch/x86/cpu/vpmu.c > @@ -61,42 +61,31 @@ static unsigned vpmu_count; > > static DEFINE_PER_CPU(struct vcpu *, last_vcpu); > > -static int parse_vpmu_param(const char *s, unsigned int len) > -{ > -if ( !*s || !le

[Xen-devel] [PATCH 1/3] libx86: Introduce a helper to deserialise cpuid_policy objects

2019-01-04 Thread Andrew Cooper
As with the serialise side, Xen's copy_from_guest API is used, with a compatibility wrapper for the userspace build. Signed-off-by: Andrew Cooper Signed-off-by: Sergey Dyasli Signed-off-by: Roger Pau Monné --- CC: Jan Beulich CC: Wei Liu CC: Roger Pau Monné CC: Sergey Dyasli --- xen/includ

[Xen-devel] [PATCH 3/3] tools/cpu-policy: Add unit tests and a fuzzing harness

2019-01-04 Thread Andrew Cooper
The AFL harness currently notices that there are cases where we optimse the serialised stream by omitting data beyond the various maximum leaves. Both sets of tests will be extended with further libx86 work. Fix the sorting of the CPUID_GUEST_NR_* constants, noticed while writing the unit tests.

[Xen-devel] [PATCH 2/3] libx86: introduce a helper to deserialise msr_policy objects

2019-01-04 Thread Andrew Cooper
From: Roger Pau Monné Signed-off-by: Sergey Dyasli Signed-off-by: Roger Pau Monné Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Wei Liu CC: Roger Pau Monné CC: Sergey Dyasli --- xen/include/xen/lib/x86/msr.h | 21 ++ xen/lib/x86/msr.c | 67 ++

[Xen-devel] [PATCH 0/3] libx86: Remaining serialisation logic

2019-01-04 Thread Andrew Cooper
I've lost count of exactly which version this is, due to multiple postings of various sub series, and several substantial rebases. I think I've addressed all outstanding review content, so lets start from v1 again. Andrew Cooper (2): libx86: Introduce a helper to deserialise cpuid_policy object

Re: [Xen-devel] [PATCH 13/25] argo: implement the register op

2019-01-04 Thread Roger Pau Monné
On Fri, Jan 04, 2019 at 06:22:19AM -0700, Jan Beulich wrote: > >>> On 04.01.19 at 09:57, wrote: > > On Fri, Dec 21, 2018 at 03:05:03PM -0800, Christopher Clark wrote: > >> On Thu, Dec 20, 2018 at 4:52 AM Roger Pau Monné > >> wrote: > >> > > >> > On Wed, Dec 19, 2018 at 09:41:59PM -0800, Christop

Re: [Xen-devel] [PATCH] x86/dom0: change align type to int

2019-01-04 Thread Jan Beulich
>>> On 04.01.19 at 16:14, wrote: > There's no reason to use long to store the alignment, since the bigger biggest? > page size is 1GB, and the alignment is stored as a frame number. > > Reported-by: Jan Beulich > Signed-off-by: Roger Pau Monné > --- > Cc: Jan Beulich > Cc: Andrew Cooper > C

Re: [Xen-devel] PVH and ACPI discussion

2019-01-04 Thread Jan Beulich
>>> On 04.01.19 at 15:09, wrote: > Do you agree however that PVH DomU could maybe use reduced hardware > ACPI while Dom0 using whatever mode (reduced or not) is set by the > native ACPI tables? Yes, it's certainly worth exploring. Jan ___ Xen-devel

Re: [Xen-devel] [PATCH 13/25] argo: implement the register op

2019-01-04 Thread Jan Beulich
>>> On 04.01.19 at 16:35, wrote: > On Fri, Jan 04, 2019 at 06:22:19AM -0700, Jan Beulich wrote: >> >>> On 04.01.19 at 09:57, wrote: >> > On Fri, Dec 21, 2018 at 03:05:03PM -0800, Christopher Clark wrote: >> >> On Thu, Dec 20, 2018 at 4:52 AM Roger Pau Monné >> >> wrote: >> >> > >> >> > On Wed,

Re: [Xen-devel] [PATCH] xen/cmdline: Fix buggy strncmp(s, LITERAL, ss - s) construct

2019-01-04 Thread Andrew Cooper
On 04/01/2019 15:32, Jan Beulich wrote: On 31.12.18 at 18:35, wrote: >> --- a/xen/arch/x86/cpu/vpmu.c >> +++ b/xen/arch/x86/cpu/vpmu.c >> @@ -61,42 +61,31 @@ static unsigned vpmu_count; >> >> static DEFINE_PER_CPU(struct vcpu *, last_vcpu); >> >> -static int parse_vpmu_param(const char *

Re: [Xen-devel] [PATCH v7 09/18] xen: remove unnecessary code from dataplane/xen-block.c

2019-01-04 Thread Anthony PERARD
On Thu, Dec 20, 2018 at 05:14:30PM +, Paul Durrant wrote: > Not all of the code duplicated from xen_disk.c is required as the basis for > the new dataplane implementation so this patch removes extraneous code, > along with the legacy #includes and calls to the legacy xen_pv_printf() > function.

Re: [Xen-devel] [PATCH v7 01/14] libxl: Enhance libxl__sendmsg_fds to deal with EINTR and EWOULDBLOCK

2019-01-04 Thread Ian Jackson
Anthony PERARD writes ("Re: [PATCH v7 01/14] libxl: Enhance libxl__sendmsg_fds to deal with EINTR and EWOULDBLOCK"): > On Fri, Dec 21, 2018 at 02:30:05PM +, Ian Jackson wrote: > > Even with a blocking fd, sendmsg may in principle report a short > > write. (So the commit message should talk ab

[Xen-devel] status of non-live migration of HVM with libvirt

2019-01-04 Thread Olaf Hering
With 'xl migrate' the migration is always live, while 'virsh migrate' will do an offline migration unless '--live' is used. Such non-live migration will break with HVM because the sending side does not seem to unlock the qcow2 image. I wonder if its worth keeping (and fixing) the concept of an "

[Xen-devel] [PATCH v8 14/17] libxl: Re-implement domain_suspend_device_model using libxl__ev_qmp

2019-01-04 Thread Anthony PERARD
The re-implementation is done because we want to be able to send the file description that QEMU can use to save its state. When QEMU is restricted, it would not be able to write to a path. This replace both libxl__qmp_stop() and libxl__qmp_save(). qmp_qemu_check_version() was only used by libxl__

[Xen-devel] [PATCH v8 15/17] libxl: Remove unused arg from libxl__sendmsg_fds

2019-01-04 Thread Anthony PERARD
From: Anthony PERARD Now that `datalen' needs to be 1, we can remove it. Also change `data' parameter to be a singe byte. Signed-off-by: Anthony PERARD --- Notes: v8: new patch, just a follow-up tools/libxl/libxl_aoutils.c | 2 +- tools/libxl/libxl_internal.h | 4 ++-- tools/lib

[Xen-devel] [PATCH v8 10/17] libxl: Add dmss_init/dispose for libxl__dm_spawn_state

2019-01-04 Thread Anthony PERARD
These two functions, dmss_init and dmss_dispose, need to be called to initialise the private parts of a libxl__dm_spawn_state (dmss) as well as dispose of them before giving back control to a caller. There are 3 functions that can start using a dmss, the classic libxl__spawn_local_dm, the one for

[Xen-devel] [PATCH v8 12/17] libxl_qmp: Store advertised QEMU version in libxl__ev_qmp

2019-01-04 Thread Anthony PERARD
This will be used in a later patch. Signed-off-by: Anthony PERARD Acked-by: Ian Jackson --- Notes: v8: Acked v7: Add do{}while around the MACRO. formating nits changes. v6: new local macro GRAB_VERSION better definition of qemu_versi

[Xen-devel] [PATCH v8 11/17] libxl: QEMU startup sync based on QMP

2019-01-04 Thread Anthony PERARD
This is only activated when dm_restrict=1, as explained in a previous patch "libxl_dm: Pre-open QMP socket for QEMU" Signed-off-by: Anthony PERARD Reviewed-by: Roger Pau Monné Acked-by: Ian Jackson --- Notes: v8: Acked v7: fixed _dispose call in device_model_spawn_

[Xen-devel] [PATCH v8 13/17] libxl: Change libxl__domain_suspend_device_model() to be async

2019-01-04 Thread Anthony PERARD
This create an extra step for the two call sites of the function. libxl__domain_suspend_device_model() in this patch gets an extra error variable (there is ret and rc), but ret goes away in the next patch. Signed-off-by: Anthony PERARD Acked-by: Ian Jackson --- libxl_domain_soft_reset() haven'

[Xen-devel] [PATCH v8 16/17] libxl_json: Remove libxl__json_object_append_to from header

2019-01-04 Thread Anthony PERARD
It isn't possible to use libxl__json_object_append_to() outside of libxl_json.c as there is no way to allocate a struct libxl__yajl_ctx. So also remove libxl__yajl_ctx typedef from the internal header. Signed-off-by: Anthony PERARD --- Notes: v8: New follow-up patch tools/libxl/lib

[Xen-devel] [PATCH v8 17/17] libxl: Add comments to libxl__json_*get* functions

2019-01-04 Thread Anthony PERARD
This comments that libxl__json_object_get_* and libxl__json_*_get functions accept the libxl__json_object parameter to be NULL. libxl__json_object_to_json also works with NULL. This also move libxl__json_object_alloc declaration closer to similar functions, and closer to libxl__json_object_free.

Re: [Xen-devel] [PATCH v8 15/17] libxl: Remove unused arg from libxl__sendmsg_fds

2019-01-04 Thread Ian Jackson
Anthony PERARD writes ("[PATCH v8 15/17] libxl: Remove unused arg from libxl__sendmsg_fds"): > From: Anthony PERARD > > Now that `datalen' needs to be 1, we can remove it. Also change `data' > parameter to be a singe byte. Acked-by: Ian Jackson ___

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

2019-01-04 Thread osstest service owner
flight 131720 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/131720/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-libvirt-pair 10 xen-boot/src_host fail REGR. vs. 131670 test-amd64-i386-mi

Re: [Xen-devel] [PATCH v8 16/17] libxl_json: Remove libxl__json_object_append_to from header

2019-01-04 Thread Ian Jackson
Anthony PERARD writes ("[PATCH v8 16/17] libxl_json: Remove libxl__json_object_append_to from header"): > It isn't possible to use libxl__json_object_append_to() outside of > libxl_json.c as there is no way to allocate a struct libxl__yajl_ctx. > So also remove libxl__yajl_ctx typedef from the int

Re: [Xen-devel] [PATCH -next] xen/pvcalls: remove set but not used variable 'intf'

2019-01-04 Thread Boris Ostrovsky
On 1/4/19 1:03 AM, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/xen/pvcalls-back.c: In function 'pvcalls_sk_state_change': > drivers/xen/pvcalls-back.c:286:28: warning: > variable 'intf' set but not used [-Wunused-but-set-variable] > > It not used since e6587cdbd7

Re: [Xen-devel] [PATCH] xen/cmdline: Fix buggy strncmp(s, LITERAL, ss - s) construct

2019-01-04 Thread Andrew Cooper
On 04/01/2019 15:55, Andrew Cooper wrote: > On 04/01/2019 15:32, Jan Beulich wrote: >>> +{ >>> +int res = (*frag - *name); >> With the result of this being implementation defined (due to plain >> char's implementation defined - often command line controlled >> with an implementation def

Re: [Xen-devel] [PATCH v7 16/18] xen: automatically create XenBlockDevice-s

2019-01-04 Thread Anthony PERARD
Almost done, there is one thing left which I believe is an issue. Whenever I attach a raw file to QEMU, it print: qemu-system-i386: warning: Opening a block device as a file using the 'file' driver is deprecated So, I think the comment below isn't true. We should create a "raw" driver for "ra

[Xen-devel] [PATCH] x86emul: no need to set fault_suppression to false for VMOVNT*

2019-01-04 Thread Jan Beulich
When evex.opmsk is required to be zero there's no need for this, as it won't have been set to true in the first place. Signed-off-by: Jan Beulich --- I've made similar changes to patches 16, 45, and 46 of v7 of the main AVX512 series. --- a/xen/arch/x86/x86_emulate/x86_emulate.c +++ b/xen/arch/x

Re: [Xen-devel] [PATCH v7 16/18] xen: automatically create XenBlockDevice-s

2019-01-04 Thread Paul Durrant
> -Original Message- > From: Anthony PERARD [mailto:anthony.per...@citrix.com] > Sent: 04 January 2019 16:31 > To: Paul Durrant > Cc: qemu-de...@nongnu.org; qemu-bl...@nongnu.org; xen- > de...@lists.xenproject.org; Kevin Wolf ; Max Reitz > ; Stefano Stabellini > Subject: Re: [PATCH v7 16/

Re: [Xen-devel] [PATCH] xen/cmdline: Fix buggy strncmp(s, LITERAL, ss - s) construct

2019-01-04 Thread Jan Beulich
>>> On 04.01.19 at 16:55, wrote: > On 04/01/2019 15:32, Jan Beulich wrote: > On 31.12.18 at 18:35, wrote: >>> +{ >>> +int res = (*frag - *name); >> With the result of this being implementation defined (due to plain >> char's implementation defined - often command line controlled >

Re: [Xen-devel] status of non-live migration of HVM with libvirt

2019-01-04 Thread Olaf Hering
Am Fri, 4 Jan 2019 16:57:55 +0100 schrieb Olaf Hering : > worth keeping (and fixing) the concept of an "offline migration" And regarding the fix, it looks like qmp_xen_save_devices_state does not need the concept of "live". Just shutdown the blockdevices and be done with it? +++ b/migration/sav

[Xen-devel] [libvirt test] 131730: tolerable all pass - PUSHED

2019-01-04 Thread osstest service owner
flight 131730 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/131730/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-armhf-armhf-libvirt 14 saverestore-support-checkfail like 131710 test-armhf-armhf-libvirt-raw 13 saveresto

Re: [Xen-devel] [PATCH] x86/pv: Clean up cr3 handling in arch_set_info_guest()

2019-01-04 Thread Jan Beulich
>>> On 21.12.18 at 14:46, wrote: > All of this code lives inside CONFIG_PV which means gfn == mfn, and the > fill_ro_mpt() calls clearly show that the value is used untranslated. > > Change cr3_gfn to a suitably typed cr3_mfn, and replace get_page_from_gfn() > with a straight mfn_to_page/get_page

Re: [Xen-devel] [PATCH 1/4] maintainers: always use hard tabs

2019-01-04 Thread Jan Beulich
>>> On 04.01.19 at 11:33, wrote: > As that seems to be the prevailing style. > > Signed-off-by: Roger Pau Monné Acked-by: Jan Beulich Thanks for doing this; I too have been meaning to. Jan ___ Xen-devel mailing list Xen-devel@lists.xenproject.org

[Xen-devel] [PATCH] xen/string: Fix strcmp() and strncmp()

2019-01-04 Thread Andrew Cooper
The C spec requires that the comarison be done in terms of unsigned char. The code style in this file is terrible, but does claim to be Xen BSD style, so fix up these functions while rewriting them. Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Wei Liu CC: Roger Pau Monné --- xen/comm

Re: [Xen-devel] [PATCH 2/4] x86/passthrough: move io.c to the x86 subfolder

2019-01-04 Thread Jan Beulich
>>> On 04.01.19 at 11:33, wrote: > It makes no sense for io.c to be on the top level passthrough > directory, since it's x86 specific. I'm not sure it really is. It's largely about interrupt arrangements for guests, which (being PCI-related) may or may not be re- usable by Arm once they get to su

Re: [Xen-devel] [PATCH v4 2/2] xen: use SYMBOL when required

2019-01-04 Thread Stefano Stabellini
On Fri, 4 Jan 2019, Jan Beulich wrote: > >>> On 02.01.19 at 19:20, wrote: > > On Wed, 14 Nov 2018, Jan Beulich wrote: > >> >>> On 13.11.18 at 23:02, wrote: > >> > On Tue, 13 Nov 2018, Jan Beulich wrote: > >> >> >>> On 13.11.18 at 14:17, wrote: > >> >> > On 13/11/2018 12:56, Jan Beulich wrote: >

  1   2   >