Re: [Xen-devel] [RFC PATCH v2 00/26] arm64: Dom0 ITS emulation

2017-01-18 Thread Vijay Kilari
Hi Andre, On Thu, Dec 22, 2016 at 11:54 PM, Andre Przywara wrote: > Hi, > > this is a reworked version of the Dom0 GICv3-ITS emulation series. > This is still not fully where I want it and has some loose bits and > pieces still, but since there are significant changes in the architecture > I want

Re: [Xen-devel] [PATCH v5 21/24] tools: L2 CAT: support get HW info for L2 CAT.

2017-01-18 Thread Dario Faggioli
On Wed, 2017-01-18 at 10:02 +0800, Yi Sun wrote: > This patch implements xl/xc changes to support get HW info > for L2 CAT. > > 'xl psr-hwinfo' is updated to show both L3 CAT and L2 CAT > info. > > Example(on machine which only supports L2 CAT): > Cache Monitoring Technology (CMT): > Enabled 

Re: [Xen-devel] [PATCH v5 23/24] tools: L2 CAT: support set cbm for L2 CAT.

2017-01-18 Thread Dario Faggioli
On Wed, 2017-01-18 at 10:02 +0800, Yi Sun wrote: > --- a/tools/libxl/xl_cmdimpl.c > +++ b/tools/libxl/xl_cmdimpl.c > @@ -9523,19 +9523,21 @@ int main_psr_cat_cbm_set(int argc, char > **argv) >  char *value; >  libxl_string_list socket_list; >  unsigned long start, end; > -int i, j,

Re: [Xen-devel] [PATCH v5 01/24] docs: create L2 Cache Allocation Technology (CAT) feature document

2017-01-18 Thread Dario Faggioli
On Wed, 2017-01-18 at 10:02 +0800, Yi Sun wrote: > This patch creates L2 CAT feature document in doc/features/. > It describes details of L2 CAT. > > Signed-off-by: Yi Sun > --- > Hey, it is very very useful to put _RIGHT_HERE_ a summary of what changed, within, this patch, wrt the previous vers

Re: [Xen-devel] [PATCH v2 1/2] xen-netback: fix memory leaks on XenBus disconnect

2017-01-18 Thread Paul Durrant
> -Original Message- > From: Igor Druzhinin [mailto:igor.druzhi...@citrix.com] > Sent: 17 January 2017 20:50 > To: Wei Liu > Cc: Paul Durrant ; xen-de...@lists.xenproject.org; > net...@vger.kernel.org; linux-ker...@vger.kernel.org; Igor Druzhinin > > Subject: [PATCH v2 1/2] xen-netback: f

Re: [Xen-devel] [PATCH v5 01/24] docs: create L2 Cache Allocation Technology (CAT) feature document

2017-01-18 Thread Yi Sun
On 17-01-18 10:11:15, Dario Faggioli wrote: > On Wed, 2017-01-18 at 10:02 +0800, Yi Sun wrote: > > This patch creates L2 CAT feature document in doc/features/. > > It describes details of L2 CAT. > > > > Signed-off-by: Yi Sun > > --- > > > Hey, > > it is very very useful to put _RIGHT_HERE_ a su

Re: [Xen-devel] [xen-unstable test] 104131: regressions - FAIL

