[Xen-devel] [PATCH v2 2/2] Add new data structure to track ranges.

2015-07-06 Thread Yu Zhang
This patch introduces a new data structure, struct rb_rangeset, to represent a group of continuous ranges, e.g. the start and end addresses for PIO/MMIO regions. By now, this structure is supposed to assist ioreq server to forward the I/O request to backend device models more efficiently. Behavior

[Xen-devel] [PATCH v2 0/2] Refactor ioreq server for better performance.

2015-07-06 Thread Yu Zhang
XenGT leverages ioreq server to track and forward the accesses to GPU I/O resources, e.g. the PPGTT(per-process graphic translation tables). Currently, ioreq server uses rangeset to track the BDF/ PIO/MMIO ranges to be emulated. To select an ioreq server, the rangeset is searched to see if the I/O

[Xen-devel] [PATCH v2 1/2] Resize the MAX_NR_IO_RANGES for ioreq server

2015-07-06 Thread Yu Zhang
MAX_NR_IO_RANGES is used by ioreq server as the maximum number of discrete ranges to be tracked. This patch changes its value to 8k, so that more ranges can be tracked on next generation of Intel platforms in XenGT. Future patches can extend the limit to be toolstack tunable, and MAX_NR_IO_RANGES c

[Xen-devel] [rumpuserxen test] 59087: regressions - FAIL

2015-07-06 Thread osstest service owner
flight 59087 rumpuserxen real [real] http://logs.test-lab.xenproject.org/osstest/logs/59087/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-rumpuserxen 5 rumpuserxen-build fail REGR. vs. 33866 build-i386-rumpuserxe

Re: [Xen-devel] [PATCH 0/2] Refactor ioreq server for better performance.

2015-07-06 Thread Yu, Zhang
A new patchset with v2 prefix and change log was just sent out. So please ignore this thread, and sorry for the inconvenience. :) Yu On 7/2/2015 11:07 PM, Yu, Zhang wrote: Oh, I forgot the version number and change history. This patchset should be version 2. The change history should be: 1> Sp

[Xen-devel] Performance problem about address translation

2015-07-06 Thread xinyue
Hi,     For I want to translate the virtual address in HVM DomU to virtual address in Xen. But when I use the function paging_gva_to_gfn and get_gfn, I can feel the performance down quickly, the machine become very hot and then I have to force the machine shutting down. The codes I used as bel

Re: [Xen-devel] Performance problem about address translation

2015-07-06 Thread Andrew Cooper
On 06/07/2015 08:22, xinyue wrote: > Hi, > > For I want to translate the virtual address in HVM DomU to virtual > address in Xen. But when I use the function paging_gva_to_gfn and > get_gfn, I can feel the performance down quickly, the machine become > very hot and then I have to force the mach

[Xen-devel] BUG: unable to handle kernel NULL pointer in __netdev_pick_tx()

