Re: [Xen-devel] [PATCH v2 6/9] x86/intel_pstate: the main boby of the intel_pstate driver

2015-06-09 Thread Jan Beulich
>>> On 10.06.15 at 07:20, wrote: > On 26/05/2015 21:58, Jan Beulich wrote >> >>> On 13.05.16 at 09:50, wrote: >> > +if (policy->policy == CPUFREQ_POLICY_PERFORMANCE) { >> > +limits.no_turbo = 0; >> > +limits.max_perf_pct = 100; >> > +limits.max_perf = int_tofp(1); >> >

Re: [Xen-devel] [RFC v2 15/15] Add a command line parameter for VT-d posted-interrupts

2015-06-09 Thread Jan Beulich
>>> On 08.05.15 at 11:07, wrote: > @@ -101,6 +101,12 @@ static void __init parse_iommu_param(char *s) > if ( iommu_intremap == 0 ) > iommu_intpost = 0; > } > +else if ( !strcmp(s, "intpost") ) > +{ > +iommu_intpost = val; > +

Re: [Xen-devel] [RFC v2 14/15] Suppress posting interrupts when 'SN' is set

2015-06-09 Thread Jan Beulich
>>> On 08.05.15 at 11:07, wrote: > --- a/xen/arch/x86/hvm/vmx/vmx.c > +++ b/xen/arch/x86/hvm/vmx/vmx.c > @@ -1664,9 +1664,20 @@ static void __vmx_deliver_posted_interrupt(struct vcpu > *v) > > static void vmx_deliver_posted_intr(struct vcpu *v, u8 vector) > { > +int r, sn; > + > if (

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

2015-06-09 Thread osstest service user
flight 58299 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/58299/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemuu-win7-amd64 16 guest-stopfail REGR. vs. 56492 test-amd64-i386-xl-qemuu-win

[Xen-devel] [linux-3.4 test] 58293: regressions - FAIL

2015-06-09 Thread osstest service user
flight 58293 linux-3.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/58293/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl 9 debian-install fail REGR. vs. 52209-bisect test-amd64-amd64-pair

Re: [Xen-devel] [RFC v2 13/15] Update Posted-Interrupts Descriptor during vCPU scheduling

2015-06-09 Thread Jan Beulich
>>> On 08.05.15 at 11:07, wrote: > --- a/xen/arch/x86/hvm/vmx/vmx.c > +++ b/xen/arch/x86/hvm/vmx/vmx.c > @@ -1711,6 +1711,131 @@ static void vmx_handle_eoi(u8 vector) > __vmwrite(GUEST_INTR_STATUS, status); > } > > +static void vmx_pi_desc_update(struct vcpu *v, int old_state) > +{ > +

Re: [Xen-devel] [RFC v2 07/15] vt-d: Add API to update IRTE when VT-d PI is used

2015-06-09 Thread Jan Beulich
>>> On 08.05.15 at 11:07, wrote: > +static inline void setup_posted_irte( > +struct iremap_entry *new_ire, struct pi_desc *pi_desc, uint8_t gvec) > +{ > +new_ire->post.urg = 0; > +new_ire->post.vector = gvec; > +new_ire->post.pda_l = (((u64)virt_to_maddr(pi_desc)) >> > +

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

2015-06-09 Thread Meng Xu
Hi Dario and Dagaen, 2015-06-09 5:53 GMT-07:00 Dario Faggioli : > > Hello Dagaen, > > Thanks for doing this. The first question I have is whether you run any > test/benchmark that you can show the result of here. Thank you very much Dario for your quick review! > > For instance, a few weeks ago,

[Xen-devel] Source code explanation?

2015-06-09 Thread amin.fall...@gmail.com
Is there anywhere I can find in depth and in detail explanation and description about xen source code and implementation, other than the comments in the source code? I need to understand credit scheduler source code line by line for me to be able to edit it for my needs. A description of what every

Re: [Xen-devel] [PATCH v2 COLOPre 03/13] libxc/restore: zero ioreq page only one time

2015-06-09 Thread Yang Hongyang
On 06/09/2015 03:30 PM, Andrew Cooper wrote: On 09/06/2015 01:59, Yang Hongyang wrote: On 06/08/2015 06:15 PM, Andrew Cooper wrote: On 08/06/15 10:58, Yang Hongyang wrote: On 06/08/2015 05:46 PM, Andrew Cooper wrote: On 08/06/15 04:43, Yang Hongyang wrote: ioreq page contains evtchn wh

Re: [Xen-devel] [PATCH v2 6/9] x86/intel_pstate: the main boby of the intel_pstate driver

2015-06-09 Thread Wang, Wei W
On 26/05/2015 21:58, Jan Beulich wrote > >>> On 13.05.16 at 09:50, wrote: > > +if (policy->policy == CPUFREQ_POLICY_PERFORMANCE) { > > +limits.no_turbo = 0; > > +limits.max_perf_pct = 100; > > +limits.max_perf = int_tofp(1); > > +limits.min_perf_pct = 100; > > +

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

2015-06-09 Thread Dagaen Golomb
Thanks for the feedback. > Thanks for doing this. The first question I have is whether you run any > test/benchmark that you can show the result of here. > > For instance, a few weeks ago, Meng (while trying to do a completely > different thing) sent here on the list some numbers about the freque

[Xen-devel] [qemu-upstream-unstable test] 58290: tolerable FAIL - PUSHED

2015-06-09 Thread osstest service user
flight 58290 qemu-upstream-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/58290/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking): test-armhf-armhf-xl 8 leak-check/basis(8) fail in 58255 pass in 58309-bisect test-armhf-armhf-xl

[Xen-devel] [xen-unstable test] 58264: tolerable FAIL - PUSHED

2015-06-09 Thread osstest service user
flight 58264 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/58264/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking): test-amd64-i386-xl-qemuu-win7-amd64 9 windows-install fail pass in 58200 Regressions which are regarded as

[Xen-devel] [xen-4.5-testing test] 58276: regressions - FAIL

2015-06-09 Thread osstest service user
flight 58276 xen-4.5-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/58276/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-winxpsp3 15 guest-localmigrate/x10 fail REGR. vs. 57908 Regressions wh

[Xen-devel] [PATCH V4 4/7] libxl: add libxl_device_usb_assignable_list API

2015-06-09 Thread Chunyan Liu
Add API for listing assignable USB devices info. Assignable USB device means the USB device type is assignable and it's not assigned to any guest yet. Signed-off-by: Chunyan Liu --- This could be squashed with previous patch. Split because there is some dispute on this. If this is acceptable

[Xen-devel] [PATCH V4 5/7] xl: add pvusb commands

2015-06-09 Thread Chunyan Liu
Add pvusb commands: usb-ctrl-attach, usb-ctrl-detach, usb-list, usb-attach and usb-detach. To attach a usb device to guest through pvusb, one could follow following example: #xl usb-ctrl-attach test_vm version=1 num_ports=8 #xl usb-list test_vm will show the usb controllers and port usage und

[Xen-devel] [PATCH V4 6/7] xl: add usb-assignable-list command

2015-06-09 Thread Chunyan Liu
Add xl usb-assignable-list command to list assignable USB devices. Assignable USB device means the USB device type is assignable and it's not assigned to any guest yet. Signed-off-by: Chunyan Liu --- Same as "libxl: add libxl_device_usb_assignable_list API" patch, this patch could be sqaushe

[Xen-devel] [PATCH V4 2/7] libxl_read_file_contents: add new entry to read sysfs file

2015-06-09 Thread Chunyan Liu
Sysfs file has size=4096 but actual file content is less than that. Current libxl_read_file_contents will treat it as error when file size and actual file content differs, so reading sysfs file content with this function always fails. Add a new entry libxl_read_sysfs_file_contents to handle sysfs

[Xen-devel] [PATCH V4 7/7] domcreate: support pvusb in configuration file

2015-06-09 Thread Chunyan Liu
Add code to support pvusb in domain config file. One could specify usbctrl and usb in domain's configuration file and create domain, then usb controllers will be created and usb device would be attached to guest automatically. One could specify usb controllers and usb devices in config file like t

[Xen-devel] [PATCH V4 0/7] xen pvusb toolstack work

2015-06-09 Thread Chunyan Liu
This patch series is to add pvusb toolstack work, supporting hot add|remove USB device to|from guest and specify USB device in domain configuration file. Changes to v3: * add new entry for reading sysfs file contents to get usb device info. * merge pv|qemu protocol in earlier patches, instead of r

[Xen-devel] [PATCH V4 3/7] libxl: add pvusb API

2015-06-09 Thread Chunyan Liu
Add pvusb APIs, including: - attach/detach (create/destroy) virtual usb controller. - attach/detach usb device - list usb controller and usb devices - some other helper functions Signed-off-by: Chunyan Liu Signed-off-by: Simon Cao --- changes: - make libxl_device_usbctrl_add async, to be

[Xen-devel] [PATCH V4 1/7] libxl: export some functions for pvusb use

2015-06-09 Thread Chunyan Liu
Signed-off-by: Chunyan Liu Signed-off-by: Simon Cao Acked-by: Wei Liu --- tools/libxl/libxl.c | 6 +++--- tools/libxl/libxl_internal.h | 5 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 9117b01..bd4daea 100644 --- a

[Xen-devel] [qemu-mainline test] 58241: regressions - FAIL

2015-06-09 Thread osstest service user
flight 58241 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/58241/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl-credit2 5 xen-install fail REGR. vs. 57815 test-amd64-i386-xl-

[Xen-devel] Is: qemu-xen mishandling upper 64-bit BAR compared to qemu-tradWas:Re: Dom0 linux 4.0 + devel/for-linus-4.1 branch: p2m.c:884:d0v0 gfn_to_mfn failed! gfn=ffffffff001ed type:4

2015-06-09 Thread Konrad Rzeszutek Wilk
On Wed, Apr 15, 2015 at 11:14:04PM +0200, Sander Eikelenboom wrote: > > Wednesday, April 15, 2015, 10:58:50 PM, you wrote: > > >> Hi Konrad, > >> > >> xen version is at last changeset 3a28f760508fb35c430edac17a9efde5aff6d1d5 > >> (previous unstable master before the force push which includes >

[Xen-devel] Alternate p2m design specification

2015-06-09 Thread Ed White
This document describes a new capability for VM Introspection, Security and Privacy in Xen. The new capability is called “altp2m” (short for Alternate p2m) that is used to provide the ability for Xen to host alternate guest physical memory domains for a specific guest-domain. This document descr

Re: [Xen-devel] [PATCH] xen/arm: Propagate clock-frequency to DOMU if present in the DT timer node

2015-06-09 Thread Julien Grall
On 08/06/2015 16:44, Chris (Christopher) Brand wrote: Hi Julien, Hi Chris, My test was limited as I don't have a platform where CNTFRQ/CNTFRQ_EL0 is not valid. I may have done a mistake in the code. Understood. That's why I thought it would be worthwhile posting my results :-) What I see

Re: [Xen-devel] [PATCH v4 0/9] add xenalyze to staging

2015-06-09 Thread Julien Grall
Hi George, On 09/06/2015 07:38, George Dunlap wrote: On 06/09/2015 12:31 PM, Julien Grall wrote: Hi Olaf, On 09/06/2015 06:18, Olaf Hering wrote: On Wed, Jun 03, Julien Grall wrote: xentrace is not working as we don't have the infrastructure for ARM in Xen. Why is that? After a very quick

[Xen-devel] [linux-3.18 test] 58263: regressions - FAIL

2015-06-09 Thread osstest service user
flight 58263 linux-3.18 real [real] http://logs.test-lab.xenproject.org/osstest/logs/58263/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-win7-amd64 16 guest-stop fail REGR. vs. 57312 Tests which are failin

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

2015-06-09 Thread osstest service user
flight 58249 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/58249/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemuu-win7-amd64 16 guest-stopfail REGR. vs. 56492 test-amd64-i386-xl-qemuu-win

[Xen-devel] [linux-3.4 test] 58231: regressions - FAIL

2015-06-09 Thread osstest service user
flight 58231 linux-3.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/58231/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl 9 debian-install fail REGR. vs. 52209-bisect test-amd64-amd64-pair

[Xen-devel] [qemu-upstream-unstable test] 58255: regressions - trouble: broken/fail/pass

2015-06-09 Thread osstest service user
flight 58255 qemu-upstream-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/58255/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl 8 leak-check/basis(8) fail REGR. vs. 56376 Regression

Re: [Xen-devel] [edk2] The size of memory is wrong inside of virtual machine(VM) when using OVMF

2015-06-09 Thread Wei Liu
On Mon, Jun 08, 2015 at 10:57:30PM +0200, Laszlo Ersek wrote: [...] > > The issue is real. I've been working on some patches today for this. > I'll soon send an RFC series. > > It's actually easy to *test* this scenario: just create a 128GB or so > file, with "fallocate", on a sufficiently big fi

Re: [Xen-devel] [PATCH v2 4/4] xen: Fix map/unmap of pcidev to ioreq server

2015-06-09 Thread Don Slutz
On 06/09/15 11:11, Paul Durrant wrote: >> -Original Message- >> From: Don Slutz [mailto:dsl...@verizon.com] >> Sent: 09 June 2015 15:28 >> To: Paul Durrant; Slutz, Donald Christopher; qemu-de...@nongnu.org; xen- >> de...@lists.xen.org >> Cc: Michael S. Tsirkin; Stefano Stabellini; Don Slutz

Re: [Xen-devel] [PATCH v2 for Xen 4.6 3/4] libxl: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler

2015-06-09 Thread Dario Faggioli
On Mon, 2015-06-08 at 15:55 -0500, Chong Li wrote: > On Mon, Jun 8, 2015 at 10:56 AM, Dario Faggioli > > So, Thoughts? What do you think the best way forward could be? > > I like option 2 more. But I think we may also need a 'vcpuid' field in > libxl_sched_params. > For sparse array support, yes

Re: [Xen-devel] [RFC v2 12/15] vmx: Properly handle notification event when vCPU is running

2015-06-09 Thread Jan Beulich
>>> On 08.05.15 at 11:07, wrote: > +void pi_notification_interrupt(struct cpu_user_regs *regs) static again Jan ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] PCI Passthrough ARM Design : Draft1

2015-06-09 Thread Ian Campbell
Please give us a chance to respond, it's been only just over a day and we are all busy with lots of different things. On Tue, 2015-06-09 at 14:42 +, Jaggi, Manish wrote: > Hi Ian/Stefano, > As discussed in the call I have sent the design. > Didn't got any feedback on this. > > Regards, > Mani

Re: [Xen-devel] [PATCH] efi: Avoid calling boot services after ExitBootServices()

2015-06-09 Thread Ian Campbell
On Tue, 2015-06-09 at 16:06 +0100, Ross Lagerwall wrote: > After the first call to ExitBootServices(), avoid calling any boot > services (except GetMemoryMap() and ExitBootServices()) by setting > setting efi_bs to NULL and halting in blexit(). Only GetMemoryMap() and > ExitBootServices() are expli

Re: [Xen-devel] [PATCH v2 for Xen 4.6 4/4] xl: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler

2015-06-09 Thread Dario Faggioli
On Tue, 2015-06-09 at 10:12 -0500, Chong Li wrote: > On Tue, Jun 9, 2015 at 3:01 AM, Dario Faggioli > wrote: > How about making > > # xl sched-rtds -d vm1 > > output the per-dom parameters (of vm1), and meanwhile let > > # xl sched-rtds -d vm1 -v all > > output the per-vcpu parameters (of vm1)

Re: [Xen-devel] [Draft E] Xen on ARM vITS Handling

2015-06-09 Thread Manish Jaggi
On Tuesday 09 June 2015 08:42 AM, Ian Campbell wrote: Draft E follows. Also at: http://xenbits.xen.org/people/ianc/vits/draftE.{pdf,html} Ian, I have sent a pci passthrough design. It would be good if that can be linked with this one. Can I upload the same on xenbits The major change here ar

Re: [Xen-devel] get page table entry from virtual address

2015-06-09 Thread Jan Beulich
>>> On 09.06.15 at 16:58, wrote: > Hi all > when there is a page fault the mmu stroes the virtual address that made > the page fault in the cr2 register right? > In xen this address is found in page fault handling routine > do_page_fault in arch/x86/traps.c addr = read_cr2(). > I want to get th

[Xen-devel] [Draft E] Xen on ARM vITS Handling

2015-06-09 Thread Ian Campbell
Draft E follows. Also at: http://xenbits.xen.org/people/ianc/vits/draftE.{pdf,html} The major change here arises from the realisation that it is not possible to associate a vPLI with a single pLPI, which has ramifications for the management of enabling/disabling pLPIs and the handling of spurious

Re: [Xen-devel] [PATCH 0/4] misc EFI adjustments

2015-06-09 Thread Konrad Rzeszutek Wilk
On Tue, Jun 09, 2015 at 02:49:45PM +0100, Jan Beulich wrote: > 1: x86/EFI: fix EFI_MEMORY_WP handling > 2: EFI/early: add /mapbs to map EfiBootServices{Code,Data} > 3: EFI: support default attributes to map Runtime service areas with none > given > 4: x86/EFI: adjust EFI_MEMORY_WP handling for spe

Re: [Xen-devel] [PATCH 4/4] x86/EFI: adjust EFI_MEMORY_WP handling for spec version 2.5

2015-06-09 Thread Konrad Rzeszutek Wilk
On Tue, Jun 09, 2015 at 04:28:50PM +0100, Jan Beulich wrote: > >>> On 09.06.15 at 16:08, wrote: > >> @@ -1220,6 +1224,9 @@ void __init efi_init_memory(void) > >> #define EFI_MEMORY_RP 0x2000 > >> #define EFI_MEMORY_XP 0x4000 > >> +#define EFI_MEMORY_RO

Re: [Xen-devel] [PATCHv1 4/6] evtchn: use a per-event channel lock for sending events

2015-06-09 Thread Andrew Cooper
On 09/06/15 15:59, David Vrabel wrote: > When sending an event, use a new per-event channel lock to safely > validate the event channel state. > > This new lock must be held when changing event channel state. > > To avoid having to take the remote event channel locks when sending to > an interdomai

Re: [Xen-devel] [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}

2015-06-09 Thread Andrew Cooper
On 09/06/15 15:11, Konrad Rzeszutek Wilk wrote: > On Tue, Jun 09, 2015 at 03:03:18PM +0100, Andrew Cooper wrote: >> On 09/06/15 14:53, Jan Beulich wrote: >>> From: Konrad Rzeszutek Wilk >>> >>> To help on certain platforms to run. >>> >>> Signed-off-by: Konrad Rzeszutek Wilk >>> Signed-off-by: Ja

Re: [Xen-devel] [PATCH 3/4] EFI: support default attributes to map Runtime service areas with none given

2015-06-09 Thread Andrew Cooper
On 09/06/15 16:26, Jan Beulich wrote: On 09.06.15 at 16:08, wrote: >> On 09/06/15 14:53, Jan Beulich wrote: >>> From: Konrad Rzeszutek Wilk >>> >>> For example on Dell machines we see: >>> >>> (XEN) 0fed18000-0fed19fff type=11 attr=8000 >>> (XEN) Unknown cachability for

Re: [Xen-devel] [PATCH 4/4] x86/EFI: adjust EFI_MEMORY_WP handling for spec version 2.5

2015-06-09 Thread Jan Beulich
>>> On 09.06.15 at 16:08, wrote: >> @@ -1220,6 +1224,9 @@ void __init efi_init_memory(void) >> #define EFI_MEMORY_RP 0x2000 >> #define EFI_MEMORY_XP 0x4000 >> +#define EFI_MEMORY_RO 0x0002 >> + >> +#define EFI_MEMORY_NV

Re: [Xen-devel] [PATCH 3/4] EFI: support default attributes to map Runtime service areas with none given

2015-06-09 Thread Jan Beulich
>>> On 09.06.15 at 16:08, wrote: > On 09/06/15 14:53, Jan Beulich wrote: >> From: Konrad Rzeszutek Wilk >> >> For example on Dell machines we see: >> >> (XEN) 0fed18000-0fed19fff type=11 attr=8000 >> (XEN) Unknown cachability for MFNs 0xfed18-0xfed19 >> >> Let's allow them to

Re: [Xen-devel] [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}

2015-06-09 Thread Jan Beulich
>>> On 09.06.15 at 16:03, wrote: > On 09/06/15 14:53, Jan Beulich wrote: >> From: Konrad Rzeszutek Wilk >> >> To help on certain platforms to run. >> >> Signed-off-by: Konrad Rzeszutek Wilk >> Signed-off-by: Jan Beulich >> >> --- a/xen/arch/x86/efi/efi-boot.h >> +++ b/xen/arch/x86/efi/efi-boot.

Re: [Xen-devel] [PATCH 00/17] x86/hvm: I/O emulation cleanup and fix

2015-06-09 Thread Paul Durrant
> -Original Message- > From: Fabio Fantoni [mailto:fabio.fant...@m2r.biz] > Sent: 09 June 2015 15:44 > To: Paul Durrant; xen-de...@lists.xenproject.org > Subject: Re: [Xen-devel] [PATCH 00/17] x86/hvm: I/O emulation cleanup and > fix > > Il 08/06/2015 16:33, Paul Durrant ha scritto: > > Th

Re: [Xen-devel] [RFC v2 11/15] vmx: Add a global wake-up vector for VT-d Posted-Interrupts

2015-06-09 Thread Jan Beulich
>>> On 08.05.15 at 11:07, wrote: > @@ -3262,6 +3271,28 @@ void vmx_vmenter_helper(const struct cpu_user_regs > *regs) > } > > /* > + * Handle VT-d posted-interrupt when VCPU is blocked. > + */ > +void pi_wakeup_interrupt(struct cpu_user_regs *regs) static (and perhaps move it up so you don't

Re: [Xen-devel] [PATCHv1 3/6] evtchn: simplify port_is_valid()

2015-06-09 Thread David Vrabel
On 09/06/15 16:08, Andrew Cooper wrote: > On 09/06/15 15:59, David Vrabel wrote: >> By keeping a count of the number of currently valid event channels, >> port_is_valid() can be simplified. >> >> d->valid_evtchns can also be tested without holding d->event_lock which >> will be useful later on. [..

Re: [Xen-devel] [PATCH v2 4/4] xen: Fix map/unmap of pcidev to ioreq server

2015-06-09 Thread Paul Durrant
> -Original Message- > From: Don Slutz [mailto:dsl...@verizon.com] > Sent: 09 June 2015 15:28 > To: Paul Durrant; Slutz, Donald Christopher; qemu-de...@nongnu.org; xen- > de...@lists.xen.org > Cc: Michael S. Tsirkin; Stefano Stabellini; Don Slutz > Subject: Re: [PATCH v2 4/4] xen: Fix map/u

Re: [Xen-devel] [PATCH v2 for Xen 4.6 4/4] xl: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler

2015-06-09 Thread Chong Li
On Tue, Jun 9, 2015 at 3:01 AM, Dario Faggioli wrote: > On Mon, 2015-06-08 at 16:18 -0500, Chong Li wrote: >> On Mon, Jun 8, 2015 at 11:21 AM, Dario Faggioli >> wrote: >> > On Mon, 2015-05-25 at 19:11 -0500, Chong Li wrote: > >> > I appreciate just now that this probably affect other bits of the

Re: [Xen-devel] [RFC v2 10/15] vmx: Define two per-cpu variables

2015-06-09 Thread Jan Beulich
>>> On 08.05.15 at 11:07, wrote: > This patch defines two per-cpu variables: > > blocked_vcpu: > A list storing the vCPUs which were blocked on this pCPU. > > blocked_vcpu_lock: > The spinlock to protect blocked_vcpu. > > Signed-off-by: Feng Wu It doesn't look like this is worth a separate pa

Re: [Xen-devel] [PATCH v2 0/4] Fix device listener interface for PCI to PCI bridges

2015-06-09 Thread Don Slutz
On 06/09/15 10:27, Michael S. Tsirkin wrote: > On Tue, Jun 09, 2015 at 02:14:29PM +, Paul Durrant wrote: >>> -Original Message- >>> From: Michael S. Tsirkin [mailto:m...@redhat.com] >>> Sent: 09 June 2015 13:30 >>> To: Paul Durrant >>> Cc: Don Slutz; qemu-de...@nongnu.org; xen-devel@lis

Re: [Xen-devel] [PATCHv1 3/6] evtchn: simplify port_is_valid()

2015-06-09 Thread Andrew Cooper
On 09/06/15 15:59, David Vrabel wrote: > By keeping a count of the number of currently valid event channels, > port_is_valid() can be simplified. > > d->valid_evtchns can also be tested without holding d->event_lock which > will be useful later on. > > Signed-off-by: David Vrabel > --- > xen/comm

Re: [Xen-devel] [RFC v2 09/15] Add a new per-vCPU tasklet to wakeup the blocked vCPU

2015-06-09 Thread Jan Beulich
>>> On 08.05.15 at 11:07, wrote: > This patch adds a new per-vCPU tasklet to wakeup the blocked > vCPU. It can be used in the case vcpu_unblock cannot be called > directly. This tasklet will be used in later patch in this > series. > > Signed-off-by: Feng Wu > --- > xen/common/domain.c | 11

[Xen-devel] [PATCH] efi: Avoid calling boot services after ExitBootServices()

2015-06-09 Thread Ross Lagerwall
After the first call to ExitBootServices(), avoid calling any boot services (except GetMemoryMap() and ExitBootServices()) by setting setting efi_bs to NULL and halting in blexit(). Only GetMemoryMap() and ExitBootServices() are explicitly allowed to be called after the first call to ExitBootServic

Re: [Xen-devel] [RFC v2 08/15] Update IRTE according to guest interrupt config changes

2015-06-09 Thread Jan Beulich
>>> On 08.05.15 at 11:07, wrote: > +static bool_t pi_find_dest_vcpu(struct domain *d, uint8_t dest_id, > +uint8_t dest_mode, uint8_t delivery_mode, > +uint8_t gvec, struct vcpu **dest_vcpu) > +{ > +struct vcpu *v, **dest_vcpu_arra

[Xen-devel] [PATCHv1 5/6] evtchn: remove the locking when unmasking an event channel

2015-06-09 Thread David Vrabel
The event channel lock is no longer required to check if the port is valid. Signed-off-by: David Vrabel --- xen/common/event_channel.c |6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c index 71747d1..7ab0516 100644

[Xen-devel] [libvirt test] 58230: regressions - FAIL

2015-06-09 Thread osstest service user
flight 58230 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/58230/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-libvirt 11 guest-start fail REGR. vs. 53854 test-amd64-amd64-libvirt

[Xen-devel] [PATCHv1 1/6] evtchn: profile event channel lock

2015-06-09 Thread David Vrabel
The per-domain event channel lock may suffer from contention. Add it to the set of locks to be profiled when lock profiling is enabled. Signed-off-by: David Vrabel --- xen/common/event_channel.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/common/event_channel.c b/

[Xen-devel] [PATCHv1 6/6] evtchn: pad struct evtchn to 64 bytes

2015-06-09 Thread David Vrabel
The number of struct evtchn in a page must be a power of two. Under some workloads performance is improved slightly by padding struct evtchn to 64 bytes (a cache line), thus putting the per-channel locks into their own cache line. This does not decrease the number of struct evtchn's per-page. Si

[Xen-devel] [PATCHv1 3/6] evtchn: simplify port_is_valid()

2015-06-09 Thread David Vrabel
By keeping a count of the number of currently valid event channels, port_is_valid() can be simplified. d->valid_evtchns can also be tested without holding d->event_lock which will be useful later on. Signed-off-by: David Vrabel --- xen/common/event_channel.c |3 +++ xen/include/xen/event.h

[Xen-devel] [PATCHv1 0/6] evtchn: Improve scalebility

2015-06-09 Thread David Vrabel
The per-domain event channel lock limits scalability when many VCPUs are trying to send interdomain events. A per-channel lock is introduced eliminating any lock contention when sending an event. See this graph for the performance improvements: http://xenbits.xen.org/people/dvrabel/evtchn-scal

[Xen-devel] [PATCHv1 4/6] evtchn: use a per-event channel lock for sending events

2015-06-09 Thread David Vrabel
When sending an event, use a new per-event channel lock to safely validate the event channel state. This new lock must be held when changing event channel state. To avoid having to take the remote event channel locks when sending to an interdomain event channel, the local and remote channel locks

[Xen-devel] [PATCHv1 2/6] evtchn: factor out freeing an event channel

2015-06-09 Thread David Vrabel
We're going to want to free an event channel from two places. Factor out the code into a free_evtchn() function. Signed-off-by: David Vrabel --- xen/common/event_channel.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/xen/common/event_channel.c b/xe

[Xen-devel] get page table entry from virtual address

2015-06-09 Thread HANNAS YAYA Issa
Hi all when there is a page fault the mmu stroes the virtual address that made the page fault in the cr2 register right? In xen this address is found in page fault handling routine do_page_fault in arch/x86/traps.c addr = read_cr2(). I want to get the page table entry associated with this virtu

Re: [Xen-devel] [PATCH v2 5/5] libxl: spawns two QEMUs for HVM guests

2015-06-09 Thread Ian Jackson
Stefano Stabellini writes ("Re: [PATCH v2 5/5] libxl: spawns two QEMUs for HVM guests"): > That is of great help, but this code is quite complex and I don't > understand it. I tried to complete the missing bits but I think I ended > up with something quite far from what you had in mind. At least i

Re: [Xen-devel] [PATCH 00/17] x86/hvm: I/O emulation cleanup and fix

2015-06-09 Thread Fabio Fantoni
Il 08/06/2015 16:33, Paul Durrant ha scritto: This patch series re-works much of the code involved in emulation of port and memory mapped I/O for HVM guests. The code has become very convoluted and, at least by inspection, certain emulations will apparently malfunction. The series is broken dow

Re: [Xen-devel] PCI Passthrough ARM Design : Draft1

2015-06-09 Thread Jaggi, Manish
Hi Ian/Stefano, As discussed in the call I have sent the design. Didn't got any feedback on this. Regards, Manish Jaggi From: xen-devel-boun...@lists.xen.org on behalf of Manish Jaggi Sent: Monday, June 8, 2015 12:52:55 AM To: xen-devel@lists.xen.org; I

Re: [Xen-devel] [RFC v2 07/15] vt-d: Add API to update IRTE when VT-d PI is used

2015-06-09 Thread Jan Beulich
>>> On 08.05.15 at 11:07, wrote: > +bool_t pi_update_irte(struct vcpu *v, struct pirq *pirq, uint8_t gvec) Without seeing the caller right away it's hard to judge, but generally I'd prefer functions to return -E... values as error indicators, i.e. > +{ > +struct irq_desc *desc; > +struct

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

2015-06-09 Thread osstest service user
flight 58228 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/58228/ 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. 5

Re: [Xen-devel] [PATCH v2 4/4] xen: Fix map/unmap of pcidev to ioreq server

2015-06-09 Thread Don Slutz
On 06/09/15 10:03, Paul Durrant wrote: >> -Original Message- >> From: Don Slutz [mailto:dsl...@verizon.com] >> Sent: 09 June 2015 14:51 >> To: Paul Durrant; Slutz, Donald Christopher; qemu-de...@nongnu.org; xen- >> de...@lists.xen.org >> Cc: Michael S. Tsirkin; Stefano Stabellini; Don Slutz

Re: [Xen-devel] [PATCH 3/3] xen/block: add multi-page ring support

2015-06-09 Thread Konrad Rzeszutek Wilk
On Tue, Jun 09, 2015 at 04:07:33PM +0200, Roger Pau Monné wrote: > El 09/06/15 a les 15.39, Konrad Rzeszutek Wilk ha escrit: > > On Tue, Jun 09, 2015 at 08:52:53AM +, Paul Durrant wrote: > >>> -Original Message- > >>> From: Bob Liu [mailto:bob@oracle.com] > >>> Sent: 09 June 2015 09

Re: [Xen-devel] [PATCH v2 0/4] Fix device listener interface for PCI to PCI bridges

2015-06-09 Thread Michael S. Tsirkin
On Tue, Jun 09, 2015 at 02:14:29PM +, Paul Durrant wrote: > > -Original Message- > > From: Michael S. Tsirkin [mailto:m...@redhat.com] > > Sent: 09 June 2015 13:30 > > To: Paul Durrant > > Cc: Don Slutz; qemu-de...@nongnu.org; xen-devel@lists.xen.org; Stefano > > Stabellini > > Subject:

Re: [Xen-devel] [RFC v2 06/15] vt-d: Extend struct iremap_entry to support VT-d Posted-Interrupts

2015-06-09 Thread Jan Beulich
>>> On 08.05.15 at 11:07, wrote: > --- a/xen/drivers/passthrough/vtd/iommu.h > +++ b/xen/drivers/passthrough/vtd/iommu.h > @@ -289,7 +289,7 @@ struct dma_pte { > /* interrupt remap entry */ > struct iremap_entry { >union { > -u64 lo_val; > +struct { u64 lo, hi; }; > struct { >

Re: [Xen-devel] [PATCH 4/4] x86/EFI: adjust EFI_MEMORY_WP handling for spec version 2.5

2015-06-09 Thread Konrad Rzeszutek Wilk
On Tue, Jun 09, 2015 at 10:08:56AM -0400, Konrad Rzeszutek Wilk wrote: > .. ..snip.. > > @@ -1220,6 +1224,9 @@ void __init efi_init_memory(void) > > prot |= _PAGE_PAT | MAP_SMALL_PAGES; > > else if ( desc->Attribute & (EFI_MEMORY_UC | EFI_MEMORY_UCE) ) > > prot |=

Re: [Xen-devel] [RFC v2 05/15] vmx: Initialize VT-d Posted-Interrupts Descriptor

2015-06-09 Thread Jan Beulich
>>> On 08.05.15 at 11:07, wrote: > --- a/xen/include/asm-x86/hvm/vmx/vmx.h > +++ b/xen/include/asm-x86/hvm/vmx/vmx.h > @@ -28,6 +28,9 @@ > #include > #include > #include > +#include > + > +extern uint8_t posted_intr_vector; > > typedef union { > struct { > @@ -125,6 +128,22 @@ stati

Re: [Xen-devel] [PATCH v2 5/5] libxl: spawns two QEMUs for HVM guests

2015-06-09 Thread Stefano Stabellini
On Tue, 9 Jun 2015, Ian Jackson wrote: > Ian Jackson writes ("Re: [PATCH v2 5/5] libxl: spawns two QEMUs for HVM > guests"): > > The spawn_outcome function does something like this: > > > >int worst_rc = 0; > > > >libxl_report_child_exitstatus(...) > >dcs->qemus[myself]->

Re: [Xen-devel] [RFC v2 04/15] vmx: Extend struct pi_desc to support VT-d Posted-Interrupts

2015-06-09 Thread Jan Beulich
>>> On 08.05.15 at 11:07, wrote: > Extend struct pi_desc according to VT-d Posted-Interrupts Spec. > > Signed-off-by: Feng Wu > --- > xen/include/asm-x86/hvm/vmx/vmcs.h | 15 +-- > 1 file changed, 13 insertions(+), 2 deletions(-) > > diff --git a/xen/include/asm-x86/hvm/vmx/vmcs.h

Re: [Xen-devel] [PATCH 4/4] x86/EFI: adjust EFI_MEMORY_WP handling for spec version 2.5

2015-06-09 Thread Andrew Cooper
On 09/06/15 14:54, Jan Beulich wrote: > That flag now means cachability rather than protection, and a new flag > EFI_MEMORY_RO got added in its place. > > Signed-off-by: Jan Beulich This matches my reading of the 2.5 spec. Reviewed-by: Andrew Cooper

Re: [Xen-devel] [RFC v2 03/15] vt-d: VT-d Posted-Interrupts feature detection

2015-06-09 Thread Jan Beulich
>>> On 08.05.15 at 11:07, wrote: > --- a/xen/drivers/passthrough/vtd/iommu.c > +++ b/xen/drivers/passthrough/vtd/iommu.c > @@ -2044,6 +2044,7 @@ static int init_vtd_hw(void) > if ( ioapic_to_iommu(IO_APIC_ID(apic)) == NULL ) > { > iommu_intremap = 0; > +

Re: [Xen-devel] [PATCH v2 0/4] Fix device listener interface for PCI to PCI bridges

2015-06-09 Thread Paul Durrant
> -Original Message- > From: Michael S. Tsirkin [mailto:m...@redhat.com] > Sent: 09 June 2015 13:30 > To: Paul Durrant > Cc: Don Slutz; qemu-de...@nongnu.org; xen-devel@lists.xen.org; Stefano > Stabellini > Subject: Re: [PATCH v2 0/4] Fix device listener interface for PCI to PCI > bridges

Re: [Xen-devel] [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}

2015-06-09 Thread Konrad Rzeszutek Wilk
On Tue, Jun 09, 2015 at 03:03:18PM +0100, Andrew Cooper wrote: > On 09/06/15 14:53, Jan Beulich wrote: > > From: Konrad Rzeszutek Wilk > > > > To help on certain platforms to run. > > > > Signed-off-by: Konrad Rzeszutek Wilk > > Signed-off-by: Jan Beulich > > > > --- a/xen/arch/x86/efi/efi-boot.

Re: [Xen-devel] [RFC v2 02/15] iommu: Add iommu_intpost to control VT-d Posted-Interrupts feature

2015-06-09 Thread Jan Beulich
>>> On 08.05.15 at 11:07, wrote: > @@ -51,6 +52,7 @@ bool_t __read_mostly iommu_passthrough; > bool_t __read_mostly iommu_snoop = 1; > bool_t __read_mostly iommu_qinval = 1; > bool_t __read_mostly iommu_intremap = 1; > +bool_t __read_mostly iommu_intpost = 0; Pointless initializer. > @@ -94,7

Re: [Xen-devel] [PATCH 3/4] EFI: support default attributes to map Runtime service areas with none given

2015-06-09 Thread Andrew Cooper
On 09/06/15 14:53, Jan Beulich wrote: > From: Konrad Rzeszutek Wilk > > For example on Dell machines we see: > > (XEN) 0fed18000-0fed19fff type=11 attr=8000 > (XEN) Unknown cachability for MFNs 0xfed18-0xfed19 > > Let's allow them to be mapped as UC. > > We also alter the 'efi

Re: [Xen-devel] [PATCH 4/4] x86/EFI: adjust EFI_MEMORY_WP handling for spec version 2.5

2015-06-09 Thread Konrad Rzeszutek Wilk
. ..snip.. > @@ -1220,6 +1224,9 @@ void __init efi_init_memory(void) > prot |= _PAGE_PAT | MAP_SMALL_PAGES; > else if ( desc->Attribute & (EFI_MEMORY_UC | EFI_MEMORY_UCE) ) > prot |= _PAGE_PWT | _PAGE_PCD | MAP_SMALL_PAGES; > +else if ( efi_bs_revision >=

Re: [Xen-devel] [PATCH 3/3] xen/block: add multi-page ring support

2015-06-09 Thread Roger Pau Monné
El 09/06/15 a les 15.39, Konrad Rzeszutek Wilk ha escrit: > On Tue, Jun 09, 2015 at 08:52:53AM +, Paul Durrant wrote: >>> -Original Message- >>> From: Bob Liu [mailto:bob@oracle.com] >>> Sent: 09 June 2015 09:50 >>> To: Bob Liu >>> Cc: xen-devel@lists.xen.org; David Vrabel; just...@

Re: [Xen-devel] [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}

2015-06-09 Thread Andrew Cooper
On 09/06/15 14:53, Jan Beulich wrote: > From: Konrad Rzeszutek Wilk > > To help on certain platforms to run. > > Signed-off-by: Konrad Rzeszutek Wilk > Signed-off-by: Jan Beulich > > --- a/xen/arch/x86/efi/efi-boot.h > +++ b/xen/arch/x86/efi/efi-boot.h > @@ -148,12 +148,16 @@ static void __init

Re: [Xen-devel] [PATCH v2 4/4] xen: Fix map/unmap of pcidev to ioreq server

2015-06-09 Thread Paul Durrant
> -Original Message- > From: Don Slutz [mailto:dsl...@verizon.com] > Sent: 09 June 2015 14:51 > To: Paul Durrant; Slutz, Donald Christopher; qemu-de...@nongnu.org; xen- > de...@lists.xen.org > Cc: Michael S. Tsirkin; Stefano Stabellini; Don Slutz > Subject: Re: [PATCH v2 4/4] xen: Fix map/u

Re: [Xen-devel] [PATCH v2 2/4] Extend device listener interface for PCI to PCI bridges

2015-06-09 Thread Don Slutz
On 06/09/15 09:55, Paul Durrant wrote: >> -Original Message- >> From: Don Slutz [mailto:dsl...@verizon.com] >> Sent: 09 June 2015 14:53 >> To: Paul Durrant; Slutz, Donald Christopher; qemu-de...@nongnu.org; xen- >> de...@lists.xen.org >> Cc: Michael S. Tsirkin; Stefano Stabellini; Don Slutz

Re: [Xen-devel] [PATCH 1/4] x86/EFI: fix EFI_MEMORY_WP handling

2015-06-09 Thread Andrew Cooper
On 09/06/15 14:52, Jan Beulich wrote: > Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper > > --- a/xen/common/efi/boot.c > +++ b/xen/common/efi/boot.c > @@ -1195,7 +1195,7 @@ void __init efi_init_memory(void) > } > > if ( desc->Attribute & EFI_MEMORY_WP ) > -

Re: [Xen-devel] [PATCH v2 2/4] Extend device listener interface for PCI to PCI bridges

2015-06-09 Thread Paul Durrant
> -Original Message- > From: Don Slutz [mailto:dsl...@verizon.com] > Sent: 09 June 2015 14:53 > To: Paul Durrant; Slutz, Donald Christopher; qemu-de...@nongnu.org; xen- > de...@lists.xen.org > Cc: Michael S. Tsirkin; Stefano Stabellini; Don Slutz > Subject: Re: [PATCH v2 2/4] Extend device

[Xen-devel] [PATCH 4/4] x86/EFI: adjust EFI_MEMORY_WP handling for spec version 2.5

2015-06-09 Thread Jan Beulich
That flag now means cachability rather than protection, and a new flag EFI_MEMORY_RO got added in its place. Signed-off-by: Jan Beulich --- a/xen/common/efi/boot.c +++ b/xen/common/efi/boot.c @@ -32,6 +32,8 @@ /* Using SetVirtualAddressMap() is incompatible with kexec: */ #undef USE_SET_VIRTUA

[Xen-devel] [PATCH 3/4] EFI: support default attributes to map Runtime service areas with none given

2015-06-09 Thread Jan Beulich
From: Konrad Rzeszutek Wilk For example on Dell machines we see: (XEN) 0fed18000-0fed19fff type=11 attr=8000 (XEN) Unknown cachability for MFNs 0xfed18-0xfed19 Let's allow them to be mapped as UC. We also alter the 'efi-rs' to be 'efi=rs' or 'efi=no-rs'. Signed-off-by: Ko

Re: [Xen-devel] [PATCH v2 2/4] Extend device listener interface for PCI to PCI bridges

2015-06-09 Thread Don Slutz
On 06/09/15 05:08, Paul Durrant wrote: >> -Original Message- >> From: Don Slutz [mailto:dsl...@verizon.com] >> Sent: 08 June 2015 22:19 >> To: qemu-de...@nongnu.org; xen-devel@lists.xen.org >> Cc: Michael S. Tsirkin; Paul Durrant; Stefano Stabellini; Don Slutz; Don >> Slutz >> Subject: [PA

[Xen-devel] [PATCH 2/4] EFI/early: add /mapbs to map EfiBootServices{Code, Data}

2015-06-09 Thread Jan Beulich
From: Konrad Rzeszutek Wilk To help on certain platforms to run. Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Jan Beulich --- a/xen/arch/x86/efi/efi-boot.h +++ b/xen/arch/x86/efi/efi-boot.h @@ -148,12 +148,16 @@ static void __init efi_arch_process_memo switch ( desc->Type )

  1   2   >