2017-01-18 Thread Jan Beulich
>>> On 18.01.17 at 05:57, wrote: > Attached was my earlier comment: > > -- >> >>> On 20.12.16 at 06:37, wrote: >> >> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] >> >> Sent: Friday, December 16, 2016 5:40 PM >> >> -if (pt_vector != -1) >> >> -vmx_set_eoi_exit_bitmap(v,

Re: [Xen-devel] [PATCH 4/5] xen: sched: impove use of cpumask scratch space in Credit1.

2017-01-18 Thread Jan Beulich
>>> On 17.01.17 at 18:27, wrote: > --- a/xen/include/xen/sched-if.h > +++ b/xen/include/xen/sched-if.h > @@ -47,6 +47,13 @@ DECLARE_PER_CPU(struct schedule_data, schedule_data); > DECLARE_PER_CPU(struct scheduler *, scheduler); > DECLARE_PER_CPU(struct cpupool *, cpupool); > > +/* > + * Scratc

Re: [Xen-devel] [PATCH v2 1/2] xen-netback: fix memory leaks on XenBus disconnect

2017-01-18 Thread Wei Liu
On Tue, Jan 17, 2017 at 08:49:37PM +, Igor Druzhinin wrote: > Eliminate memory leaks introduced several years ago by cleaning the > queue resources which are allocated on XenBus connection event. Namely, queue > structure array and pages used for IO rings. > > Signed-off-by: Igor Druzhinin A

Re: [Xen-devel] [PATCH v2 2/2] xen-netback: protect resource cleaning on XenBus disconnect

2017-01-18 Thread Wei Liu
On Tue, Jan 17, 2017 at 08:49:38PM +, Igor Druzhinin wrote: > vif->lock is used to protect statistics gathering agents from using the > queue structure during cleaning. > > Signed-off-by: Igor Druzhinin Acked-by: Wei Liu ___ Xen-devel mailing lis

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

2017-01-18 Thread osstest service owner
flight 104238 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/104238/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-armhf-armhf-libvirt 13 saverestore-support-checkfail like 104199 test-armhf-armhf-libvirt-qcow2 1

Re: [Xen-devel] [PATCH v2 2/2] xen-netback: protect resource cleaning on XenBus disconnect

2017-01-18 Thread Paul Durrant
> -Original Message- > From: Igor Druzhinin [mailto:igor.druzhi...@citrix.com] > Sent: 17 January 2017 20:50 > To: Wei Liu > Cc: Paul Durrant ; xen-de...@lists.xenproject.org; > net...@vger.kernel.org; linux-ker...@vger.kernel.org; Igor Druzhinin > > Subject: [PATCH v2 2/2] xen-netback: p

Re: [Xen-devel] [PATCH v3] kexec: implement STATUS hypercall to check if image is loaded

2017-01-18 Thread Wei Liu
On Tue, Jan 17, 2017 at 11:29:16AM -0600, Eric DeVolder wrote: > The tools that use kexec are asynchronous in nature and do not keep > state changes. As such provide an hypercall to find out whether an > image has been loaded for either type. > > Note: No need to modify XSM as it has one size fits

Re: [Xen-devel] [PATCH v3 5/5] fix: add multiboot2 protocol support for EFI platforms

2017-01-18 Thread Jan Beulich
>>> On 17.01.17 at 21:07, wrote: > --- a/xen/arch/x86/boot/head.S > +++ b/xen/arch/x86/boot/head.S > @@ -519,6 +519,7 @@ trampoline_setup: > 1: > /* Switch to low-memory stack. */ > mov sym_phys(trampoline_phys),%edi > +/* The stack base is 64kb after the location o

[Xen-devel] [qemu-mainline baseline-only test] 68386: tolerable trouble: blocked/broken

2017-01-18 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 68386 qemu-mainline real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/68386/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): build-armhf-pvops 3 host-install(3) b

Re: [Xen-devel] [PATCH 4/5] xen: sched: impove use of cpumask scratch space in Credit1.

2017-01-18 Thread Dario Faggioli
On Wed, 2017-01-18 at 02:45 -0700, Jan Beulich wrote: > > > > On 17.01.17 at 18:27, wrote: > > --- a/xen/include/xen/sched-if.h > > +++ b/xen/include/xen/sched-if.h > > @@ -47,6 +47,13 @@ DECLARE_PER_CPU(struct schedule_data, > > schedule_data); > >  DECLARE_PER_CPU(struct scheduler *, scheduler);

Re: [Xen-devel] [PATCH v4 2/8] dm_op: convert HVMOP_*ioreq_server*

2017-01-18 Thread Jan Beulich
>>> On 17.01.17 at 18:29, wrote: > The definitions of HVM_IOREQSRV_BUFIOREQ_* have to persist as they are > already in use by callers of the libxc interface. > > Suggested-by: Jan Beulich > Signed-off-by: Paul Durrant > -- > Reviewed-by: Jan Beulich This strange placement is still there. With

Re: [Xen-devel] [RFC PATCH v2 00/26] arm64: Dom0 ITS emulation

2017-01-18 Thread Julien Grall
Hello Vijay, On 18/01/2017 08:13, Vijay Kilari wrote: On Thu, Dec 22, 2016 at 11:54 PM, Andre Przywara wrote: Hi, this is a reworked version of the Dom0 GICv3-ITS emulation series. This is still not fully where I want it and has some loose bits and pieces still, but since there are significan

Re: [Xen-devel] PV audio drivers for Linux

2017-01-18 Thread Jan Beulich
>>> On 17.01.17 at 19:01, wrote: > When the buffer is allocated using __get_free_pages() on the DOM0 > OS, I am able to grant the access using gnttab_grant_foreign_access() > to DOM1 as well as I am able to map it in the DOM1 virtual space > using xenbus_map_ring_valloc(). A more general remar

Re: [Xen-devel] [PATCH v4 2/8] dm_op: convert HVMOP_*ioreq_server*

2017-01-18 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 18 January 2017 09:56 > To: Paul Durrant > Cc: Andrew Cooper ; Ian Jackson > ; xen-de...@lists.xenproject.org; Daniel De Graaf > > Subject: Re: [Xen-devel] [PATCH v4 2/8] dm_op: convert > HVMOP_*ioreq_server* > >

Re: [Xen-devel] [PATCH] xen/common: Drop function calls for Xen compile/version information

2017-01-18 Thread Roger Pau Monné
On Tue, Jan 17, 2017 at 03:46:30PM -0500, Konrad Rzeszutek Wilk wrote: > > > Is this patch of yours that neccessary? Could at least some of the > > > functions still exist? > > > > Well. This patch is manually doing what LTO would do automatically when > > it has a cross-translation-unit view of

Re: [Xen-devel] [PATCH v3] kexec: implement STATUS hypercall to check if image is loaded

2017-01-18 Thread Jan Beulich
>>> On 17.01.17 at 18:29, wrote: > --- a/xen/common/kexec.c > +++ b/xen/common/kexec.c > @@ -1169,6 +1169,22 @@ static int kexec_unload(XEN_GUEST_HANDLE_PARAM(void) > uarg) > return kexec_do_unload(&unload); > } > > +static int kexec_status(XEN_GUEST_HANDLE_PARAM(void) uarg) > +{ > +x

Re: [Xen-devel] [PATCH] xen: credit2: clear bit instead of skip step in runq_tickle()

2017-01-18 Thread George Dunlap
On 18/01/17 00:30, Dario Faggioli wrote: > Since we are doing cpumask manipulation already, clear a bit > in the mask at once. Doing that will save us an if, later in > the code. > > No functional change intended. > > Signed-off-by: Dario Faggioli > --- > Cc: George Dunlap > --- > xen/common/s

Re: [Xen-devel] [xen-unstable test] 104131: regressions - FAIL

2017-01-18 Thread Tian, Kevin
> From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Wednesday, January 18, 2017 5:38 PM > > >>> On 18.01.17 at 05:57, wrote: > > Attached was my earlier comment: > > > > -- > >> >>> On 20.12.16 at 06:37, wrote: > >> >> From: Xuquan (Quan Xu) [mailto:xuqu...@huawei.com] > >> >> Sent: Friday,

Re: [Xen-devel] [PATCH RESEND] tools/libxl: add support for emulated NVMe drives

2017-01-18 Thread Wei Liu
On Fri, Jan 13, 2017 at 02:00:41PM +, Paul Durrant wrote: > Upstream QEMU supports emulation of NVM Express a.k.a. NVMe drives. > > This patch adds a new vdev type into libxl to allow such drives to be > presented to HVM guests. Because the purpose of the new vdev is purely > to configure emul

Re: [Xen-devel] [RFC] Device memory mappings for Dom0 on ARM64 ACPI systems

2017-01-18 Thread Jan Beulich
>>> On 17.01.17 at 23:20, wrote: > b) Otherwise, we could write an alternative implementation of ioremap > on arm64. The Xen specific ioremap would request a stage-2 mapping > first, then create the stage-1 mapping as usual. However, this means > issuing an hypercall for every ioremap call. +1 fo

Re: [Xen-devel] PVH CPU hotplug design document

2017-01-18 Thread Roger Pau Monné
On Tue, Jan 17, 2017 at 01:50:14PM -0500, Boris Ostrovsky wrote: > On 01/17/2017 12:45 PM, Roger Pau Monné wrote: > > On Tue, Jan 17, 2017 at 10:50:44AM -0500, Boris Ostrovsky wrote: > >> On 01/17/2017 10:33 AM, Jan Beulich wrote: > >> On 17.01.17 at 16:27, wrote: > On 01/17/2017 09:44 AM

Re: [Xen-devel] [PATCH] xen: credit2: clear bit instead of skip step in runq_tickle()

2017-01-18 Thread Jan Beulich
>>> On 18.01.17 at 11:21, wrote: > On 18/01/17 00:30, Dario Faggioli wrote: >> index ef8e0d8..d086264 100644 >> --- a/xen/common/sched_credit2.c >> +++ b/xen/common/sched_credit2.c >> @@ -985,7 +985,7 @@ runq_tickle(const struct scheduler *ops, struct >> csched2_vcpu *new, s_time_t now) >> c

Re: [Xen-devel] [PATCH v3] kexec: implement STATUS hypercall to check if image is loaded

2017-01-18 Thread Wei Liu
On Wed, Jan 18, 2017 at 03:19:49AM -0700, Jan Beulich wrote: > >>> On 17.01.17 at 18:29, wrote: > > --- a/xen/common/kexec.c > > +++ b/xen/common/kexec.c > > @@ -1169,6 +1169,22 @@ static int kexec_unload(XEN_GUEST_HANDLE_PARAM(void) > > uarg) > > return kexec_do_unload(&unload); > > } > >

Re: [Xen-devel] PVH CPU hotplug design document

2017-01-18 Thread Jan Beulich
>>> On 18.01.17 at 11:34, wrote: > On Tue, Jan 17, 2017 at 01:50:14PM -0500, Boris Ostrovsky wrote: >> On 01/17/2017 12:45 PM, Roger Pau Monné wrote: >> > On Tue, Jan 17, 2017 at 10:50:44AM -0500, Boris Ostrovsky wrote: >> >> Part of confusion I think is because PV hotplug is not hotplug, really,

Re: [Xen-devel] [PATCH v3] kexec: implement STATUS hypercall to check if image is loaded

2017-01-18 Thread Jan Beulich
>>> On 18.01.17 at 11:37, wrote: > On Wed, Jan 18, 2017 at 03:19:49AM -0700, Jan Beulich wrote: >> >>> On 17.01.17 at 18:29, wrote: >> > --- a/xen/common/kexec.c >> > +++ b/xen/common/kexec.c >> > @@ -1169,6 +1169,22 @@ static int >> > kexec_unload(XEN_GUEST_HANDLE_PARAM(void) uarg) >> > re

Re: [Xen-devel] [PATCH v3] kexec: implement STATUS hypercall to check if image is loaded

2017-01-18 Thread Wei Liu
On Wed, Jan 18, 2017 at 03:45:54AM -0700, Jan Beulich wrote: > >>> On 18.01.17 at 11:37, wrote: > > On Wed, Jan 18, 2017 at 03:19:49AM -0700, Jan Beulich wrote: > >> >>> On 17.01.17 at 18:29, wrote: > >> > --- a/xen/common/kexec.c > >> > +++ b/xen/common/kexec.c > >> > @@ -1169,6 +1169,22 @@ stat

[Xen-devel] [xen-unstable-coverity test] 104248: all pass - PUSHED

2017-01-18 Thread osstest service owner
flight 104248 xen-unstable-coverity real [real] http://logs.test-lab.xenproject.org/osstest/logs/104248/ Perfect :-) All tests in this flight passed as required version targeted for testing: xen ac94372254232a3ba0ecbb5ae8034cbcc0eeac00 baseline version: xen ffc1

Re: [Xen-devel] [PATCH RESEND] tools/libxl: add support for emulated NVMe drives

2017-01-18 Thread Paul Durrant
> -Original Message- > From: Wei Liu [mailto:wei.l...@citrix.com] > Sent: 18 January 2017 10:29 > To: Paul Durrant > Cc: xen-de...@lists.xenproject.org; Ian Jackson ; > Wei Liu > Subject: Re: [PATCH RESEND] tools/libxl: add support for emulated NVMe > drives > > On Fri, Jan 13, 2017 at 0

[Xen-devel] [ovmf test] 104239: all pass - PUSHED

2017-01-18 Thread osstest service owner
flight 104239 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/104239/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 7be6e6776253d3638f03375e346e978228af5edb baseline version: ovmf 315d9d08fd77db1024ccc

Re: [Xen-devel] [RFC] Device memory mappings for Dom0 on ARM64 ACPI systems

2017-01-18 Thread Roger Pau Monné
On Tue, Jan 17, 2017 at 02:20:54PM -0800, Stefano Stabellini wrote: > a) One option is to provide a Xen specific implementation of > acpi_os_ioremap in Linux. I think this is the cleanest approach, but > unfortunately, it doesn't cover cases where ioremap is used directly. (2) > is one of such case

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-18 Thread Wei Liu
On Mon, Jan 16, 2017 at 05:47:15PM +0100, Juergen Gross wrote: > On 07/12/16 08:44, Juergen Gross wrote: > > Hi, > > > > today the XS_RESTRICT wire command of Xenstore is supported by > > oxenstored only to drop the privilege of a connection to that of the > > domid given as a parameter to the com

Re: [Xen-devel] [PATCH] xen: credit2: clear bit instead of skip step in runq_tickle()

2017-01-18 Thread Dario Faggioli
On Wed, 2017-01-18 at 03:30 -0700, Jan Beulich wrote: > > > > On 18.01.17 at 11:21, wrote: > > On 18/01/17 00:30, Dario Faggioli wrote: > > >  > > > --- a/xen/common/sched_credit2.c > > > +++ b/xen/common/sched_credit2.c > > > @@ -985,7 +985,7 @@ runq_tickle(const struct scheduler *ops, > > > stru

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-18 Thread Juergen Gross
On 18/01/17 12:03, Wei Liu wrote: > On Mon, Jan 16, 2017 at 05:47:15PM +0100, Juergen Gross wrote: >> On 07/12/16 08:44, Juergen Gross wrote: >>> Hi, >>> >>> today the XS_RESTRICT wire command of Xenstore is supported by >>> oxenstored only to drop the privilege of a connection to that of the >>> d

Re: [Xen-devel] [PATCH v7 02/14] xtensa: skip adding literal when SORT() is used

2017-01-18 Thread Borislav Petkov
On Sun, Jan 15, 2017 at 01:10:45PM -0800, Luis R. Rodriguez wrote: > When SORT(foo.*) is used the current sed replacements add > SORT(foo.literal foo.*), this breaks linking. Avoid adding > literals for SORT globs, if needed, these need to be added > manually. Please rewrite this commit message by

[Xen-devel] [seabios baseline-only test] 68387: trouble: blocked/broken

2017-01-18 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 68387 seabios real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/68387/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-xsm3

Re: [Xen-devel] [PATCH v2 1/2] swiotlb-xen: implement xen_swiotlb_dma_mmap callback

2017-01-18 Thread Andrii Anisov
Dear Stefano, > Only one suggestion more. For this to work correctly, we are assuming > that no foreging pages are involved here, which is a very reasonable > assumption given that mmap should be called on memory returned by > dma_alloc_coherent. I also kept in mind this problem, that's why the

[Xen-devel] [PATCH] xen/tools: tracing: credits can go negative, so use int.

2017-01-18 Thread Dario Faggioli
For Credit2, in both the trace records, inside Xen, and in their parsing, in xenalyze. In fact, as it is quite a bit better, in order to understand how much negative credits have gone for a certain vCPU, to see an actual negative number, as compared to a wrapped around unsigned! Signed-off-by: Da

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-18 Thread Wei Liu
On Wed, Jan 18, 2017 at 12:21:48PM +0100, Juergen Gross wrote: > On 18/01/17 12:03, Wei Liu wrote: > > On Mon, Jan 16, 2017 at 05:47:15PM +0100, Juergen Gross wrote: > >> On 07/12/16 08:44, Juergen Gross wrote: > >>> Hi, > >>> > >>> today the XS_RESTRICT wire command of Xenstore is supported by > >

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

2017-01-18 Thread osstest service owner
flight 104252 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/104252/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt 12 migrate-support-checkfail never pass test-armhf-armhf-xl 1

Re: [Xen-devel] Request for help: Help integrating Xen into Google oss-fuzz

2017-01-18 Thread Wei Liu
If anyone would like to work on this, please let me know. It would be such a pity that we couldn't make this happen. On Thu, Jan 05, 2017 at 03:59:45PM +, Wei Liu wrote: > Hi all > > Oss-fuzz [0] is a continuous fuzzing service for open source > software. During last release cycle we put in a

Re: [Xen-devel] PVH CPU hotplug design document

2017-01-18 Thread Roger Pau Monné
On Wed, Jan 18, 2017 at 03:44:19AM -0700, Jan Beulich wrote: > >>> On 18.01.17 at 11:34, wrote: > > On Tue, Jan 17, 2017 at 01:50:14PM -0500, Boris Ostrovsky wrote: > >> On 01/17/2017 12:45 PM, Roger Pau Monné wrote: > >> > On Tue, Jan 17, 2017 at 10:50:44AM -0500, Boris Ostrovsky wrote: > >> >> P

Re: [Xen-devel] [PATCH RESEND] tools/libxl: add support for emulated NVMe drives

2017-01-18 Thread Wei Liu
On Wed, Jan 18, 2017 at 10:51:50AM +, Paul Durrant wrote: > > -Original Message- > > From: Wei Liu [mailto:wei.l...@citrix.com] > > Sent: 18 January 2017 10:29 > > To: Paul Durrant > > Cc: xen-de...@lists.xenproject.org; Ian Jackson ; > > Wei Liu > > Subject: Re: [PATCH RESEND] tools/

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-18 Thread Juergen Gross
On 18/01/17 12:39, Wei Liu wrote: > On Wed, Jan 18, 2017 at 12:21:48PM +0100, Juergen Gross wrote: >> On 18/01/17 12:03, Wei Liu wrote: >>> On Mon, Jan 16, 2017 at 05:47:15PM +0100, Juergen Gross wrote: On 07/12/16 08:44, Juergen Gross wrote: > Hi, > > today the XS_RESTRICT wire co

Re: [Xen-devel] [PATCH RESEND] tools/libxl: add support for emulated NVMe drives

2017-01-18 Thread Paul Durrant
> -Original Message- > From: Wei Liu [mailto:wei.l...@citrix.com] > Sent: 18 January 2017 12:02 > To: Paul Durrant > Cc: Wei Liu ; xen-de...@lists.xenproject.org; Ian > Jackson > Subject: Re: [PATCH RESEND] tools/libxl: add support for emulated NVMe > drives > [snip] > > > > > > > > -

Re: [Xen-devel] [PATCH RESEND] tools/libxl: add support for emulated NVMe drives

2017-01-18 Thread Wei Liu
On Wed, Jan 18, 2017 at 12:15:22PM +, Paul Durrant wrote: > > -Original Message- > > From: Wei Liu [mailto:wei.l...@citrix.com] > > Sent: 18 January 2017 12:02 > > To: Paul Durrant > > Cc: Wei Liu ; xen-de...@lists.xenproject.org; Ian > > Jackson > > Subject: Re: [PATCH RESEND] tools/

Re: [Xen-devel] [PATCH v2 2/2] swiotlb-xen: implement xen_swiotlb_get_sgtable callback

2017-01-18 Thread Andrii Anisov
Stefano, About this piece: > > - if (__generic_dma_ops(dev)->get_sgtable) > + > + if (__generic_dma_ops(dev)->get_sgtable) { > + /* We can't handle foreign pages here. */ > +#ifdef CONFIG_ARM > + unsigned long bfn = dma_to_pfn(dev, handle); > +#else > +

[Xen-devel] [PATCH] tools/tests: add xenstore testing framework

2017-01-18 Thread Juergen Gross
Add tools/tests/xenstore for a framework to do tests of xenstore. The aim is to test for correctness and performance. Add a test program containing some tests meant to be run against any xenstore implementation (xenstored, oxenstored, xenstore-stubdom). It is using libxenstore for access to xenst

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-18 Thread Andrew Cooper
On 18/01/17 12:08, Juergen Gross wrote: > On 18/01/17 12:39, Wei Liu wrote: >> On Wed, Jan 18, 2017 at 12:21:48PM +0100, Juergen Gross wrote: >>> On 18/01/17 12:03, Wei Liu wrote: On Mon, Jan 16, 2017 at 05:47:15PM +0100, Juergen Gross wrote: > On 07/12/16 08:44, Juergen Gross wrote: >

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-18 Thread George Dunlap
On 18/01/17 12:37, Andrew Cooper wrote: > On 18/01/17 12:08, Juergen Gross wrote: >> On 18/01/17 12:39, Wei Liu wrote: >>> On Wed, Jan 18, 2017 at 12:21:48PM +0100, Juergen Gross wrote: On 18/01/17 12:03, Wei Liu wrote: > On Mon, Jan 16, 2017 at 05:47:15PM +0100, Juergen Gross wrote: >

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-18 Thread Juergen Gross
On 18/01/17 13:39, George Dunlap wrote: > On 18/01/17 12:37, Andrew Cooper wrote: >> On 18/01/17 12:08, Juergen Gross wrote: >>> On 18/01/17 12:39, Wei Liu wrote: On Wed, Jan 18, 2017 at 12:21:48PM +0100, Juergen Gross wrote: > On 18/01/17 12:03, Wei Liu wrote: >> On Mon, Jan 16, 2017

Re: [Xen-devel] [PATCH] tools/tests: add xenstore testing framework

2017-01-18 Thread Wei Liu
On Wed, Jan 18, 2017 at 01:33:48PM +0100, Juergen Gross wrote: > Add tools/tests/xenstore for a framework to do tests of xenstore. > The aim is to test for correctness and performance. > > Add a test program containing some tests meant to be run against any > xenstore implementation (xenstored, ox

Re: [Xen-devel] Xenstore domains and XS_RESTRICT

2017-01-18 Thread Wei Liu
On Wed, Jan 18, 2017 at 01:42:01PM +0100, Juergen Gross wrote: > On 18/01/17 13:39, George Dunlap wrote: > > On 18/01/17 12:37, Andrew Cooper wrote: > >> On 18/01/17 12:08, Juergen Gross wrote: > >>> On 18/01/17 12:39, Wei Liu wrote: > On Wed, Jan 18, 2017 at 12:21:48PM +0100, Juergen Gross wr

Re: [Xen-devel] [PATCH] tools/tests: add xenstore testing framework

2017-01-18 Thread Juergen Gross
On 18/01/17 13:41, Wei Liu wrote: > On Wed, Jan 18, 2017 at 01:33:48PM +0100, Juergen Gross wrote: >> Add tools/tests/xenstore for a framework to do tests of xenstore. >> The aim is to test for correctness and performance. >> >> Add a test program containing some tests meant to be run against any >

[Xen-devel] [PATCH v2 0/6] x86emul: support various ISA extensions

2017-01-18 Thread Jan Beulich
... plus, in the final patch, some cleanup. 1: support BMI1 insns 2: support BMI2 insns 3: support TBM insns 4: support RDRAND 5: support RDPID 6: rename the no_writeback label Signed-off-by: Jan Beulich ___ Xen-devel mailing list Xen-devel@lists.xe

[Xen-devel] XenGT GPU virtualization

2017-01-18 Thread bharat gohil
Hello I am new to GPU and GPU virtualization and found that xen support intel GPU virtualization using XenGT. I want to know, 1) What are the critical GPU command pass from xen to Dom0? 2) How the Dom0 mediator or xen validate the GPU command which is passed from domU GPU driver? 3) If one of the