2015-07-06 Thread Bob Liu
Hi, I tried to run the latest kernel v4.2-rc1, but often got below panic during system boot. [ 42.118983] BUG: unable to handle kernel paging request at 003f [ 42.119008] IP: [] __netdev_pick_tx+0x70/0x120 [ 42.119023] PGD 0 [ 42.119026] Oops: [#1] PREEMPT SMP [ 42.1

Re: [Xen-devel] [linux-3.18 test] 59041: regressions - trouble: blocked/broken/fail/pass

2015-07-06 Thread Ian Campbell
On Fri, 2015-07-03 at 22:21 +, osstest service owner wrote: > build-armhf-xsm 4 host-build-prep fail REGR. vs. > 58581 A strange one I think. ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-de

Re: [Xen-devel] [linux-3.18 test] 59041: regressions - trouble: blocked/broken/fail/pass

2015-07-06 Thread Ian Campbell
oops, that's not the button I wanted On Mon, 2015-07-06 at 09:27 +0100, Ian Campbell wrote: > On Fri, 2015-07-03 at 22:21 +, osstest service owner wrote: > > > build-armhf-xsm 4 host-build-prep fail REGR. vs. > > 58581 > > A strange one I think. As I was going

Re: [Xen-devel] [linux-3.18 test] 59041: regressions - trouble: blocked/broken/fail/pass

2015-07-06 Thread Ian Campbell
On Fri, 2015-07-03 at 22:21 +, osstest service owner wrote: > flight 59041 linux-3.18 real [real] > http://logs.test-lab.xenproject.org/osstest/logs/59041/ > > Regressions :-( > > Tests which did not succeed and are blocking, > including tests which could not be run: > test-amd64-amd64-xl-pv

Re: [Xen-devel] [ovmf test] 59044: trouble: blocked/broken/fail/pass

2015-07-06 Thread Ian Campbell
On Fri, 2015-07-03 at 22:40 +, osstest service owner wrote: > flight 59044 ovmf real [real] > http://logs.test-lab.xenproject.org/osstest/logs/59044/ > > Failures and problems with tests :-( > > Tests which did not succeed and are blocking, > including tests which could not be run: > build-i

Re: [Xen-devel] Performance problem about address translation

2015-07-06 Thread Andrew Cooper
On 06/07/2015 08:58, xinyue wrote: > > > > 在 2015-07-06, Mon, 15:44:53 ,Andrew Cooper 写到: > On 06/07/2015 08:22, xinyue wrote: >> >> Hi, >> >> For I want to translate the virtual address in HVM DomU to >> virtual address in Xen. But when I use the function paging_gva_to_gfn >> and get_gfn, I ca

Re: [Xen-devel] Mapping Dom0 page in hypervisor from domctl

2015-07-06 Thread Ian Campbell
On Thu, 2015-07-02 at 08:14 -0400, Bread Cutter wrote: > Any insight into what I'm doing wrong would be appreciated! I'm afraid I don't have any, but perhaps you want to be looking into either share_xen_page_with_guest or share_xen_page_with_privileged_guests and either using them directly or comp

Re: [Xen-devel] PCI Pass-through in Xen ARM - Draft 2

2015-07-06 Thread Ian Campbell
On Sun, 2015-07-05 at 11:37 +0530, Manish Jaggi wrote: > >Ian Campbell Wrote: > >>On Mon, 2015-06-29 at 00:08 +0530, Manish Jaggi wrote: > >> PCI Pass-through in Xen ARM > >> -- > >> > >> Draft 2 > >> > >> Index > >> > >> 1. Background > >> > >> 2. Basic PCI Support in Xen A

Re: [Xen-devel] PCI Pass-through in Xen ARM - Draft 2.

2015-07-06 Thread Ian Campbell
On Sun, 2015-07-05 at 11:25 +0530, Manish Jaggi wrote: > > On Monday 29 June 2015 04:01 PM, Julien Grall wrote: > > Hi Manish, > > > > On 28/06/15 19:38, Manish Jaggi wrote: > >> 4.1 Holes in guest memory space > >> > >> Holes are added in the guest memory space for ma

Re: [Xen-devel] traps.c:3227: GPF (0000): ffff82d080194a4d -> ffff82d080239d85 and other dom0 induced log messages

2015-07-06 Thread Jan Beulich
>>> On 29.06.15 at 16:01, wrote: > On 26/06/15 16:51, Jan Beulich wrote: > On 26.06.15 at 17:41, wrote: >>> from 3.16 to 3.19 we gained a lot of these, if i remember correctly >>> related to >>> perf being enabled in the kernel: >>> >>> + traps.c:2655:d0v0 Domain attempted WRMSR c0

Re: [Xen-devel] Problems with merlot* AMD Opteron 6376 systems (Was Re: stable trees

2015-07-06 Thread Jan Beulich
>>> On 29.06.15 at 15:13, wrote: > On 06/29/2015 06:23 AM, Ian Campbell wrote: >> On Fri, 2015-06-26 at 21:07 +0100, Ian Campbell wrote: >>> On Fri, 2015-06-26 at 15:36 -0400, Boris Ostrovsky wrote: Just to make sure, could you use explicit address, i.e. for i in $(seq 0 31) ;

Re: [Xen-devel] [PATCH v2] libxl: Make local_initiate_attach more rational

2015-07-06 Thread George Dunlap
On 07/03/2015 03:28 PM, Ian Campbell wrote: > On Thu, 2015-07-02 at 19:55 +0200, Roger Pau Monné wrote: >> El 02/07/15 a les 19.42, George Dunlap ha escrit: >>> There are a lot of paths through >>> libxl__device_disk_local_initiate_attach(), but they all really boil >>> down to one thing: Can we ju

Re: [Xen-devel] Mapping Dom0 page in hypervisor from domctl

2015-07-06 Thread Tim Deegan
Hi, At 08:14 -0400 on 02 Jul (1435824854), Bread Cutter wrote: > /* Translate the given virtual address to the guest frame number > */ > gfn = paging_gva_to_gfn(current, domctl->va, &pfec); This function only works for domains that have paging assistance enabled (i.e. not

Re: [Xen-devel] [PATCH v3 00/12] Alternate p2m: support multiple copies of host p2m

2015-07-06 Thread Jan Beulich
>>> On 01.07.15 at 20:09, wrote: > Changes since v2: > > Addressed all v2 feedback *except*: > > In patch 5, the per-domain EPTP list page is still allocated from the > Xen heap. If allocated from the domain heap Xen panics - IIRC on Haswell > hardware when walking the EPTP list duri

Re: [Xen-devel] [PATCH v3 05/13] x86/altp2m: basic data structures and support routines.

2015-07-06 Thread Jan Beulich
>>> On 03.07.15 at 18:22, wrote: > On 01/07/15 19:09, Ed White wrote: >> Add the basic data structures needed to support alternate p2m's and >> the functions to initialise them and tear them down. >> >> Although Intel hardware can handle 512 EPTP's per hardware thread >> concurrently, only 10 per

[Xen-devel] [RESEND PATCH] xen/blkfront: convert to blk-mq APIs

2015-07-06 Thread Bob Liu
From: Arianna Avanzini This patch converts xen-blkfront driver to use the block multiqueue APIs. Only one hardware queue is used now, so there is no performance change. The legacy non-mq code was deleted completely which is the same as other drivers like virtio, mtip, and nvme. Also dropped unn

Re: [Xen-devel] [PATCH] net/bridge: Add missing in6_dev_put in br_validate_ipv6

2015-07-06 Thread Bob Liu
On 07/04/2015 02:01 AM, Julien Grall wrote: > The commit efb6de9b4ba0092b2c55f6a52d16294a8a698edd "netfilter: bridge: > forward IPv6 fragmented packets" introduced a new function > br_validate_ipv6 which take a reference on the inet6 device. Although, > the reference is not released at the end. >

Re: [Xen-devel] Migration bug added by commit 2df1aa01bef7366798248ac6d03cfb42048b003d

2015-07-06 Thread Jan Beulich
>>> On 29.06.15 at 17:14, wrote: > On 06/29/15 10:03, Paul Durrant wrote: >> I think this patch should do it for now: >> >> diff --git a/xen/arch/x86/hvm/emulate.c b/xen/arch/x86/hvm/emulate.c >> index a4d7225..cc6130c 100644 >> --- a/xen/arch/x86/hvm/emulate.c >> +++ b/xen/arch/x86/hvm/emulate.c

Re: [Xen-devel] PCI Pass-through in Xen ARM - Draft 2.

2015-07-06 Thread Manish Jaggi
On Monday 06 July 2015 02:41 PM, Ian Campbell wrote: On Sun, 2015-07-05 at 11:25 +0530, Manish Jaggi wrote: On Monday 29 June 2015 04:01 PM, Julien Grall wrote: Hi Manish, On 28/06/15 19:38, Manish Jaggi wrote: 4.1 Holes in guest memory space Holes are added in

Re: [Xen-devel] Migration bug added by commit 2df1aa01bef7366798248ac6d03cfb42048b003d

2015-07-06 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 06 July 2015 11:03 > To: Don Slutz > Cc: Paul Durrant; xen-devel@lists.xen.org > Subject: Re: [Xen-devel] Migration bug added by commit > 2df1aa01bef7366798248ac6d03cfb42048b003d > > >>> On 29.06.15 at 17:14, wrot

Re: [Xen-devel] [PATCH v3 11/13] x86/altp2m: define and implement alternate p2m HVMOP types.

2015-07-06 Thread Andrew Cooper
On 01/07/15 19:09, Ed White wrote: > Signed-off-by: Ed White I am still very much unconvinced by the argument against having a single HVMOP_altp2m and a set of subops. do_domctl() and do_sysctl() are examples of a subop style hypercall with different XSM settings for different subops. Furthermo

Re: [Xen-devel] Migration bug added by commit 2df1aa01bef7366798248ac6d03cfb42048b003d

2015-07-06 Thread Jan Beulich
>>> On 06.07.15 at 12:08, wrote: >> -Original Message- >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: 06 July 2015 11:03 >> To: Don Slutz >> Cc: Paul Durrant; xen-devel@lists.xen.org >> Subject: Re: [Xen-devel] Migration bug added by commit >> 2df1aa01bef7366798248ac6d03cfb4204

Re: [Xen-devel] [linux-3.18 test] 59041: regressions - trouble: blocked/broken/fail/pass

2015-07-06 Thread Ian Jackson
Ian Campbell writes ("Re: [Xen-devel] [linux-3.18 test] 59041: regressions - trouble: blocked/broken/fail/pass"): > On Fri, 2015-07-03 at 22:21 +, osstest service owner wrote: > > > build-armhf-xsm 4 host-build-prep fail REGR. vs. > > 58581 > > A strange one I think

Re: [Xen-devel] [PATCH v3 12/13] x86/altp2m: Add altp2mhvm HVM domain parameter.

2015-07-06 Thread Andrew Cooper
On 01/07/15 19:09, Ed White wrote: > --- a/xen/include/public/hvm/params.h > +++ b/xen/include/public/hvm/params.h > @@ -187,6 +187,9 @@ > /* Location of the VM Generation ID in guest physical address space. */ > #define HVM_PARAM_VM_GENERATION_ID_ADDR 34 > > -#define HVM_NR_PARAMS 35

Re: [Xen-devel] Migration bug added by commit 2df1aa01bef7366798248ac6d03cfb42048b003d

2015-07-06 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 06 July 2015 11:14 > To: Paul Durrant > Cc: Don Slutz; xen-devel@lists.xen.org > Subject: RE: [Xen-devel] Migration bug added by commit > 2df1aa01bef7366798248ac6d03cfb42048b003d > > >>> On 06.07.15 at 12:08, wrot

Re: [Xen-devel] Xen-unstable: pci-passthrough of device using MSI-X interrupts not working after commit x86/MSI: track host and guest masking separately

2015-07-06 Thread Jan Beulich
>>> On 29.06.15 at 13:46, wrote: > On Fri, 26 Jun 2015, Jan Beulich wrote: >> >>> On 26.06.15 at 17:04, wrote: >> On 26.06.15 at 15:38, wrote: >> >> On 2015-06-26 14:41, Jan Beulich wrote: >> >> On 26.06.15 at 13:02, wrote: >> Strange, i don't see *any* of your printk's being hit

Re: [Xen-devel] PCI Pass-through in Xen ARM - Draft 2.

2015-07-06 Thread Ian Campbell
On Mon, 2015-07-06 at 15:36 +0530, Manish Jaggi wrote: > > On Monday 06 July 2015 02:41 PM, Ian Campbell wrote: > > On Sun, 2015-07-05 at 11:25 +0530, Manish Jaggi wrote: > >> On Monday 29 June 2015 04:01 PM, Julien Grall wrote: > >>> Hi Manish, > >>> > >>> On 28/06/15 19:38, Manish Jaggi wrote: >

Re: [Xen-devel] [PATCH V2 2/3] xen/vm_event: Support for guest-requested events

2015-07-06 Thread Jan Beulich
>>> On 30.06.15 at 16:48, wrote: >> > --- a/xen/include/asm-x86/domain.h > >> >> +++ b/xen/include/asm-x86/domain.h >> >> @@ -342,13 +342,15 @@ struct arch_domain >> >> >> >> /* Monitor options */ >> >> struct { >> >> -uint16_t write_ctrlreg_enabled : 4; >> >> -uin

Re: [Xen-devel] [PATCH V2 2/3] xen/vm_event: Support for guest-requested events

2015-07-06 Thread Jan Beulich
>>> On 30.06.15 at 16:23, wrote: > On 06/26/2015 10:02 AM, Jan Beulich wrote: > On 15.06.15 at 11:03, wrote: >>> Added support for a new class of vm_events: VM_EVENT_REASON_REQUEST, >>> sent via HVMOP_request_vm_event. The guest can request that a >>> generic vm_event (containing only the vm_

Re: [Xen-devel] [ovmf test] 59044: trouble: blocked/broken/fail/pass

2015-07-06 Thread Ian Jackson
Ian Campbell writes ("Re: [Xen-devel] [ovmf test] 59044: trouble: blocked/broken/fail/pass"): > Seems to be Osstest/JobDB/Executive.pm line 137: > die Dumper($ho)." ?" if $ho->{SharedOthers} && ! > $ho->{SharedReady}; > So another sharing related glitch, like the linux-3.18 flight

Re: [Xen-devel] [linux-3.18 test] 59041: regressions - trouble: blocked/broken/fail/pass

2015-07-06 Thread Ian Campbell
On Mon, 2015-07-06 at 11:16 +0100, Ian Jackson wrote: > Ian Campbell writes ("Re: [Xen-devel] [linux-3.18 test] 59041: regressions - > trouble: blocked/broken/fail/pass"): > > On Fri, 2015-07-03 at 22:21 +, osstest service owner wrote: > > > > > build-armhf-xsm 4 host-build-pre

Re: [Xen-devel] [v4][PATCH 04/19] xen/passthrough: extend hypercall to support rdm reservation policy

2015-07-06 Thread Jan Beulich
>>> On 01.07.15 at 12:47, wrote: > On 2015/7/1 18:02, George Dunlap wrote: >> On 07/01/2015 02:11 AM, Chen, Tiejun wrote: >>> /* XEN_DOMCTL_createdomain */ >>> struct xen_domctl_createdomain { >>> /* IN parameters */ >>> uint32_t ssidref; >>> xen_domain_handle_t handle; >>> /* Is

Re: [Xen-devel] [ovmf test] 59044: trouble: blocked/broken/fail/pass

2015-07-06 Thread Ian Campbell
On Mon, 2015-07-06 at 11:30 +0100, Ian Jackson wrote: > Ian Campbell writes ("Re: [Xen-devel] [ovmf test] 59044: trouble: > blocked/broken/fail/pass"): > > Seems to be Osstest/JobDB/Executive.pm line 137: > > die Dumper($ho)." ?" if $ho->{SharedOthers} && ! > > $ho->{SharedReady};

Re: [Xen-devel] [PATCH] net/bridge: Add missing in6_dev_put in br_validate_ipv6

2015-07-06 Thread Julien Grall
Hi, On 03/07/15 21:42, Florian Westphal wrote: > Julien Grall wrote: >> The commit efb6de9b4ba0092b2c55f6a52d16294a8a698edd "netfilter: bridge: >> forward IPv6 fragmented packets" introduced a new function >> br_validate_ipv6 which take a reference on the inet6 device. Although, >> the reference

Re: [Xen-devel] BUG: unable to handle kernel NULL pointer in __netdev_pick_tx()

2015-07-06 Thread Eric Dumazet
On Mon, 2015-07-06 at 16:26 +0800, Bob Liu wrote: > Hi, > > I tried to run the latest kernel v4.2-rc1, but often got below panic during > system boot. > > [ 42.118983] BUG: unable to handle kernel paging request at 003f > [ 42.119008] IP: [] __netdev_pick_tx+0x70/0x120 > [ 42.1

Re: [Xen-devel] PCI Pass-through in Xen ARM - Draft 2.

2015-07-06 Thread Julien Grall
On 05/07/15 06:55, Manish Jaggi wrote: >>> 4.3 Hypercall for bdf mapping notification to xen >>> --- >>> #define PHYSDEVOP_map_sbdf 43 >>> typedef struct { >>> u32 s; >>> u8 b; >>> u8 df; >>> u16 res; >>> } sbdf_t; >>> str

Re: [Xen-devel] [PATCH v3 01/32] libxc: split x86 HVM setup_guest into smaller logical functions

2015-07-06 Thread Andrew Cooper
On 03/07/15 12:34, Roger Pau Monne wrote: > This is just a preparatory change to clean up the code in setup_guest. > Should not introduce any functional changes. > > Signed-off-by: Roger Pau Monné > Cc: Ian Jackson > Cc: Stefano Stabellini > Cc: Ian Campbell > Cc: Wei Liu Reviewed-by: Andrew

Re: [Xen-devel] [PATCH v2 01/41] arm/acpi: Build numa for x86 only

2015-07-06 Thread Jan Beulich
>>> On 05.07.15 at 19:39, wrote: > On 05/07/2015 13:59, Parth Dixit wrote: >> +shannon > > I've just received ~50 mails "+shannon". Couldn't you have forward all > the email privately rather replying to every single mail and cc shannon? Seconded. Considering this I simply deleted all the mails

Re: [Xen-devel] [PATCH v3 02/32] libxc: unify xc_dom_p2m_{host/guest}

2015-07-06 Thread Andrew Cooper
On 03/07/15 12:34, Roger Pau Monne wrote: > Unify both functions into xc_dom_p2m. Should not introduce any functional > change. > > Signed-off-by: Roger Pau Monné > Cc: Ian Jackson > Cc: Stefano Stabellini > Cc: Ian Campbell > Cc: Wei Liu > Cc: Samuel Thibault Reviewed-by: Andrew Cooper __

[Xen-devel] [PATCH 6/6] libxl: Add more logging to hotplug script path

2015-07-06 Thread George Dunlap
This was useful in tracking down bugs. Signed-off-by: George Dunlap --- CC: Ian Campbell CC: Ian Jackson CC: Wei Liu --- tools/libxl/libxl_device.c | 20 +--- tools/libxl/libxl_linux.c | 5 + 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/tools/libxl/lib

[Xen-devel] [PATCH 4/6] libxl: Use the block-tap script for LIBXL_DISK_BACKEND_TAP

2015-07-06 Thread George Dunlap
The block-tap script can now do everything needed for libxl; no need to link against the blktap library. To do this: * Set disk->script to "block-tap" and dev to "format:pdev_path" in device_disk_add for LIBXL_DISK_BACKEND_TAP * Remove libxl_blktap2.o and libxl_noblktap2.o and all code dependi

[Xen-devel] [PATCH 2/6] libxl: Remove linux udev rules

2015-07-06 Thread George Dunlap
They are no longer needed, having been replaced by a daemon for driverdomains which will run scripts as necessary. Worse yet, they seem to be broken for script-based block devices, such as block-iscsi. This wouldn't matter so much if they were never run by default; but if you run block-attach wit

[Xen-devel] [PATCH 3/6] tools: Add a block-tap script for setting up tapdisks via tap-ctl

2015-07-06 Thread George Dunlap
The blocktap library isn't really necessary; all the necessary functionality is available via the tap-ctl binary. To use: script=block-tap,vdev=[whatever],target=vhd:/path/to/file.vhd script=block-tap,vdev=[whatever],target=aio:/path/to/file.raw Signed-off-by: George Dunlap --- CC: Ian Campbel

[Xen-devel] [PATCH 1/6] libxl: Make local_initiate_attach more rational

2015-07-06 Thread George Dunlap
There are a lot of paths through libxl__device_disk_local_initiate_attach(), but they all really boil down to one thing: Can we just access the file directly, or do we need to attach it? The requirements for direct access are fairly simple: * Is this local (as opposed to a driver domain)? * Is thi

[Xen-devel] [PATCH 5/6] tools: Remove in-tree blktap2

2015-07-06 Thread George Dunlap
Now that libxl has been configured to use a block script for tapdisk, we can remove the in-tree blktap and let the user build an out-of-tree blktap. Signed-off-by: George Dunlap --- CC: Ian Campbell CC: Ian Jackson CC: Wei Liu CC: Dave Scott CC: Jonathan Ludlam CC: Wen Congyang CC: Yang Ho

[Xen-devel] [PATCH 0/6] Use system blktap

2015-07-06 Thread George Dunlap
Switch to using a blktap provided by the system, rather than building it in-tree. Do this by adding a block-tap script which calls the tap-ctl binary, rather than linking against a library. This requires the use of an externally-built tap-ctl binary, which an be built from the master branch of th

Re: [Xen-devel] [v4][PATCH 04/19] xen/passthrough: extend hypercall to support rdm reservation policy

2015-07-06 Thread George Dunlap
On 07/06/2015 11:34 AM, Jan Beulich wrote: On 01.07.15 at 12:47, wrote: >> On 2015/7/1 18:02, George Dunlap wrote: >>> On 07/01/2015 02:11 AM, Chen, Tiejun wrote: /* XEN_DOMCTL_createdomain */ struct xen_domctl_createdomain { /* IN parameters */ uint32_t ssidref;

Re: [Xen-devel] [v4][PATCH 04/19] xen/passthrough: extend hypercall to support rdm reservation policy

2015-07-06 Thread Chen, Tiejun
Yes, this demonstrates my point. Each of these is a single-bit boolean value that takes up a single bit -- either on or off. But here you have three values -- NO_DRM, RELAXED, and STRICT, that take up two bits. If Is this fine to you? #define _XEN_DOMCTL_DEV_NO_RDM 0 #define XEN_DOM

Re: [Xen-devel] [PATCH v6 4/6] xen: arm: map child MMIO and IRQs to dom0 for PCI bus DT nodes.

2015-07-06 Thread Julien Grall
Hi Ian, Some minor comments: On 03/07/15 16:56, Ian Campbell wrote: > +static int map_range_to_domain(const struct dt_device_node *dev, > + u64 addr, u64 len, > + void *data) > +{ > +struct domain *d = data; > +bool_t need_mappin

Re: [Xen-devel] [PATCH v6 5/6] xen: arm: Import of_bus PCI entry from Linux (as a dt_bus entry)

2015-07-06 Thread Julien Grall
Hi Ian, On 03/07/15 16:56, Ian Campbell wrote: > This provides specific handlers for the PCI bus relating to matching > and translating. It's mostly similar to the defaults but includes some > additional error checks and other PCI specific bits. > > There are some subtle differences in how the ge

Re: [Xen-devel] [PATCH 4/6] libxl: Use the block-tap script for LIBXL_DISK_BACKEND_TAP

2015-07-06 Thread Andrew Cooper
On 06/07/15 11:51, George Dunlap wrote: > The block-tap script can now do everything needed for libxl; no need > to link against the blktap library. > > To do this: > > * Set disk->script to "block-tap" and dev to "format:pdev_path" in > device_disk_add for LIBXL_DISK_BACKEND_TAP > > * Remove lib

Re: [Xen-devel] [PATCH v6 6/6] xen: arm: consolidate mmio and irq mapping to dom0

2015-07-06 Thread Julien Grall
Hi Ian, On 03/07/15 16:56, Ian Campbell wrote: > The code in the callbacks for dt_for_each_irq_map and > dt_for_each_range is very similar to the code in handle_device for > each non-pci device. > > In fact the only major difference is that the irq callback needs to > call irq_set_spi_type in the

Re: [Xen-devel] [PATCH v6 0/6] xen: arm: Parse PCI DT nodes' ranges and interrupt-map

2015-07-06 Thread Julien Grall
Hi Ian, On 03/07/15 16:55, Ian Campbell wrote: > This series adds parsing of the DT ranges and interrupt-map properties > for PCI devices, these contain the MMIOs and IRQs used by children on > the bus. This replaces the specific mapping stuff on xgene. > > This is a quick respin based on Julien'

Re: [Xen-devel] PCI Pass-through in Xen ARM - Draft 2.

2015-07-06 Thread Manish Jaggi
On Monday 06 July 2015 04:13 PM, Julien Grall wrote: On 05/07/15 06:55, Manish Jaggi wrote: 4.3 Hypercall for bdf mapping notification to xen --- #define PHYSDEVOP_map_sbdf 43 typedef struct { u32 s; u8 b; u8 df;

Re: [Xen-devel] BUG: unable to handle kernel NULL pointer in __netdev_pick_tx()

2015-07-06 Thread Bob Liu
On 07/06/2015 06:41 PM, Eric Dumazet wrote: > On Mon, 2015-07-06 at 16:26 +0800, Bob Liu wrote: >> Hi, >> >> I tried to run the latest kernel v4.2-rc1, but often got below panic during >> system boot. >> >> [ 42.118983] BUG: unable to handle kernel paging request at >> 003f >> [

Re: [Xen-devel] [PATCH] net/bridge: Add missing in6_dev_put in br_validate_ipv6

2015-07-06 Thread Eric Dumazet
On Mon, 2015-07-06 at 11:35 +0100, Julien Grall wrote: > __in6_dev_get requires to hold rcu_read_lock or RTNL. My knowledge on > this code is very limited. Are we sure that one this lock is hold? At > first glance, I wasn't able to find one. You could play it safe ;) diff --git a/net/bridge/br_n

Re: [Xen-devel] [PATCH] net/bridge: Add missing in6_dev_put in br_validate_ipv6

2015-07-06 Thread Florian Westphal
Julien Grall wrote: > On 03/07/15 21:42, Florian Westphal wrote: > > I think it makes more sense to use __in6_dev_get() instead which doesn't > > take a reference. > > __in6_dev_get requires to hold rcu_read_lock or RTNL. My knowledge on > this code is very limited. Are we sure that one this lock

Re: [Xen-devel] [PATCH v3 00/12] Alternate p2m: support multiple copies of host p2m

2015-07-06 Thread Tim Deegan
At 10:50 +0100 on 06 Jul (1436179849), Jan Beulich wrote: > >>> On 01.07.15 at 20:09, wrote: > > Changes since v2: > > > > Addressed all v2 feedback *except*: > > > > In patch 5, the per-domain EPTP list page is still allocated from the > > Xen heap. If allocated from the domain heap Xen

Re: [Xen-devel] [PATCH] net/bridge: Add missing in6_dev_put in br_validate_ipv6

2015-07-06 Thread Julien Grall
On 06/07/15 12:19, Florian Westphal wrote: > Julien Grall wrote: >> On 03/07/15 21:42, Florian Westphal wrote: >>> I think it makes more sense to use __in6_dev_get() instead which doesn't >>> take a reference. >> >> __in6_dev_get requires to hold rcu_read_lock or RTNL. My knowledge on >> this code

Re: [Xen-devel] [PATCH v3 00/12] Alternate p2m: support multiple copies of host p2m

2015-07-06 Thread Jan Beulich
>>> On 06.07.15 at 13:25, wrote: > At 10:50 +0100 on 06 Jul (1436179849), Jan Beulich wrote: >> >>> On 01.07.15 at 20:09, wrote: >> > Changes since v2: >> > >> > Addressed all v2 feedback *except*: >> > >> > In patch 5, the per-domain EPTP list page is still allocated from the >> > Xen

Re: [Xen-devel] [v4][PATCH 04/19] xen/passthrough: extend hypercall to support rdm reservation policy

2015-07-06 Thread Jan Beulich
>>> On 06.07.15 at 12:56, wrote: Yes, this demonstrates my point. Each of these is a single-bit boolean value that takes up a single bit -- either on or off. But here you have three values -- NO_DRM, RELAXED, and STRICT, that take up two bits. If >>> >>> Is this fine to you? >>>

Re: [Xen-devel] PCI Pass-through in Xen ARM - Draft 2.

2015-07-06 Thread Julien Grall
On 06/07/15 12:09, Manish Jaggi wrote: > > > On Monday 06 July 2015 04:13 PM, Julien Grall wrote: >> On 05/07/15 06:55, Manish Jaggi wrote: > 4.3 Hypercall for bdf mapping notification to xen > --- > #define PHYSDEVOP_map_sbdf 4

Re: [Xen-devel] [PATCH v2] Modified RTDS scheduler to use an event-driven model instead of polling.

2015-07-06 Thread Dario Faggioli
On Thu, 2015-07-02 at 22:12 -0700, Meng Xu wrote: > Hi Dario, > Hi, > [Since I have commented on this thread in previous email, I just > top-post it for reminder.] > > Just in case, this email is out of your radar... :-) > It is on my radar. It's just that I really had to drain my queue of bugf

Re: [Xen-devel] Sharing display between guests

2015-07-06 Thread Ian Campbell
(switching to my work address) On Thu, 2015-07-02 at 13:13 +0200, Maxime Ripard wrote: > Hi, > > I've started using Xen on an Allwinner A33, which works great as an > headless device using the latest PSCI patches in U-Boot. > > However, we would like to do something more with it, and we would n

Re: [Xen-devel] [PATCH v3 03/32] libxc: introduce the notion of a container type

2015-07-06 Thread Andrew Cooper
On 03/07/15 12:34, Roger Pau Monne wrote: > Introduce the notion of a container type into xc_dom_image. This will be > needed by later changes that will also use xc_dom_image in order to build > HVM guests. > > Signed-off-by: Roger Pau Monné > Cc: Ian Jackson > Cc: Stefano Stabellini > Cc: Ian C

Re: [Xen-devel] [PATCH v3 04/32] libxc: introduce a domain loader for HVM guest firmware

2015-07-06 Thread Andrew Cooper
On 03/07/15 12:34, Roger Pau Monne wrote: > Introduce a very simple (and dummy) domain loader to be used to load the > firmware (hvmloader) into HVM guests. Since hmvloader is just a 32bit elf > executable the loader is fairly simple. > > Signed-off-by: Roger Pau Monné > Cc: Ian Jackson > Cc: Ste

Re: [Xen-devel] [PATCH] tools: libxl: allow permissive qemu-upstream pci passthrough.

2015-07-06 Thread George Dunlap
On Fri, Jul 3, 2015 at 3:49 PM, Ian Campbell wrote: > On Tue, 2015-06-02 at 16:47 +0100, Ian Campbell wrote: > > Anyone fancy (n)acking this followup to XSA-131? I think we probably > want this for 4.6. As someone who has had dealings with the libxl side of hte "permissive" flag, I'll certainly A

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

2015-07-06 Thread osstest service owner
flight 59058 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/59058/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-rumpuserxen-amd64 15 rumpuserxen-demo-xenstorels/xenstorels.repeat fail REGR. vs.

Re: [Xen-devel] [PATCH v3 05/32] libxc: make arch_setup_meminit a xc_dom_arch hook

2015-07-06 Thread Andrew Cooper
On 03/07/15 12:34, Roger Pau Monne wrote: > This allows having different arch_setup_meminit implementations based on the > guest type. It should not introduce any functional changes. > > Signed-off-by: Roger Pau Monné > Cc: Ian Jackson > Cc: Stefano Stabellini > Cc: Ian Campbell > Cc: Wei Liu

Re: [Xen-devel] [PATCH v3 06/32] libxc: make arch_setup_boot{init/late} xc_dom_arch hooks

2015-07-06 Thread Andrew Cooper
On 03/07/15 12:34, Roger Pau Monne wrote: > diff --git a/tools/libxc/xc_dom_x86.c b/tools/libxc/xc_dom_x86.c > index 6fb4aee..993954e 100644 > --- a/tools/libxc/xc_dom_x86.c > +++ b/tools/libxc/xc_dom_x86.c > @@ -926,41 +926,7 @@ static int meminit_pv(struct xc_dom_image *dom) > > /* ---

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

2015-07-06 Thread Ian Campbell
On Fri, 2015-07-03 at 21:59 +, osstest service owner wrote: > flight 59040 xen-unstable real [real] > http://logs.test-lab.xenproject.org/osstest/logs/59040/ > > Regressions :-( > > Tests which did not succeed and are blocking, > including tests which could not be run: > test-amd64-amd64-

Re: [Xen-devel] [PATCH v2 1/2] Resize the MAX_NR_IO_RANGES for ioreq server

2015-07-06 Thread George Dunlap
On Mon, Jul 6, 2015 at 7:25 AM, Yu Zhang wrote: > MAX_NR_IO_RANGES is used by ioreq server as the maximum > number of discrete ranges to be tracked. This patch changes > its value to 8k, so that more ranges can be tracked on next > generation of Intel platforms in XenGT. Future patches can > exten

Re: [Xen-devel] [PATCH v2 1/2] Resize the MAX_NR_IO_RANGES for ioreq server

2015-07-06 Thread Paul Durrant
> -Original Message- > From: dunl...@gmail.com [mailto:dunl...@gmail.com] On Behalf Of > George Dunlap > Sent: 06 July 2015 13:36 > To: Yu Zhang > Cc: xen-devel@lists.xen.org; Keir (Xen.org); Jan Beulich; Andrew Cooper; > Paul Durrant; Kevin Tian; zhiyuan...@intel.com > Subject: Re: [Xen-de

Re: [Xen-devel] [PATCH 4/6] libxl: Use the block-tap script for LIBXL_DISK_BACKEND_TAP

2015-07-06 Thread George Dunlap
On Mon, Jul 6, 2015 at 12:01 PM, Andrew Cooper wrote: > On 06/07/15 11:51, George Dunlap wrote: >> The block-tap script can now do everything needed for libxl; no need >> to link against the blktap library. >> >> To do this: >> >> * Set disk->script to "block-tap" and dev to "format:pdev_path" in

Re: [Xen-devel] Sharing display between guests

2015-07-06 Thread Ian Campbell
On Mon, 2015-07-06 at 14:26 +0200, Maxime Ripard wrote: > Hi Ian, > > On Mon, Jul 06, 2015 at 12:53:49PM +0100, Ian Campbell wrote: > > (switching to my work address) > > > > On Thu, 2015-07-02 at 13:13 +0200, Maxime Ripard wrote: > > > Hi, > > > > > > I've started using Xen on an Allwinner A33

Re: [Xen-devel] Sharing display between guests

2015-07-06 Thread Maxime Ripard
Hi Dario On Thu, Jul 02, 2015 at 02:18:18PM +0200, Dario Faggioli wrote: > I don't have much comments on all this, just that, reading, it, it > sounded somewhat similar to what GL is doing: > > http://www.xenproject.org/component/allvideoshare/video/latest/ces15-globalogic.html > http://www.xenpr

Re: [Xen-devel] Sharing display between guests

2015-07-06 Thread Maxime Ripard
Hi Ian, On Mon, Jul 06, 2015 at 12:53:49PM +0100, Ian Campbell wrote: > (switching to my work address) > > On Thu, 2015-07-02 at 13:13 +0200, Maxime Ripard wrote: > > Hi, > > > > I've started using Xen on an Allwinner A33, which works great as an > > headless device using the latest PSCI patche

Re: [Xen-devel] Performance problem about address translation

2015-07-06 Thread xinyue
在 2015-07-06, Mon, 15:44:53 ,Andrew Cooper 写到: On 06/07/2015 08:22, xinyue wrote:   Hi,     For I want to translate the virtual address in HVM DomU to virtual address in Xen. But when I use the function paging_gva_t

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

2015-07-06 Thread Ian Jackson
Ian Campbell writes ("Re: [Xen-devel] [xen-unstable test] 59040: regressions - FAIL"): > From > http://logs.test-lab.xenproject.org/osstest/results/history/test-armhf-armhf-xl-credit2/xen-unstable.html > it appears this one is sporadically unreliable on cubietruck, but works just > fine on arnda

Re: [Xen-devel] [PATCH v2 1/2] Resize the MAX_NR_IO_RANGES for ioreq server

2015-07-06 Thread George Dunlap
On Mon, Jul 6, 2015 at 1:38 PM, Paul Durrant wrote: >> -Original Message- >> From: dunl...@gmail.com [mailto:dunl...@gmail.com] On Behalf Of >> George Dunlap >> Sent: 06 July 2015 13:36 >> To: Yu Zhang >> Cc: xen-devel@lists.xen.org; Keir (Xen.org); Jan Beulich; Andrew Cooper; >> Paul Durr

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

2015-07-06 Thread Ian Campbell
On Mon, 2015-07-06 at 13:47 +0100, Ian Jackson wrote: > > > test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm 9 > > > debian-hvm-install fail REGR. vs. 58965 > > > > http://logs.test-lab.xenproject.org/osstest/results/history/test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm/xen-unstable.h

Re: [Xen-devel] [PATCH v3 07/32] xen/x86: fix arch_set_info_guest for HVM guests

2015-07-06 Thread Andrew Cooper
On 03/07/15 12:34, Roger Pau Monne wrote: > Add checks for ignored vcpu fields in HVM mode. HVM vCPUs (BSP and APs) are > always started in 32bit protected mode with paging disabled. > > Signed-off-by: Roger Pau Monné > Cc: Jan Beulich > Cc: Andrew Cooper > --- > xen/arch/x86/domain.c | 14

Re: [Xen-devel] [PATCH] tools: libxl: allow permissive qemu-upstream pci passthrough.

2015-07-06 Thread Anthony PERARD
On Fri, Jul 03, 2015 at 03:49:29PM +0100, Ian Campbell wrote: > On Tue, 2015-06-02 at 16:47 +0100, Ian Campbell wrote: > > Anyone fancy (n)acking this followup to XSA-131? I think we probably > want this for 4.6. > > > From c395657b03a1e2b7616d987e7078694874981979 Mon Sep 17 00:00:00 2001 > > Fro

Re: [Xen-devel] [PATCH v2 1/2] Resize the MAX_NR_IO_RANGES for ioreq server

2015-07-06 Thread Paul Durrant
> -Original Message- > From: dunl...@gmail.com [mailto:dunl...@gmail.com] On Behalf Of > George Dunlap > Sent: 06 July 2015 13:50 > To: Paul Durrant > Cc: Yu Zhang; xen-devel@lists.xen.org; Keir (Xen.org); Jan Beulich; Andrew > Cooper; Kevin Tian; zhiyuan...@intel.com > Subject: Re: [Xen-de

[Xen-devel] [PATCH 1/2] libxc: remove trailing newline in xc_dom_panic format string

2015-07-06 Thread Wei Liu
xc_dom_panic prints more information after user supplied strings, so don't print a newline. Signed-off-by: Wei Liu --- tools/libxc/xc_dom_x86.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/libxc/xc_dom_x86.c b/tools/libxc/xc_dom_x86.c index 920fe42..acd7b3f 100

[Xen-devel] [PATCH 2/2] libxc: fix PV vNUMA guest memory allocation

2015-07-06 Thread Wei Liu
In 415b58c1 (tools/libxc: Batch memory allocations for PV guests) the number of super pages is calculated with the number of total pages. That is wrong. It breaks PV guest vNUMA. The correct number of super pages should be derived from the number of pages within that virtual NUMA node. Also change

[Xen-devel] [PATCH 0/2] Two PV vNUMA patches

2015-07-06 Thread Wei Liu
The first one is just cosmetic change. The second patch fixes a bug. Wei Liu (2): libxc: remove trailing newline in xc_dom_panic format string libxc: fix PV vNUMA guest memory allocation tools/libxc/xc_dom_x86.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) -- 1.9.

Re: [Xen-devel] [PATCH 2/2] libxc: fix PV vNUMA guest memory allocation

2015-07-06 Thread Ross Lagerwall
On 07/06/2015 02:17 PM, Wei Liu wrote: In 415b58c1 (tools/libxc: Batch memory allocations for PV guests) the number of super pages is calculated with the number of total pages. That is wrong. It breaks PV guest vNUMA. The correct number of super pages should be derived from the number of pages wi

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

2015-07-06 Thread Wei Liu
On Mon, Jul 06, 2015 at 01:57:28PM +0100, Ian Campbell wrote: > On Mon, 2015-07-06 at 13:47 +0100, Ian Jackson wrote: > > > > test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm 9 > > > > debian-hvm-install fail REGR. vs. 58965 > > > > > > http://logs.test-lab.xenproject.org/osstest/results/his

Re: [Xen-devel] [PATCH v2 1/2] Resize the MAX_NR_IO_RANGES for ioreq server

2015-07-06 Thread George Dunlap
On 07/06/2015 02:09 PM, Paul Durrant wrote: >> -Original Message- >> From: dunl...@gmail.com [mailto:dunl...@gmail.com] On Behalf Of >> George Dunlap >> Sent: 06 July 2015 13:50 >> To: Paul Durrant >> Cc: Yu Zhang; xen-devel@lists.xen.org; Keir (Xen.org); Jan Beulich; Andrew >> Cooper; Kevi

Re: [Xen-devel] [PATCH 2/2] libxc: fix PV vNUMA guest memory allocation

2015-07-06 Thread Andrew Cooper
On 06/07/15 14:17, Wei Liu wrote: > In 415b58c1 (tools/libxc: Batch memory allocations for PV guests) the > number of super pages is calculated with the number of total pages. That > is wrong. It breaks PV guest vNUMA. The correct number of super pages > should be derived from the number of pages w

Re: [Xen-devel] [PATCH v2 1/2] Resize the MAX_NR_IO_RANGES for ioreq server

2015-07-06 Thread George Dunlap
On 07/06/2015 02:09 PM, Paul Durrant wrote: >> -Original Message- >> From: dunl...@gmail.com [mailto:dunl...@gmail.com] On Behalf Of >> George Dunlap >> Sent: 06 July 2015 13:50 >> To: Paul Durrant >> Cc: Yu Zhang; xen-devel@lists.xen.org; Keir (Xen.org); Jan Beulich; Andrew >> Cooper; Kevi

Re: [Xen-devel] [PATCH 2/2] libxc: fix PV vNUMA guest memory allocation

2015-07-06 Thread Wei Liu
On Mon, Jul 06, 2015 at 02:26:37PM +0100, Andrew Cooper wrote: > On 06/07/15 14:17, Wei Liu wrote: > > In 415b58c1 (tools/libxc: Batch memory allocations for PV guests) the > > number of super pages is calculated with the number of total pages. That > > is wrong. It breaks PV guest vNUMA. The corre

  1   2   3   >