Re: [Xen-devel] [PATCHv9 3/4] gnttab: make the grant table lock a read-write lock

2015-05-22 Thread Jan Beulich
On 21.05.15 at 17:16, david.vra...@citrix.com wrote: On 21/05/15 15:53, Jan Beulich wrote: On 21.05.15 at 15:36, david.vra...@citrix.com wrote: On 21/05/15 11:32, Jan Beulich wrote: On 20.05.15 at 17:54, david.vra...@citrix.com wrote: @@ -827,9 +828,11 @@ __gnttab_map_grant_ref(

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

2015-05-22 Thread Jan Beulich
On 22.05.15 at 09:19, ian.campb...@citrix.com wrote: On Fri, 2015-05-22 at 08:11 +0100, Jan Beulich wrote: On 21.05.15 at 21:30, osst...@xenbits.xen.org wrote: flight 56898 xen-4.5-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/56898/ Regressions :-( Tests

[Xen-devel] [PATCH v3 7/8] xenalyze: remove traling whitespaces

2015-05-22 Thread Olaf Hering
Result of sed -i 's@[[:blank:]]\+$@@' tools/xentrace/xenalyze.c Signed-off-by: Olaf Hering o...@aepfle.de Acked-by: George Dunlap george.dun...@eu.citrix.com Acked-by: Wei Liu wei.l...@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Stefano Stabellini stefano.stabell...@eu.citrix.com Cc:

[Xen-devel] [PATCH v3 8/8] xenalyze: remove argp_program_version

2015-05-22 Thread Olaf Hering
Since xenalyze is now upstream its Open Source and part of the given release. Signed-off-by: Olaf Hering o...@aepfle.de Acked-by: George Dunlap george.dun...@eu.citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Stefano Stabellini stefano.stabell...@eu.citrix.com Cc: Ian Campbell

[Xen-devel] [PATCH v3 5/8] xenalyze: handle TRC_TRACE_WRAP_BUFFER

2015-05-22 Thread Olaf Hering
Signed-off-by: Olaf Hering o...@aepfle.de Acked-by: George Dunlap george.dun...@eu.citrix.com Acked-by: Wei Liu wei.l...@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Stefano Stabellini stefano.stabell...@eu.citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc: Wei Liu

[Xen-devel] [PATCH v3 6/8] xenalyze: handle more events in sched_process

2015-05-22 Thread Olaf Hering
Signed-off-by: Olaf Hering o...@aepfle.de Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Stefano Stabellini stefano.stabell...@eu.citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc: Wei Liu wei.l...@citrix.com --- tools/xentrace/xenalyze.c | 75 ++-

Re: [Xen-devel] [PATCH v2 1/4] x86: move syscall trampolines off the stack

2015-05-22 Thread Jan Beulich
On 22.05.15 at 10:25, jbeul...@suse.com wrote: On 21.05.15 at 13:48, jbeul...@suse.com wrote: On 21.05.15 at 13:08, andrew.coop...@citrix.com wrote: It might be wise to have a BUILD_BUG_ON() which confirms that STUBS_PER_PAGE is a power of two, which is a requirement given the way it is

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

2015-05-22 Thread Bob Liu
On 05/22/2015 04:31 PM, Paul Durrant wrote: -Original Message- From: Bob Liu [mailto:bob@oracle.com] Sent: 22 May 2015 01:00 To: xen-devel@lists.xen.org Cc: David Vrabel; just...@spectralogic.com; konrad.w...@oracle.com; Roger Pau Monne; Paul Durrant; Julien Grall;

Re: [Xen-devel] [PATCH] xen: Use ULL for GB macro

2015-05-22 Thread Jan Beulich
On 22.05.15 at 01:16, julien.gr...@citrix.com wrote: --- a/xen/arch/x86/apic.c +++ b/xen/arch/x86/apic.c @@ -992,7 +992,7 @@ void __init init_apic_mappings(void) apic_phys = mp_lapic_addr; set_fixmap_nocache(FIX_APIC_BASE, apic_phys); -apic_printk(APIC_VERBOSE, mapped

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

2015-05-22 Thread Ian Campbell
On Fri, 2015-05-22 at 08:11 +0100, Jan Beulich wrote: On 21.05.15 at 21:30, osst...@xenbits.xen.org wrote: flight 56898 xen-4.5-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/56898/ Regressions :-( Tests which did not succeed and are blocking, including

Re: [Xen-devel] [PATCH] x86/shadow: fix uninitialized rc shadow_track_dirty_vram()

2015-05-22 Thread Andrew Cooper
On 22/05/2015 07:29, Jan Beulich wrote: Commit bd1b4a71b3 (x86/shadow: fix shadow_track_dirty_vram to work on hvm guests), trying to mirror its HAP counterpart, deleted a couple of assignments to rc without making sure rc is initialized on all paths. Coverity ID: 1299410 Signed-off-by: Jan

Re: [Xen-devel] Regression due to device property: Make it possible to use secondary firmware nodes Re: Xen-unstable + linux 4.1-mergewindow: problems with PV guest pci passthrough: pcifront pci-0:

2015-05-22 Thread Sander Eikelenboom
Hello Sander, Friday, May 15, 2015, 12:47:27 AM, you wrote: Sorry for the resend, i messed up the to's en from's. Hi Konrad / David, One big snip on this thread, got some more debug info, hopefully this will lead to something: On a working kernel (with the two seemingly non related

Re: [Xen-devel] [PATCH v2 1/4] x86: move syscall trampolines off the stack

2015-05-22 Thread Jan Beulich
On 21.05.15 at 13:48, jbeul...@suse.com wrote: On 21.05.15 at 13:08, andrew.coop...@citrix.com wrote: On 21/05/15 11:15, Jan Beulich wrote: This is needed as stacks are going to become non-executable. Use separate stub pages (shared among suitable CPUs on the same node) instead. Stub areas

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

2015-05-22 Thread Ian Campbell
On Fri, 2015-05-22 at 08:48 +0100, Jan Beulich wrote: On 22.05.15 at 09:19, ian.campb...@citrix.com wrote: On Fri, 2015-05-22 at 08:11 +0100, Jan Beulich wrote: On 21.05.15 at 21:30, osst...@xenbits.xen.org wrote: flight 56898 xen-4.5-testing real [real]

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

2015-05-22 Thread Jan Beulich
On 21.05.15 at 21:30, osst...@xenbits.xen.org wrote: flight 56898 xen-4.5-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/56898/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run:

[Xen-devel] Windows 2008 R2 virtual machines blue screen on xen4.1.2

2015-05-22 Thread Xuzhichuang
Hi, all Recently, we encountered the problem that Windows 2008 R2 virtual machines blue screen when running on xen4.1.2, Mircrosoft engineer said it's a known issue with Intel Xeon processors: . Intel Xeon Processor E5 v2 Product Family: CA135 May 2014 -Incorrect Page Translation when EPT is

Re: [Xen-devel] Earlier embargoed pre-disclosure without patches

2015-05-22 Thread Jan Beulich
On 21.05.15 at 15:03, major.hay...@rackspace.com wrote: Would it be possible to send out a pre-disclosure notice as soon as permission is granted from the discoverer and the vulnerability is verified as valid? In other words, could a pre-disclosure email be sent to parties on the

Re: [Xen-devel] [PATCH v2 1/4] x86: move syscall trampolines off the stack

2015-05-22 Thread Andrew Cooper
On 22/05/2015 09:25, Jan Beulich wrote: On 21.05.15 at 13:48, jbeul...@suse.com wrote: On 21.05.15 at 13:08, andrew.coop...@citrix.com wrote: On 21/05/15 11:15, Jan Beulich wrote: This is needed as stacks are going to become non-executable. Use separate stub pages (shared among suitable CPUs

Re: [Xen-devel] [PATCH] x86/shadow: fix uninitialized rc shadow_track_dirty_vram()

2015-05-22 Thread Tim Deegan
At 07:29 +0100 on 22 May (1432279746), Jan Beulich wrote: Commit bd1b4a71b3 (x86/shadow: fix shadow_track_dirty_vram to work on hvm guests), trying to mirror its HAP counterpart, deleted a couple of assignments to rc without making sure rc is initialized on all paths. Coverity ID: 1299410

Re: [Xen-devel] Windows 2008 R2 virtual machines blue screen on xen4.1.2

2015-05-22 Thread Jan Beulich
On 22.05.15 at 09:08, xuzhichu...@huawei.com wrote: Recently, we encountered the problem that Windows 2008 R2 virtual machines blue screen when running on xen4.1.2, Mircrosoft engineer said it's a known issue with Intel Xeon processors: . Intel Xeon Processor E5 v2 Product Family: CA135 May

Re: [Xen-devel] [PATCH V4] xen/vm_event: Clean up control-register-write vm_events

2015-05-22 Thread Jan Beulich
On 22.05.15 at 09:50, rcojoc...@bitdefender.com wrote: On 05/22/2015 10:36 AM, Jan Beulich wrote: On 21.05.15 at 15:00, rcojoc...@bitdefender.com wrote: Should I drop the introduction of the XR0 event from this patch and come back to it in the following iteration of the series? Or simply

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

2015-05-22 Thread osstest service user
flight 56967 rumpuserxen real [real] http://logs.test-lab.xenproject.org/osstest/logs/56967/ 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

[Xen-devel] ACPI shutdown unreliable with win7?

2015-05-22 Thread Ian Campbell
In osstest self gate flight 56412 a change to make HVM guests configurably use xl shutdown -F (-F == use ACPI fallback if PV drivers absent) and apply the option to the win7 and winxpsp3 tests went into production. On winxpsp3 this appears to have been a success and things are working pretty well

Re: [Xen-devel] [PATCHv9 3/4] gnttab: make the grant table lock a read-write lock

2015-05-22 Thread David Vrabel
On 22/05/15 07:37, Jan Beulich wrote: On 21.05.15 at 17:16, david.vra...@citrix.com wrote: On 21/05/15 15:53, Jan Beulich wrote: On 21.05.15 at 15:36, david.vra...@citrix.com wrote: On 21/05/15 11:32, Jan Beulich wrote: On 20.05.15 at 17:54, david.vra...@citrix.com wrote: @@ -827,9 +828,11

[Xen-devel] [PATCH] x86/shadow: fix uninitialized rc shadow_track_dirty_vram()

2015-05-22 Thread Jan Beulich
Commit bd1b4a71b3 (x86/shadow: fix shadow_track_dirty_vram to work on hvm guests), trying to mirror its HAP counterpart, deleted a couple of assignments to rc without making sure rc is initialized on all paths. Coverity ID: 1299410 Signed-off-by: Jan Beulich jbeul...@suse.com ---

Re: [Xen-devel] [PATCH v7 2/4] xen/shadow: fix shadow_track_dirty_vram to work on hvm guests

2015-05-22 Thread Jan Beulich
On 14.05.15 at 17:06, roger@citrix.com wrote: @@ -3584,12 +3591,8 @@ int shadow_track_dirty_vram(struct domain *d, rc = -ENODATA; } else if (dirty_vram-last_dirty == -1) -{ /* still completely clean, just copy our empty bitmap */ -rc = -EFAULT;

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

2015-05-22 Thread Paul Durrant
-Original Message- From: Bob Liu [mailto:bob@oracle.com] Sent: 22 May 2015 01:00 To: xen-devel@lists.xen.org Cc: David Vrabel; just...@spectralogic.com; konrad.w...@oracle.com; Roger Pau Monne; Paul Durrant; Julien Grall; boris.ostrov...@oracle.com; linux-

Re: [Xen-devel] ACPI shutdown unreliable with win7?

2015-05-22 Thread Jan Beulich
On 22.05.15 at 10:54, ian.campb...@citrix.com wrote: May 22 01:28:33.149028 (XEN) VCPU information and callbacks for domain 18: May 22 01:28:33.156972 (XEN) VCPU0: CPU2 [has=F] poll=0 upcall_pend=00 upcall_mask=00 dirty_cpus={2} May 22 01:28:33.165038 (XEN)

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

2015-05-22 Thread osstest service user
flight 56936 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/56936/ 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

[Xen-devel] [seabios test] 56932: tolerable FAIL - PUSHED

2015-05-22 Thread osstest service user
flight 56932 seabios real [real] http://logs.test-lab.xenproject.org/osstest/logs/56932/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-amd64-i386-xl-qemuu-win7-amd64 9 windows-install fail like 55291 Tests which did not succeed, but

Re: [Xen-devel] [PATCH V4] xen/vm_event: Clean up control-register-write vm_events

2015-05-22 Thread Jan Beulich
On 21.05.15 at 15:00, rcojoc...@bitdefender.com wrote: --- a/xen/arch/x86/hvm/event.c +++ b/xen/arch/x86/hvm/event.c @@ -88,55 +88,29 @@ static int hvm_event_traps(uint8_t sync, vm_event_request_t *req) return 1; } -static inline -void hvm_event_cr(uint32_t reason, unsigned long

Re: [Xen-devel] [PATCH V4] xen/vm_event: Clean up control-register-write vm_events

2015-05-22 Thread Razvan Cojocaru
On 05/22/2015 10:36 AM, Jan Beulich wrote: On 21.05.15 at 15:00, rcojoc...@bitdefender.com wrote: --- a/xen/arch/x86/hvm/event.c +++ b/xen/arch/x86/hvm/event.c @@ -88,55 +88,29 @@ static int hvm_event_traps(uint8_t sync, vm_event_request_t *req) return 1; } -static inline -void

[Xen-devel] [PATCH v3 3/8] xenalyze: print newline after unknown hvm events

2015-05-22 Thread Olaf Hering
Signed-off-by: Olaf Hering o...@aepfle.de Acked-by: George Dunlap george.dun...@eu.citrix.com Acked-by: Wei Liu wei.l...@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Stefano Stabellini stefano.stabell...@eu.citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc: Wei Liu

[Xen-devel] [PATCH v3 0/8] add xenalyze to staging

2015-05-22 Thread Olaf Hering
Having xenalyze in the source tree makes it much easier to keep private debug code in hypervisor and xenalyze in sync. It helped alot while debugging the root cause for commit 607e8494c42397fb249191904066cace6ac9a880. changes between v2 and v3: - move to tools/xentrace changes between v1 and

[Xen-devel] [PATCH v3 2/8] xenalyze: increase NR_CPUS to 256

2015-05-22 Thread Olaf Hering
To match the hypervisor default which was introduced in 9da0c5b63933b9912e3903190601661813954d0d, bump the limit. Signed-off-by: Olaf Hering o...@aepfle.de Acked-by: George Dunlap george.dun...@eu.citrix.com Acked-by: Wei Liu wei.l...@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com Cc:

[Xen-devel] [PATCH v3 4/8] xenalyze: include odd mmio states in default output

2015-05-22 Thread Olaf Hering
Signed-off-by: Olaf Hering o...@aepfle.de Acked-by: George Dunlap george.dun...@eu.citrix.com Acked-by: Wei Liu wei.l...@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Stefano Stabellini stefano.stabell...@eu.citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc: Wei Liu

Re: [Xen-devel] ACPI shutdown unreliable with win7?

2015-05-22 Thread Andrew Cooper
On 22/05/15 09:54, Ian Campbell wrote: In osstest self gate flight 56412 a change to make HVM guests configurably use xl shutdown -F (-F == use ACPI fallback if PV drivers absent) and apply the option to the win7 and winxpsp3 tests went into production. On winxpsp3 this appears to have been

Re: [Xen-devel] ACPI shutdown unreliable with win7?

2015-05-22 Thread Ian Campbell
On Fri, 2015-05-22 at 09:59 +0100, Andrew Cooper wrote: On 22/05/15 09:54, Ian Campbell wrote: In osstest self gate flight 56412 a change to make HVM guests configurably use xl shutdown -F (-F == use ACPI fallback if PV drivers absent) and apply the option to the win7 and winxpsp3 tests

[Xen-devel] [seabios test] 56972: tolerable FAIL - PUSHED

2015-05-22 Thread osstest service user
flight 56972 seabios real [real] http://logs.test-lab.xenproject.org/osstest/logs/56972/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-xl-qemuu-debianhvm-amd64-xsm 9 debian-hvm-install fail never pass

Re: [Xen-devel] Regression due to device property: Make it possible to use secondary firmware nodes Re: Xen-unstable + linux 4.1-mergewindow: problems with PV guest pci passthrough: pcifront pci-0:

2015-05-22 Thread Boris Ostrovsky
On 05/22/2015 04:11 AM, Sander Eikelenboom wrote: Hello Sander, Friday, May 15, 2015, 12:47:27 AM, you wrote: Sorry for the resend, i messed up the to's en from's. Hi Konrad / David, One big snip on this thread, got some more debug info, hopefully this will lead to something: On a

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

2015-05-22 Thread osstest service user
flight 56979 linux-3.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/56979/ 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] [ovmf test] 56974: regressions - FAIL

2015-05-22 Thread osstest service user
flight 56974 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/56974/ 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

[Xen-devel] [PATCH v5 3/4] pci: add wrapper for parse_pci

2015-05-22 Thread elena . ufimtseva
From: Elena Ufimtseva elena.ufimts...@oracle.com For sbdf'si parsing in rmrr command line add __parse_pci with addtional parameter def_seg. __parse_pci will help to identify if segment was found in string being parsed or default segment was used. Make a wrapper parse_pci so the rest of the

[Xen-devel] [PATCH v5 1/4] pci: add PCI_SBDF macro

2015-05-22 Thread elena . ufimtseva
From: Elena Ufimtseva elena.ufimts...@oracle.com Signed-off-by: Elena Ufimtseva elena.ufimts...@oracle.com --- xen/include/xen/pci.h | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/include/xen/pci.h b/xen/include/xen/pci.h index 4377f3e..4ddf791 100644 --- a/xen/include/xen/pci.h +++

[Xen-devel] [PATCH v5 2/4] iommu VT-d: separate rmrr addition function

2015-05-22 Thread elena . ufimtseva
From: Elena Ufimtseva elena.ufimts...@oracle.com In preparation for auxiliary RMRR data provided on Xen command line, make RMRR adding a separate function. Also free memery for rmrr device scope in error path. Signed-off-by: Elena Ufimtseva elena.ufimts...@oracle.com ---

[Xen-devel] [PATCH v5 0/4] iommu: add rmrr Xen command line option

2015-05-22 Thread elena . ufimtseva
From: Elena Ufimtseva elena.ufimts...@oracle.com Add Xen command line option rmrr to specify RMRR regions for devices that are not defined in ACPI thus causing IO Page Fault while booting dom0 in PVH mode. These additional regions will be added to the list of RMRR regions parsed from ACPI.

Re: [Xen-devel] [osstest test] 56922: regressions - FAIL

2015-05-22 Thread Robert Hu
On Fri, 2015-05-22 at 15:21 +0100, Ian Campbell wrote: On Fri, 2015-05-22 at 14:42 +0100, Ian Campbell wrote: From my particular grub.cfg. For real usage setupboot_grub2 will obviously need to become cleverer to count things correctly. I've not tested extensively but the following

Re: [Xen-devel] [PATCH] Osstest: stop testing SEDF, start testing RTDS

2015-05-22 Thread Meng Xu
Hi Dario, 2015-05-22 3:19 GMT-07:00 Dario Faggioli dario.faggi...@citrix.com: [ Adding to Cc the people that I though I added when sending the patch, but that apparently I haven't...sorry :-( ] Thanks for cc.ing us. :-) On Fri, 2015-05-22 at 11:55 +0200, Dario Faggioli wrote: the SEDF

[Xen-devel] [linux-next test] 56978: tolerable FAIL

2015-05-22 Thread osstest service user
flight 56978 linux-next real [real] http://logs.test-lab.xenproject.org/osstest/logs/56978/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-armhf-armhf-libvirt 11 guest-start fail REGR. vs. 56791

[Xen-devel] [PATCH] dmar: device scope mem leak fix

2015-05-22 Thread elena . ufimtseva
From: Elena Ufimtseva elena.ufimts...@oracle.com Release memory allocated for scope.devices when disabling dmar units. Also set device count after memory allocation when device scope parsing. Signed-off-by: Elena Ufimtseva elena.ufimts...@oracle.com --- xen/drivers/passthrough/vtd/dmar.c | 7

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

2015-05-22 Thread osstest service user
flight 57033 rumpuserxen real [real] http://logs.test-lab.xenproject.org/osstest/logs/57033/ 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

[Xen-devel] [PATCH RFC 5/5] libxl/FreeBSD: add support for disk hotplug scripts

2015-05-22 Thread Roger Pau Monne
Allow FreeBSD to execute hotplug scripts when attaching disk devices. Signed-off-by: Roger Pau Monné roger@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc: Wei Liu wei.l...@citrix.com --- tools/libxl/libxl_freebsd.c | 114

[Xen-devel] [PATCH RFC 3/5] libxl/FreeBSD: write blkback path node

2015-05-22 Thread Roger Pau Monne
FreeBSD blkback doesn't use the physical-device xenstore node because it can handle both block devices and raw files directly. Instead introduce a new xenstore blkback node that is used by hotplug scripts to write the path to the block device or raw image. Signed-off-by: Roger Pau Monné

[Xen-devel] [PATCH RFC 0/5] tools/FreeBSD: enable disk hotplug scripts

2015-05-22 Thread Roger Pau Monne
This series enables the execution of disk hotplug scripts on FreeBSD. In order for this to work a patch for the FreeBSD kernel is also needed, which can be found at: https://people.freebsd.org/~royger/freebsd-hotplug/ This series introduces a new xenstore blkback node, called path that's used

[Xen-devel] [PATCH RFC 1/5] libxl: only write physical-device on Linux and NetBSD

2015-05-22 Thread Roger Pau Monne
physical-device is only used by Linux and NetBSD blkback, there's no need to write it when the host is using a different OS. Signed-off-by: Roger Pau Monné roger@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc: Wei Liu wei.l...@citrix.com ---

[Xen-devel] [PATCH RFC 4/5] hotplug/FreeBSD: add block hotplug script

2015-05-22 Thread Roger Pau Monne
This is the default hotplug script for block devices. Its only job is to copy the params blkback xenstore node to path. Signed-off-by: Roger Pau Monné roger@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc: Wei Liu wei.l...@citrix.com ---

Re: [Xen-devel] [osstest test] 56922: regressions - FAIL

2015-05-22 Thread Ian Campbell
Hi Robert and Longtao, On Fri, 2015-05-22 at 02:08 +, osstest service user wrote: flight 56922 osstest real [real] http://logs.test-lab.xenproject.org/osstest/logs/56922/ Regressions :-( This flight was testing: 477a9aa grub: remove patch to disable submenu from 20_linux_xen overla

[Xen-devel] [PATCH v2] xen: Use ULL for GB and MB macros

2015-05-22 Thread Julien Grall
On 32bit, GB(4) doesn't fit on an unsigned long. Modify MB to avoid further issue. Also, fix a couple of printf format in x86 which breaks after using unsigned long long. Signed-off-by: Julien Grall julien.gr...@citrix.com --- Changes in v2: - Use %Lx rather than %llx - Use

Re: [Xen-devel] [PATCH v6 05/10] xsm: add XENMEM_soft_reset support

2015-05-22 Thread Jan Beulich
On 13.05.15 at 11:49, vkuzn...@redhat.com wrote: --- a/xen/include/xsm/dummy.h +++ b/xen/include/xsm/dummy.h @@ -193,6 +193,13 @@ static XSM_INLINE int xsm_memory_exchange(XSM_DEFAULT_ARG struct domain *d) return xsm_default_action(action, current-domain, d); } +static XSM_INLINE

Re: [Xen-devel] [RFC PATCH 00/13] Persistent grant maps for xen net drivers

2015-05-22 Thread Joao Martins
On 19 May 2015, at 17:39, Wei Liu wei.l...@citrix.com wrote: On Tue, May 12, 2015 at 07:18:24PM +0200, Joao Martins wrote: There have been recently[3] some discussions and issues raised on persistent grants for the block layer, though the numbers above show some significant improvements

Re: [Xen-devel] [linux-next test] 56810: regressions - FAIL

2015-05-22 Thread Ian Campbell
(I thought I'd hit send on this already, sorry if it is a repeat) On Fri, 2015-05-22 at 10:17 +0100, Ian Campbell wrote: On Thu, 2015-05-21 at 18:05 +0100, Ian Campbell wrote: Assuming this flight produces something useful (i.e. a pass) then I'll look into a bisect. With this and a couple

[Xen-devel] [RFC][v2][PATCH 08/14] tools: extend xc_assign_device() to support rdm reservation policy

2015-05-22 Thread Tiejun Chen
This patch passes rdm reservation policy to xc_assign_device() so the policy is checked when assigning devices to a VM. Signed-off-by: Tiejun Chen tiejun.c...@intel.com --- tools/libxc/include/xenctrl.h | 3 ++- tools/libxc/xc_domain.c | 4 +++- tools/libxl/libxl_pci.c

[Xen-devel] [RFC][v2][PATCH 14/14] xen/vtd: enable USB device assignment

2015-05-22 Thread Tiejun Chen
Before we refine RMRR mechanism, USB RMRR may conflict with guest bios region so we always ignore USB RMRR. Now this can be gone when we enable pci_force to check/reserve RMRR. Signed-off-by: Tiejun Chen tiejun.c...@intel.com --- xen/drivers/passthrough/vtd/dmar.h | 1 -

Re: [Xen-devel] [PATCH v6 04/10] xen: Introduce XENMEM_soft_reset operation

2015-05-22 Thread Jan Beulich
On 13.05.15 at 11:49, vkuzn...@redhat.com wrote: --- a/xen/common/memory.c +++ b/xen/common/memory.c @@ -580,6 +580,234 @@ static long memory_exchange(XEN_GUEST_HANDLE_PARAM(xen_memory_exchange_t) arg) return rc; } +static long

[Xen-devel] [RFC][v2][PATCH 13/14] hvmloader/e820: construct guest e820 table

2015-05-22 Thread Tiejun Chen
Now we can use that memory map to build our final e820 table but it may need to reorder all e820 entries. Signed-off-by: Tiejun Chen tiejun.c...@intel.com --- tools/firmware/hvmloader/e820.c | 62 +++-- 1 file changed, 48 insertions(+), 14 deletions(-) diff

Re: [Xen-devel] [PATCH] Osstest: stop testing SEDF, start testing RTDS

2015-05-22 Thread Dario Faggioli
On Fri, 2015-05-22 at 11:02 +0100, Ian Campbell wrote: On Fri, 2015-05-22 at 11:55 +0200, Dario Faggioli wrote: the SEDF scheduler is about to be deprecated and go away (see [1]). OTOH, the RTDS scheduler is here to stay. It therefore makes sense to stop smoke testing the former in

Re: [Xen-devel] [RFC PATCH 02/13] xen-netback: xenbus feature persistent support

2015-05-22 Thread Joao Martins
On 19 May 2015, at 17:19, Wei Liu wei.l...@citrix.com wrote: On Tue, May 12, 2015 at 07:18:26PM +0200, Joao Martins wrote: Checks for feature-persistent that indicates persistent grants support. Adds max_persistent_grants module param that specifies the max number of persistent grants, which

Re: [Xen-devel] [RFC][v2][PATCH 10/14] tools: extend XENMEM_set_memory_map

2015-05-22 Thread Julien Grall
Hi, On 22/05/2015 10:35, Tiejun Chen wrote: Here we'll construct a basic guest e820 table via XENMEM_set_memory_map. This table includes lowmem, highmem and RDMs if they exist. And hvmloader would need this info later. Signed-off-by: Tiejun Chen tiejun.c...@intel.com ---

Re: [Xen-devel] [RFC PATCH 04/13] xen-netback: implement RX persistent grants

2015-05-22 Thread Joao Martins
On 19 May 2015, at 17:32, Wei Liu wei.l...@citrix.com wrote: On Tue, May 12, 2015 at 07:18:28PM +0200, Joao Martins wrote: It starts by doing a lookup in the tree for a gref. If no persistent grant is found on the tree, it will do grant copy and prepare the grant maps. Finally valides the

Re: [Xen-devel] [RFC PATCH 03/13] xen-netback: implement TX persistent grants

2015-05-22 Thread Joao Martins
On 19 May 2015, at 17:23, Wei Liu wei.l...@citrix.com wrote: On Tue, May 12, 2015 at 07:18:27PM +0200, Joao Martins wrote: Introduces persistent grants for TX path which follows similar code path as the grant mapping. It starts by checking if there's a persistent grant available for header

[Xen-devel] [PATCH v1] x86/pvh: disable posted interrupts

2015-05-22 Thread Roger Pau Monne
Enabling posted interrupts requires the virtual interrupt delivery feature, which is disabled for PVH guests, so make sure posted interrupts are also disabled or else vmlaunch will fail. Signed-off-by: Roger Pau Monné roger@citrix.com Reported-and-Tested-by: Lars Eggert l...@netapp.com

[Xen-devel] [PATCH RFC 2/5] blkif: document new blkback path xenstore node

2015-05-22 Thread Roger Pau Monne
FreeBSD blkback uses the path xenstore node in order to fetch the path to the underlying backing storage (either a block device or raw image). This node is set by the hotplug scripts. Signed-off-by: Roger Pau Monné roger@citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc: Ian Jackson

Re: [Xen-devel] [PATCH] xen: Use ULL for GB macro

2015-05-22 Thread Julien Grall
Hi Jan, On 22/05/2015 07:53, Jan Beulich wrote: On 22.05.15 at 01:16, julien.gr...@citrix.com wrote: --- a/xen/arch/x86/apic.c +++ b/xen/arch/x86/apic.c @@ -992,7 +992,7 @@ void __init init_apic_mappings(void) apic_phys = mp_lapic_addr; set_fixmap_nocache(FIX_APIC_BASE,

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

2015-05-22 Thread osstest service user
flight 56937 linux-3.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/56937/ 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 PATCH 06/13] xen-netback: copy buffer on xenvif_start_xmit()

2015-05-22 Thread Joao Martins
On 19 May 2015, at 17:35, Wei Liu wei.l...@citrix.com wrote: On Tue, May 12, 2015 at 07:18:30PM +0200, Joao Martins wrote: By introducing persistent grants we speed up the RX thread with the decreased copy cost, that leads to a throughput decrease of 20%. It is observed that the rx_queue

Re: [Xen-devel] [RFC][v2][PATCH 07/14] xen/passthrough: extend hypercall to support rdm reservation policy

2015-05-22 Thread Julien Grall
Hi, On 22/05/2015 10:35, Tiejun Chen wrote: diff --git a/xen/include/public/domctl.h b/xen/include/public/domctl.h index 0c0ea4a..203c80e 100644 --- a/xen/include/public/domctl.h +++ b/xen/include/public/domctl.h @@ -499,6 +499,11 @@ struct xen_domctl_assign_device {

Re: [Xen-devel] [osstest test] 56922: regressions - FAIL

2015-05-22 Thread Ian Campbell
On Fri, 2015-05-22 at 10:57 +0100, Ian Campbell wrote: Hi Robert and Longtao, On Fri, 2015-05-22 at 02:08 +, osstest service user wrote: flight 56922 osstest real [real] http://logs.test-lab.xenproject.org/osstest/logs/56922/ Regressions :-( This flight was testing: 477a9aa

Re: [Xen-devel] [PATCH v3 1/8] xenalyze: add to tools/xentrace/

2015-05-22 Thread Olaf Hering
On Fri, May 22, Wei Liu wrote: On Fri, May 22, 2015 at 08:19:32AM +, Olaf Hering wrote: BIN = xentrace xentrace_setsize +SBIN = xenalyze Why is xenalyze not placed in the same directory as xentrace? My impression is that they are closely related. What did I miss? And

Re: [Xen-devel] [PATCH v3 1/8] xenalyze: add to tools/xentrace/

2015-05-22 Thread Wei Liu
On Fri, May 22, 2015 at 01:32:01PM +0200, Olaf Hering wrote: On Fri, May 22, Wei Liu wrote: On Fri, May 22, 2015 at 08:19:32AM +, Olaf Hering wrote: BIN = xentrace xentrace_setsize +SBIN = xenalyze Why is xenalyze not placed in the same directory as xentrace? My

Re: [Xen-devel] [PATCH] Osstest: stop testing SEDF, start testing RTDS

2015-05-22 Thread Ian Campbell
On Fri, 2015-05-22 at 11:55 +0200, Dario Faggioli wrote: the SEDF scheduler is about to be deprecated and go away (see [1]). OTOH, the RTDS scheduler is here to stay. It therefore makes sense to stop smoke testing the former in favour of the latter. Note that the -sedf-pin jobs where only

Re: [Xen-devel] [PATCH] Osstest: stop testing SEDF, start testing RTDS

2015-05-22 Thread Dario Faggioli
[ Adding to Cc the people that I though I added when sending the patch, but that apparently I haven't...sorry :-( ] On Fri, 2015-05-22 at 11:55 +0200, Dario Faggioli wrote: the SEDF scheduler is about to be deprecated and go away (see [1]). OTOH, the RTDS scheduler is here to stay. It

[Xen-devel] xen-netfront crash when detaching network while some network activity

2015-05-22 Thread Marek Marczykowski-Górecki
Hi all, I'm experiencing xen-netfront crash when doing xl network-detach while some network activity is going on at the same time. It happens only when domU has more than one vcpu. Not sure if this matters, but the backend is in another domU (not dom0). I'm using Xen 4.2.2. It happens on kernel

Re: [Xen-devel] [PATCH] Osstest: stop testing SEDF, start testing RTDS

2015-05-22 Thread Ian Campbell
On Fri, 2015-05-22 at 12:13 +0200, Dario Faggioli wrote: On Fri, 2015-05-22 at 11:02 +0100, Ian Campbell wrote: On Fri, 2015-05-22 at 11:55 +0200, Dario Faggioli wrote: the SEDF scheduler is about to be deprecated and go away (see [1]). OTOH, the RTDS scheduler is here to stay.

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

2015-05-22 Thread osstest service user
flight 56941 xen-4.5-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/56941/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemut-win7-amd64 16 guest-stop fail REGR. vs. 56728 Tests which are

Re: [Xen-devel] [PATCH v3 8/8] xenalyze: remove argp_program_version

2015-05-22 Thread Wei Liu
On Fri, May 22, 2015 at 08:19:39AM +, Olaf Hering wrote: Since xenalyze is now upstream its Open Source and part of the given release. Signed-off-by: Olaf Hering o...@aepfle.de Acked-by: George Dunlap george.dun...@eu.citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Stefano

Re: [Xen-devel] [PATCH v3 1/8] xenalyze: add to tools/xentrace/

2015-05-22 Thread Wei Liu
On Fri, May 22, 2015 at 08:19:32AM +, Olaf Hering wrote: This merges xenalyze.hg, changeset 150:24308507be1d, into tools/xentrace/xenalyze.c to have the tool and public/trace.h in one place. Signed-off-by: Olaf Hering o...@aepfle.de Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Stefano

[Xen-devel] [RFC][v2][PATCH 05/14] xen/x86/p2m: introduce set_identity_p2m_entry

2015-05-22 Thread Tiejun Chen
We will create this sort of identity mapping as follows: If the gfn space is unoccupied, we just set the mapping. If the space is already occupied by 1:1 mappings, do nothing. Failed for any other cases. Signed-off-by: Tiejun Chen tiejun.c...@intel.com --- xen/arch/x86/mm/p2m.c | 30

[Xen-devel] [RFC][v2][PATCH 00/14] Fix RMRR

2015-05-22 Thread Tiejun Chen
v2: * Instead of that fixed predefined rdm memory boundary, we'd like to introduce a parameter, rdm_mem_boundary, to set this threshold value. * Remove that existing USB hack. * Make sure the MMIO regions all fit in the available resource window * Rename our policy, force/try -

[Xen-devel] [RFC][v2][PATCH 01/14] tools: introduce some new parameters to set rdm policy

2015-05-22 Thread Tiejun Chen
This patch introduces user configurable parameters to specify RDM resource and according policies, Global RDM parameter: rdm = [ 'type=none/host, reserve=strict/relaxed' ] Per-device RDM parameter: pci = [ 'sbdf, rdm_reserve=strict/relaxed' ] Global RDM parameter, type, allows user to

[Xen-devel] [RFC][v2][PATCH 02/14] introduce XENMEM_reserved_device_memory_map

2015-05-22 Thread Tiejun Chen
From: Jan Beulich jbeul...@suse.com This is a prerequisite for punching holes into HVM and PVH guests' P2M to allow passing through devices that are associated with (on VT-d) RMRRs. Signed-off-by: Jan Beulich jbeul...@suse.com Signed-off-by: Tiejun Chen tiejun.c...@intel.com ---

[Xen-devel] [RFC][v2][PATCH 09/14] xen: enable XENMEM_memory_map in hvm

2015-05-22 Thread Tiejun Chen
This patch enables XENMEM_memory_map in hvm. So we can use it to setup the e820 mappings. Signed-off-by: Tiejun Chen tiejun.c...@intel.com Reviewed-by: Tim Deegan t...@xen.org --- xen/arch/x86/hvm/hvm.c | 2 -- xen/arch/x86/mm.c | 6 -- 2 files changed, 8 deletions(-) diff --git

[Xen-devel] [RFC][v2][PATCH 11/14] hvmloader: get guest memory map into memory_map[]

2015-05-22 Thread Tiejun Chen
Now we get this map layout by call XENMEM_memory_map then save them into one global variable memory_map[]. It should include lowmem range, rdm range and highmem range. Note rdm range and highmem range may not exist in some cases. And here we need to check if any reserved memory conflicts with

[Xen-devel] [RFC][v2][PATCH 06/14] xen:vtd: create RMRR mapping

2015-05-22 Thread Tiejun Chen
RMRR reserved regions must be setup in the pfn space with an identity mapping to reported mfn. However existing code has problem to setup correct mapping when VT-d shares EPT page table, so lead to problem when assigning devices (e.g GPU) with RMRR reported. So instead, this patch aims to setup

[Xen-devel] [RFC][v2][PATCH 07/14] xen/passthrough: extend hypercall to support rdm reservation policy

2015-05-22 Thread Tiejun Chen
This patch extends the existing hypercall to support rdm reservation policy. We return error or just throw out a warning message depending on whether the policy is 'force' or 'try'. And in some cases, e.g. add a device to hwdomain, and remove a device from user domain, 'try' is fine enough since

[Xen-devel] [RFC][v2][PATCH 04/14] tools/libxl: detect and avoid conflicts with RDM

2015-05-22 Thread Tiejun Chen
While building a VM, HVM domain builder provides struct hvm_info_table{} to help hvmloader. Currently it includes two fields to construct guest e820 table by hvmloader, low_mem_pgend and high_mem_pgend. So we should check them to fix any conflict with RAM. RMRR can reside in address space beyond

[Xen-devel] [RFC][v2][PATCH 12/14] hvmloader/pci: skip reserved ranges

2015-05-22 Thread Tiejun Chen
When allocating mmio address for PCI bars, we need to make sure they don't overlap with reserved regions. Signed-off-by: Tiejun Chen tiejun.c...@intel.com --- tools/firmware/hvmloader/pci.c | 36 ++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git

[Xen-devel] [PATCH] Osstest: stop testing SEDF, start testing RTDS

2015-05-22 Thread Dario Faggioli
the SEDF scheduler is about to be deprecated and go away (see [1]). OTOH, the RTDS scheduler is here to stay. It therefore makes sense to stop smoke testing the former in favour of the latter. Note that the -sedf-pin jobs where only added in order to try to debug a long standing issue with SEDF;

Re: [Xen-devel] [PATCH v3 6/8] xenalyze: handle more events in sched_process

2015-05-22 Thread Wei Liu
On Fri, May 22, 2015 at 08:19:37AM +, Olaf Hering wrote: Signed-off-by: Olaf Hering o...@aepfle.de Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Stefano Stabellini stefano.stabell...@eu.citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc: Wei Liu wei.l...@citrix.com Acked-by: Wei Liu

Re: [Xen-devel] [osstest test] 56922: regressions - FAIL

2015-05-22 Thread Ian Campbell
On Fri, 2015-05-22 at 20:47 +0800, Robert Hu wrote: On Fri, 2015-05-22 at 13:30 +0100, Ian Campbell wrote: On Fri, 2015-05-22 at 12:32 +0100, Ian Campbell wrote: I'm currently testing the patch below, if it works then I intend to fold it into Parsing grub which has 'submenu' primitive and

Re: [Xen-devel] [osstest test] 56922: regressions - FAIL

2015-05-22 Thread Ian Campbell
On Fri, 2015-05-22 at 13:58 +0100, Ian Campbell wrote: On Fri, 2015-05-22 at 20:47 +0800, Robert Hu wrote: On Fri, 2015-05-22 at 13:30 +0100, Ian Campbell wrote: On Fri, 2015-05-22 at 12:32 +0100, Ian Campbell wrote: I'm currently testing the patch below, if it works then I intend to

  1   2   >