Re: [Xen-devel] PVH CPU hotplug design document

2017-01-18 Thread Jan Beulich
>>> On 18.01.17 at 12:54, wrote: > So, would it be fine to start a PVH Dom0 with as many vCPUs as what's returned > from dom0_max_vcpus, and mark them as enabled in the MADT. That's basically > all > we need in order to match current PV Dom0 functionality? Yes, I think so. Jan ___

[Xen-devel] [PATCH v2 1/6] x86emul: support BMI1 insns

2017-01-18 Thread Jan Beulich
Signed-off-by: Jan Beulich --- v2: Introduce decode_vex_gpr(). --- a/tools/tests/x86_emulator/test_x86_emulator.c +++ b/tools/tests/x86_emulator/test_x86_emulator.c @@ -892,6 +892,133 @@ int main(int argc, char **argv) #define check_eip(which) (regs.eip == (unsigned long)(which) + \

[Xen-devel] [PATCH v2 2/6] x86emul: support BMI2 insns

2017-01-18 Thread Jan Beulich
Note that the adjustment to the mode_64bit() definition is so that we can avoid "#ifdef __x86_64__" around the 64-bit asm() portions. An alternative would be single asm()s with a conditional branch over the (manually encoded) REX64 prefix. Note that RORX raising #UD when VEX. is not all ones i

[Xen-devel] [PATCH v2 3/6] x86emul: support TBM insns

2017-01-18 Thread Jan Beulich
Signed-off-by: Jan Beulich --- v2: Use decode_vex_gpr(). Introduce X86EMUL_OPC_XOP*(). --- a/tools/tests/x86_emulator/test_x86_emulator.c +++ b/tools/tests/x86_emulator/test_x86_emulator.c @@ -1244,6 +1244,234 @@ int main(int argc, char **argv) printf("okay\n"); } +printf("%-4

[Xen-devel] [PATCH v2 5/6] x86emul: support RDPID

2017-01-18 Thread Jan Beulich
Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper --- a/tools/tests/x86_emulator/test_x86_emulator.c +++ b/tools/tests/x86_emulator/test_x86_emulator.c @@ -158,6 +158,11 @@ static int read_msr( case 0xc080: /* EFER */ *val = ctxt->addr_size > 32 ? 0x500 /* LME|LMA */ : 0;

[Xen-devel] [PATCH v2 4/6] x86emul: support RDRAND

2017-01-18 Thread Jan Beulich
Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper --- v2: One style correction. --- a/xen/arch/x86/Rules.mk +++ b/xen/arch/x86/Rules.mk @@ -14,7 +14,9 @@ $(call cc-option-add,CFLAGS,CC,-Wnested- $(call as-insn-check,CFLAGS,CC,"vmcall",-DHAVE_GAS_VMX) $(call as-insn-check,CFLAGS,CC,"crc32 %

Re: [Xen-devel] [PATCH v3 5/5] fix: add multiboot2 protocol support for EFI platforms

2017-01-18 Thread Doug Goldstein
On 1/18/17 4:52 AM, Jan Beulich wrote: On 17.01.17 at 21:07, wrote: >> --- a/xen/arch/x86/boot/head.S >> +++ b/xen/arch/x86/boot/head.S >> @@ -519,6 +519,7 @@ trampoline_setup: >> 1: >> /* Switch to low-memory stack. */ >> mov sym_phys(trampoline_phys),%edi >> +

Re: [Xen-devel] [PATCH v2 1/6] x86emul: support BMI1 insns

2017-01-18 Thread Andrew Cooper
On 18/01/17 13:30, Jan Beulich wrote: > Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

[Xen-devel] [PATCH v2 6/6] x86emul: rename the no_writeback label

2017-01-18 Thread Jan Beulich
This is to bring its name in line with what actually happens there. Suggested-by: Andrew Cooper Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper --- a/xen/arch/x86/x86_emulate/x86_emulate.c +++ b/xen/arch/x86/x86_emulate/x86_emulate.c @@ -986,7 +986,7 @@ static inline void put_loop_count(

Re: [Xen-devel] PVH CPU hotplug design document

2017-01-18 Thread Boris Ostrovsky
On 01/18/2017 06:54 AM, Roger Pau Monné wrote: > On Wed, Jan 18, 2017 at 03:44:19AM -0700, Jan Beulich wrote: > On 18.01.17 at 11:34, wrote: >>> On Tue, Jan 17, 2017 at 01:50:14PM -0500, Boris Ostrovsky wrote: On 01/17/2017 12:45 PM, Roger Pau Monné wrote: > On Tue, Jan 17, 2017 at 10

Re: [Xen-devel] PV audio drivers for Linux

2017-01-18 Thread Oleksandr Andrushchenko
On 01/18/2017 06:31 AM, Ughreja, Rakesh A wrote: -Original Message- From: Stefano Stabellini [mailto:sstabell...@kernel.org] Sent: Wednesday, January 18, 2017 5:41 AM To: Ughreja, Rakesh A Cc: xen-devel@lists.xen.org; oleksandr_andrushche...@epam.com; oleksandr_gryt...@epam.com; oleksa

Re: [Xen-devel] [PATCH v2 2/6] x86emul: support BMI2 insns

2017-01-18 Thread Andrew Cooper
On 18/01/17 13:31, Jan Beulich wrote: > Note that the adjustment to the mode_64bit() definition is so that we > can avoid "#ifdef __x86_64__" around the 64-bit asm() portions. An > alternative would be single asm()s with a conditional branch over the > (manually encoded) REX64 prefix. > > Note that

Re: [Xen-devel] [PATCH v2 3/6] x86emul: support TBM insns

2017-01-18 Thread Andrew Cooper
On 18/01/17 13:32, Jan Beulich wrote: > Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v3 5/5] fix: add multiboot2 protocol support for EFI platforms

2017-01-18 Thread Jan Beulich
>>> On 18.01.17 at 14:33, wrote: > On 1/18/17 4:52 AM, Jan Beulich wrote: > On 17.01.17 at 21:07, wrote: >>> --- a/xen/arch/x86/boot/head.S >>> +++ b/xen/arch/x86/boot/head.S >>> @@ -519,6 +519,7 @@ trampoline_setup: >>> 1: >>> /* Switch to low-memory stack. */ >>> mov

Re: [Xen-devel] [PATCH v3 5/5] fix: add multiboot2 protocol support for EFI platforms

2017-01-18 Thread Doug Goldstein
On 1/18/17 8:41 AM, Jan Beulich wrote: On 18.01.17 at 14:33, wrote: >> On 1/18/17 4:52 AM, Jan Beulich wrote: >> On 17.01.17 at 21:07, wrote: @@ -686,6 +683,10 @@ paddr_t __init efi_multiboot2(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTa setup_efi_pci();

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

2017-01-18 Thread osstest service owner
flight 104236 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/104236/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-libvirt 7 host-ping-check-xen fail REGR. vs. 104223 Regressions which

Re: [Xen-devel] [PATCH] tools/tests: add xenstore testing framework

2017-01-18 Thread Juergen Gross
On 18/01/17 13:33, Juergen Gross wrote: > Add tools/tests/xenstore for a framework to do tests of xenstore. > The aim is to test for correctness and performance. > > Add a test program containing some tests meant to be run against any > xenstore implementation (xenstored, oxenstored, xenstore-stub

[Xen-devel] [PATCH v4 0/5] multiboot2 protocol support

2017-01-18 Thread Doug Goldstein
This is a series based on v11 of Daniel Kiper's "x86: multiboot2 protocol support" series. It aims to collect up all the fixes and changes that Andrew Cooper, Jan Beulich and myself discovered in code review and testing on actual hardware. I've had problems with the relocation portion of the series

[Xen-devel] [PATCH v4 1/5] x86: add multiboot2 protocol support

2017-01-18 Thread Doug Goldstein
From: Daniel Kiper Add multiboot2 protocol support. Alter min memory limit handling as we now may not find it from either multiboot (v1) or multiboot2. This way we are laying the foundation for EFI + GRUB2 + Xen development. Signed-off-by: Daniel Kiper Reviewed-by: Jan Beulich Reviewed-by: Do

[Xen-devel] [PATCH v4 2/5] efi: build xen.gz with EFI code

2017-01-18 Thread Doug Goldstein
From: Daniel Kiper Build xen.gz with EFI code. We need this to support multiboot2 protocol on EFI platforms. If we wish to load non-ELF file using multiboot (v1) or multiboot2 then it must contain "linear" (or "flat") representation of code and data. This is requirement of both boot protocols. C

[Xen-devel] [PATCH v4 3/5] efi: create new early memory allocator

2017-01-18 Thread Doug Goldstein
From: Daniel Kiper There is a problem with place_string() which is used as early memory allocator. It gets memory chunks starting from start symbol and goes down. Sadly this does not work when Xen is loaded using multiboot2 protocol because then the start lives on 1 MiB address and we should not

[Xen-devel] [PATCH v4 5/5] fix: add multiboot2 protocol support for EFI platforms

2017-01-18 Thread Doug Goldstein
This should be squashed into the 4/4 patch 'x86: add multiboot2 protocol support for EFI platforms'. - fix incorrect assembly (identified by Andrew Cooper) - fix issue where the trampoline size was left as 0 and the way the memory is allocated for the trampolines we would go to the end of an a

[Xen-devel] [PATCH v4 4/5] x86: add multiboot2 protocol support for EFI platforms

2017-01-18 Thread Doug Goldstein
From: Daniel Kiper This way Xen can be loaded on EFI platforms using GRUB2 and other boot loaders which support multiboot2 protocol. Signed-off-by: Daniel Kiper Reviewed-by: Doug Goldstein Tested-by: Doug Goldstein --- Doug v2 - dropped all my changes and moved them into their own patch Doug

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

2017-01-18 Thread osstest service owner
flight 104254 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/104254/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64 5 xen-buildfail REGR. vs. 104239 build-amd64-xsm

[Xen-devel] [PATCH v2] x86emul: simplify prefix handling for VMFUNC

2017-01-18 Thread Jan Beulich
LOCK prefixes get dealt with elsewhere, and 66, F2, and F3 can all be checked for in one go by looking at vex.pfx. Signed-off-by: Jan Beulich --- v2: Retain explicit generation of #UD. --- Note: The SDM doesn't indicate 66, F2, and F3 to be invalid; Intel meanwhile half-way indicated the SD

Re: [Xen-devel] [PATCH] tools/tests: add xenstore testing framework

2017-01-18 Thread Wei Liu
On Wed, Jan 18, 2017 at 01:47:17PM +0100, Juergen Gross wrote: > On 18/01/17 13:41, Wei Liu wrote: > > On Wed, Jan 18, 2017 at 01:33:48PM +0100, Juergen Gross wrote: > >> Add tools/tests/xenstore for a framework to do tests of xenstore. > >> The aim is to test for correctness and performance. > >>

Re: [Xen-devel] [PATCH v2] x86emul: simplify prefix handling for VMFUNC

2017-01-18 Thread Andrew Cooper
On 18/01/17 14:48, Jan Beulich wrote: > LOCK prefixes get dealt with elsewhere, and 66, F2, and F3 can all be > checked for in one go by looking at vex.pfx. > > Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper ___ Xen-devel mailing list Xen-devel

Re: [Xen-devel] [PATCH v4 5/5] fix: add multiboot2 protocol support for EFI platforms

2017-01-18 Thread Jan Beulich
>>> On 18.01.17 at 15:17, wrote: > This should be squashed into the 4/4 patch 'x86: add multiboot2 protocol > support for EFI platforms'. > > - fix incorrect assembly (identified by Andrew Cooper) > - fix issue where the trampoline size was left as 0 and the > way the memory is allocated for th

Re: [Xen-devel] [PATCH] tools/tests: add xenstore testing framework

2017-01-18 Thread Juergen Gross
On 18/01/17 15:47, Wei Liu wrote: > On Wed, Jan 18, 2017 at 01:47:17PM +0100, Juergen Gross wrote: >> On 18/01/17 13:41, Wei Liu wrote: >>> On Wed, Jan 18, 2017 at 01:33:48PM +0100, Juergen Gross wrote: Add tools/tests/xenstore for a framework to do tests of xenstore. The aim is to test f

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

2017-01-18 Thread osstest service owner
flight 104237 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/104237/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemut-win7-amd64 6 xen-boot fail REGR. vs. 59254 test-amd64-i386-qem

Re: [Xen-devel] [PATCH RESEND] tools/libxl: add support for emulated NVMe drives

2017-01-18 Thread Wei Liu
On Wed, Jan 18, 2017 at 12:20:07PM +, Wei Liu wrote: > On Wed, Jan 18, 2017 at 12:15:22PM +, Paul Durrant wrote: > > > -Original Message- > > > From: Wei Liu [mailto:wei.l...@citrix.com] > > > Sent: 18 January 2017 12:02 > > > To: Paul Durrant > > > Cc: Wei Liu ; xen-de...@lists.xe

Re: [Xen-devel] [PATCH] tools/tests: add xenstore testing framework

2017-01-18 Thread Juergen Gross
On 18/01/17 13:33, Juergen Gross wrote: > Add tools/tests/xenstore for a framework to do tests of xenstore. > The aim is to test for correctness and performance. > > Add a test program containing some tests meant to be run against any > xenstore implementation (xenstored, oxenstored, xenstore-stub

Re: [Xen-devel] [PATCH] tools/tests: add xenstore testing framework

2017-01-18 Thread Wei Liu
On Wed, Jan 18, 2017 at 04:16:22PM +0100, Juergen Gross wrote: > On 18/01/17 13:33, Juergen Gross wrote: > > Add tools/tests/xenstore for a framework to do tests of xenstore. > > The aim is to test for correctness and performance. > > > > Add a test program containing some tests meant to be run ag

[Xen-devel] [PATCH] x86/PV: restrict permitted instructions during memory write emulation

2017-01-18 Thread Jan Beulich
All three code paths mean to only emulate memory writes. Refuse emulation of any other instructions there. Signed-off-by: Jan Beulich --- This would effectively allow us to revert 0e47f92b07 ("x86: force EFLAGS.IF on when exiting to PV guests"). --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@

Re: [Xen-devel] PV audio drivers for Linux

2017-01-18 Thread Ughreja, Rakesh A
>-Original Message- >From: Jan Beulich [mailto:jbeul...@suse.com] >Sent: Wednesday, January 18, 2017 3:39 PM >To: Ughreja, Rakesh A >Cc: xen-devel@lists.xen.org >Subject: Re: [Xen-devel] PV audio drivers for Linux > On 17.01.17 at 19:01, wrote: >> When the buffer is allocated using

Re: [Xen-devel] [PATCH] xen/common: Drop function calls for Xen compile/version information

2017-01-18 Thread Konrad Rzeszutek Wilk
On Wed, Jan 18, 2017 at 10:13:34AM +, Roger Pau Monné wrote: > On Tue, Jan 17, 2017 at 03:46:30PM -0500, Konrad Rzeszutek Wilk wrote: > > > > Is this patch of yours that neccessary? Could at least some of the > > > > functions still exist? > > > > > > Well. This patch is manually doing what L

[Xen-devel] [PATCH v2 2/6] qdict: Add convenience helpers for wrapped puts

2017-01-18 Thread Eric Blake
Quite a few users of qdict_put() were manually wrapping a non-QObject. We can make such call-sites shorter, by providing common macros to do the tedious work. Also shorten nearby qdict_put_obj(,,QOBJECT()) sequences. Signed-off-by: Eric Blake Reviewed-by: Alberto Garcia --- v2: rebase to curr

[Xen-devel] Is: EPT violations. Was:Re: Problems with pci/vga passthrough

2017-01-18 Thread Konrad Rzeszutek Wilk
On Wed, Jan 18, 2017 at 02:37:16AM +0100, Diederik de Haas wrote: > Hi! > > I reported/discussed this earlier on IRC, but was asked to report it here too. > > The goal I tried to accomplish was getting vga passthrough working to get > hardware acceleration and OpenGL 2+ working for a vm containi

Re: [Xen-devel] [PATCH] xen/common: Drop function calls for Xen compile/version information

2017-01-18 Thread Roger Pau Monné
On Wed, Jan 18, 2017 at 11:10:40AM -0500, Konrad Rzeszutek Wilk wrote: > On Wed, Jan 18, 2017 at 10:13:34AM +, Roger Pau Monné wrote: > > On Tue, Jan 17, 2017 at 03:46:30PM -0500, Konrad Rzeszutek Wilk wrote: > > > > > Is this patch of yours that neccessary? Could at least some of the > > > > >

  1   2   3   >