Re: [Xen-devel] Crash in set_cpu_sibling_map() booting Xen 4.6.0 on Fusion

2015-11-25 Thread Jan Beulich
>>> On 26.11.15 at 00:27, wrote: > A few more data points: I also tested Xen 4.6 on VMware ESXi 5.5, and > it yields similar results. Not surprising, since Fusion uses basically > the same virtualization engine. > > However, ESXi offers many more choices of number of processors, number > of cores

[Xen-devel] Bug-reporting best practice? Xen/Gentoo -- Preparing to log interrupt info sometime after feb. 2016.

2015-11-25 Thread Håkon Alstadheim
Hi all, I'm not a developer but I would like to set up my Xen system to get bug reports as useful as possible. At present I am logging the xen console via serial port, and I am running Xen compiled from gentoo ebuild with "debug" use flag. Is there anything more I need to set up to be able to colle

Re: [Xen-devel] [PATCH v2 1/2] x86/VPMU: return correct fixed PMC count

2015-11-25 Thread Jan Beulich
>>> On 25.11.15 at 20:32, wrote: > On 11/25/2015 10:31 AM, Jan Beulich wrote: >>> However, I just noticed that various control and status registers are >>> not available for v1. I wonder whether we should even support version 1 >>> since we'd need to add whole lot of 'if (supported)' throughout th

Re: [Xen-devel] [PATCH] build: fix dependencies for files compiled from their parent directory

2015-11-25 Thread Jan Beulich
>>> On 25.11.15 at 17:26, wrote: > On Wed, 2015-11-25 at 09:16 -0700, Jan Beulich wrote: >> The use of $(basename ...) here was wrong (yet I'm sure I tested it). > > Is the issue here that xen/arch/x86/x86_64/.compat.o.d ought really to be > xen/arch/x86/.x86_64.compat.o.d? No, xen/arch/x86/x86_

Re: [Xen-devel] [PATCH v5 6/9] libxc: create unmapped initrd in domain builder if supported

2015-11-25 Thread Juergen Gross
On 25/11/15 17:12, Boris Ostrovsky wrote: > On 11/12/2015 08:43 AM, Juergen Gross wrote: >> In case the kernel of a new pv-domU indicates it is supporting an >> unmapped initrd, don't waste precious virtual space for the initrd, >> but allocate only guest physical memory for it. > > This patch bre

Re: [Xen-devel] [PATCH] iommu/quirk: disable shared EPT for Sandybridge and earlier processors.

2015-11-25 Thread Tian, Kevin
> From: Malcolm Crossley [mailto:malcolm.cross...@citrix.com] > Sent: Wednesday, November 25, 2015 11:59 PM > > On 25/11/15 15:38, Jan Beulich wrote: > On 25.11.15 at 16:13, wrote: > >> On 25/11/15 10:49, Jan Beulich wrote: > >> On 25.11.15 at 11:28, wrote: > On 24/11/15 17:41, Jan

Re: [Xen-devel] [PATCH v5 00/10] xen-block: multi hardware-queues/rings support

2015-11-25 Thread Bob Liu
On 11/26/2015 10:57 AM, Konrad Rzeszutek Wilk wrote: > On Thu, Nov 26, 2015 at 10:28:10AM +0800, Bob Liu wrote: >> >> On 11/26/2015 06:12 AM, Konrad Rzeszutek Wilk wrote: >>> On Wed, Nov 25, 2015 at 03:56:03PM -0500, Konrad Rzeszutek Wilk wrote: On Wed, Nov 25, 2015 at 02:25:07PM -0500, Konra

[Xen-devel] [linux-next test] 65101: tolerable trouble: broken/fail/pass

2015-11-25 Thread osstest service owner
flight 65101 linux-next real [real] http://logs.test-lab.xenproject.org/osstest/logs/65101/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-armhf-armhf-xl-rtds 3 host-install(3) broken REGR. vs. 65059 test-amd64-i386-xl6

Re: [Xen-devel] [PATCH] target: xen-scsiback: Return proper -Exx instead of -1.

2015-11-25 Thread Juergen Gross
On 25/11/15 20:24, Konrad Rzeszutek Wilk wrote: > We could return EINVAL but EBUSY (or EALREADY?)is more appropiate. > > CC: jgr...@suse.com > Signed-off-by: Konrad Rzeszutek Wilk While it doesn't really matter it's cleaner. Reviewed-by: Juergen Gross > --- > drivers/xen/xen-scsiback.c | 2 +

Re: [Xen-devel] [PATCH v8 03/21] xen/x86: allow disabling the emulated local apic

2015-11-25 Thread Tian, Kevin
> From: Roger Pau Monne [mailto:roger@citrix.com] > Sent: Saturday, November 07, 2015 12:06 AM > > Signed-off-by: Roger Pau Monné > Reviewed-by: Andrew Cooper > Acked-by: Jan Beulich > Cc: Jan Beulich > Cc: Andrew Cooper > Cc: Jun Nakajima > Cc: Eddie Dong > Cc: Kevin Tian Acked-by: K

Re: [Xen-devel] [PATCH v8 02/21] xen/vlapic: fixes for HVM code when running without a vlapic

2015-11-25 Thread Tian, Kevin
> From: Roger Pau Monne [mailto:roger@citrix.com] > Sent: Saturday, November 07, 2015 12:06 AM > > The HVM related code (SVM, VMX) generally assumed that a local apic is > always present. With the introduction of a HVM mode were the local apic can > be removed, some of this broken code paths a

Re: [Xen-devel] [PATCH v5 6/9] libxc: create unmapped initrd in domain builder if supported

2015-11-25 Thread Juergen Gross
On 26/11/15 06:06, Juergen Gross wrote: > On 25/11/15 17:12, Boris Ostrovsky wrote: >> On 11/12/2015 08:43 AM, Juergen Gross wrote: >>> In case the kernel of a new pv-domU indicates it is supporting an >>> unmapped initrd, don't waste precious virtual space for the initrd, >>> but allocate only gue

Re: [Xen-devel] [PATCH v5 6/9] libxc: create unmapped initrd in domain builder if supported

2015-11-25 Thread Juergen Gross
On 25/11/15 17:12, Boris Ostrovsky wrote: > On 11/12/2015 08:43 AM, Juergen Gross wrote: >> In case the kernel of a new pv-domU indicates it is supporting an >> unmapped initrd, don't waste precious virtual space for the initrd, >> but allocate only guest physical memory for it. > > This patch bre

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

2015-11-25 Thread osstest service owner
flight 65100 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/65100/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-ovmf-amd64 9 debian-hvm-install fail REGR. vs. 64579 test-amd64-amd64-xl

Re: [Xen-devel] [PATCH v5 00/10] xen-block: multi hardware-queues/rings support

2015-11-25 Thread Konrad Rzeszutek Wilk
On Thu, Nov 26, 2015 at 10:28:10AM +0800, Bob Liu wrote: > > On 11/26/2015 06:12 AM, Konrad Rzeszutek Wilk wrote: > > On Wed, Nov 25, 2015 at 03:56:03PM -0500, Konrad Rzeszutek Wilk wrote: > >> On Wed, Nov 25, 2015 at 02:25:07PM -0500, Konrad Rzeszutek Wilk wrote: > xen/blkback: separate ri

Re: [Xen-devel] [PATCH v5 00/10] xen-block: multi hardware-queues/rings support

2015-11-25 Thread Bob Liu
On 11/26/2015 06:12 AM, Konrad Rzeszutek Wilk wrote: > On Wed, Nov 25, 2015 at 03:56:03PM -0500, Konrad Rzeszutek Wilk wrote: >> On Wed, Nov 25, 2015 at 02:25:07PM -0500, Konrad Rzeszutek Wilk wrote: xen/blkback: separate ring information out of struct xen_blkif xen/blkback: pseudo s

[Xen-devel] can I read or write the physical memory of a nested xen?

2015-11-25 Thread Big Strong
I installed a nested xen (L1) on xen (L0). Is it possible to read or write the physical memory of L1 from dom0 of L0? Is the L1 directly access the physical memory or need to translate through L0? ___ Xen-devel mailing list Xen-devel@lists.xen.org http://

Re: [Xen-devel] [PATCH] xen/arm: implement GICD_ICACTIVER read/write

2015-11-25 Thread Shannon Zhao
On 2015/11/26 0:40, Stefano Stabellini wrote: > Implement GICD_ICACTIVER and GICD_ISACTIVER reads by looking for the > GIC_IRQ_GUEST_ACTIVE bit in the relevant struct pending_irq. However > given that the pending to active transaction for irqs in LRs in done in > hardware, the GIC_IRQ_GUEST_ACTIV

[Xen-devel] [PATCH v3] x86/VPMU: implement ipc and arch filter flags

2015-11-25 Thread Brendan Gregg
This introduces a way to have a restricted VPMU, by specifying one of two predefined groups of PMCs to make available. For secure environments, this allows the VPMU to be used without needing to enable all PMCs. Signed-off-by: Brendan Gregg --- Changes in v3: * addressing review comments from Bor

[Xen-devel] [linux-mingo-tip-master test] 65095: regressions - FAIL

2015-11-25 Thread osstest service owner
flight 65095 linux-mingo-tip-master real [real] http://logs.test-lab.xenproject.org/osstest/logs/65095/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-amd64-pvgrub 6 xen-boot fail REGR. vs. 60684 test-amd64

Re: [Xen-devel] [PATCH v2 2/2] x86/VPMU: implement ipc and arch filter flags

2015-11-25 Thread Brendan Gregg
On Wed, Nov 25, 2015 at 7:13 AM, Boris Ostrovsky wrote: > On 11/24/2015 06:53 PM, Brendan Gregg wrote: > >> This introduces a way to have a restricted VPMU, by specifying one of two >> predefined groups of PMCs to make available. For secure environments, this >> allows the VPMU to be used without

Re: [Xen-devel] Crash in set_cpu_sibling_map() booting Xen 4.6.0 on Fusion

2015-11-25 Thread Ed Swierk
A few more data points: I also tested Xen 4.6 on VMware ESXi 5.5, and it yields similar results. Not surprising, since Fusion uses basically the same virtualization engine. However, ESXi offers many more choices of number of processors, number of cores, hyperthreading, etc. The weird processor ID

[Xen-devel] [ovmf baseline-only test] 38345: regressions - trouble: blocked/broken/fail/pass

2015-11-25 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 38345 ovmf real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/38345/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-pvops 3 capture-logs

Re: [Xen-devel] [PATCH v5 00/10] xen-block: multi hardware-queues/rings support

2015-11-25 Thread Konrad Rzeszutek Wilk
On Wed, Nov 25, 2015 at 03:56:03PM -0500, Konrad Rzeszutek Wilk wrote: > On Wed, Nov 25, 2015 at 02:25:07PM -0500, Konrad Rzeszutek Wilk wrote: > > > xen/blkback: separate ring information out of struct xen_blkif > > > xen/blkback: pseudo support for multi hardware queues/rings > > > xen/blkb

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

2015-11-25 Thread osstest service owner
flight 65098 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/65098/ Perfect :-) All tests in this flight passed version targeted for testing: ovmf 9f419739d1ae849e0c4d75a131502f9367ca4a7d baseline version: ovmf 3164361121526318f278a7c1b84bdcc475d

[Xen-devel] [PATCH] libxl: Be more careful with error handling in libxl__dm_runas_helper()

2015-11-25 Thread Boris Ostrovsky
getpwnam_r() has fairly complicated return rules. From man pages: RETURN VALUE ... On success, getpwnam_r() and getpwuid_r() return zero, and set *result to pwd. If no matching password record was found, these functions return 0 and store NULL in *result. In case of err

Re: [Xen-devel] [PATCH v5 00/10] xen-block: multi hardware-queues/rings support

2015-11-25 Thread Konrad Rzeszutek Wilk
On Wed, Nov 25, 2015 at 02:25:07PM -0500, Konrad Rzeszutek Wilk wrote: > > xen/blkback: separate ring information out of struct xen_blkif > > xen/blkback: pseudo support for multi hardware queues/rings > > xen/blkback: get the number of hardware queues/rings from blkfront > > xen/blkback: m

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

2015-11-25 Thread osstest service owner
flight 65096 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/65096/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf-libvirt 5 libvirt-build fail REGR. vs. 63340 test-amd64-amd64-libvirt-

Re: [Xen-devel] [PATCH 2/9] Use gnutls_priority_set_direct() to deprecate gnutls_*_set()

2015-11-25 Thread Konrad Rzeszutek Wilk
On Wed, Nov 25, 2015 at 08:36:51PM +0100, Luis R. Rodriguez wrote: > On Wed, Nov 25, 2015 at 09:53:27AM -0500, Konrad Rzeszutek Wilk wrote: > > On Fri, Nov 20, 2015 at 09:47:45AM -0800, Luis R. Rodriguez wrote: > > > From: "Luis R. Rodriguez" > > > > > > Using deprecate gnutls_*_set() triggers a

Re: [Xen-devel] [PATCH 2/9] Use gnutls_priority_set_direct() to deprecate gnutls_*_set()

2015-11-25 Thread Luis R. Rodriguez
On Wed, Nov 25, 2015 at 09:53:27AM -0500, Konrad Rzeszutek Wilk wrote: > On Fri, Nov 20, 2015 at 09:47:45AM -0800, Luis R. Rodriguez wrote: > > From: "Luis R. Rodriguez" > > > > Using deprecate gnutls_*_set() triggers a failure to compile > > with gnutls30-3.4.4, used on OpenSUSE factory: > > >

[Xen-devel] [PATCH RFC] Various fixes to xen block drivers on top of Bob's multi-queue patches.

2015-11-25 Thread Konrad Rzeszutek Wilk
Hey, As I was reviewing Bob's backend patches I spotted a couple of oddities that I thought should be fixed. Please review at your leisure. drivers/block/xen-blkback/xenbus.c | 10 -- drivers/block/xen-blkfront.c | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) Konra

[Xen-devel] [PATCH RFC 2/2] xen/blkback: Free resources if connect_ring failed.

2015-11-25 Thread Konrad Rzeszutek Wilk
With the multi-queue support we could fail at setting up some of the rings and fail the connection. That meant that all resources tied to rings[0..n-1] (where n is the ring that failed to be setup). Eventually the frontend will switch to the states and we will call xen_blkif_disconnect. However we

[Xen-devel] [PATCH RFC 1/2] xen/blocks: Return -EXX instead of -1

2015-11-25 Thread Konrad Rzeszutek Wilk
Lets return sensible values instead of -1. Signed-off-by: Konrad Rzeszutek Wilk --- drivers/block/xen-blkback/xenbus.c | 2 +- drivers/block/xen-blkfront.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkba

Re: [Xen-devel] [PATCH v2 1/2] x86/VPMU: return correct fixed PMC count

2015-11-25 Thread Boris Ostrovsky
On 11/25/2015 10:31 AM, Jan Beulich wrote: However, I just noticed that various control and status registers are not available for v1. I wonder whether we should even support version 1 since we'd need to add whole lot of 'if (supported)' throughout the code plus there are some assumptions about

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

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

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

2015-11-25 Thread osstest service owner
flight 65094 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/65094/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-rumpuserxen-i386 10 guest-start fail REGR. vs. 64035 Regressions which ar

[Xen-devel] [PATCH] target: xen-scsiback: Return proper -Exx instead of -1.

2015-11-25 Thread Konrad Rzeszutek Wilk
We could return EINVAL but EBUSY (or EALREADY?)is more appropiate. CC: jgr...@suse.com Signed-off-by: Konrad Rzeszutek Wilk --- drivers/xen/xen-scsiback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/xen-scsiback.c b/drivers/xen/xen-scsiback.c index 43bcae8..28

Re: [Xen-devel] [PATCH v5 00/10] xen-block: multi hardware-queues/rings support

2015-11-25 Thread Konrad Rzeszutek Wilk
> xen/blkback: separate ring information out of struct xen_blkif > xen/blkback: pseudo support for multi hardware queues/rings > xen/blkback: get the number of hardware queues/rings from blkfront > xen/blkback: make pool of persistent grants and free pages per-queue OK, got to those as wel

Re: [Xen-devel] [PATCH v5 08/10] xen/blkback: get the number of hardware queues/rings from blkfront

2015-11-25 Thread Konrad Rzeszutek Wilk
On Sat, Nov 14, 2015 at 11:12:17AM +0800, Bob Liu wrote: > Backend advertises "multi-queue-max-queues" to front, also get the negotiated > number from "multi-queue-num-queues" written by blkfront. > > Signed-off-by: Bob Liu > --- > drivers/block/xen-blkback/blkback.c | 12 > drive

Re: [Xen-devel] [PATCH v5 07/10] xen/blkback: pseudo support for multi hardware queues/rings

2015-11-25 Thread Konrad Rzeszutek Wilk
> @@ -113,19 +115,55 @@ static void xen_update_blkif_status(struct xen_blkif > *blkif) > } > invalidate_inode_pages2(blkif->vbd.bdev->bd_inode->i_mapping); > > - blkif->ring.xenblkd = kthread_run(xen_blkif_schedule, &blkif->ring, > "%s", name); > - if (IS_ERR(blkif->ring.xen

Re: [Xen-devel] [PATCH] libxl: Introduce a template for devices with a controller

2015-11-25 Thread George Dunlap
On Wed, Nov 25, 2015 at 3:11 AM, Chun Yan Liu wrote: > > On 11/24/2015 at 10:40 PM, in message > <1448376011-20217-1-git-send-email-george.dun...@eu.citrix.com>, George Dunlap > wrote: >> We have several outstanding patch series which add devices that have >> two levels: a controller and ind

Re: [Xen-devel] [RFC 1/1] xen: block: correct setting for xen_blkif_max_ring_order

2015-11-25 Thread Konrad Rzeszutek Wilk
On Wed, Nov 25, 2015 at 06:26:01PM +0800, Peng Fan wrote: > According to this piece code: > " > pr_info("Invalid max_ring_order (%d), will use default max: %d.\n", > xen_blkif_max_ring_order, XENBUS_MAX_RING_GRANT_ORDER); > " > if xen_blkif_max_ring_order is bigger that XENBUS_MA

[Xen-devel] [PATCH] xen/arm: implement GICD_ICACTIVER read/write

2015-11-25 Thread Stefano Stabellini
Implement GICD_ICACTIVER and GICD_ISACTIVER reads by looking for the GIC_IRQ_GUEST_ACTIVE bit in the relevant struct pending_irq. However given that the pending to active transaction for irqs in LRs in done in hardware, the GIC_IRQ_GUEST_ACTIVE bit might be out of date. We'll have to live with that

Re: [Xen-devel] [PATCH v5 6/9] libxc: create unmapped initrd in domain builder if supported

2015-11-25 Thread Boris Ostrovsky
On 11/25/2015 11:29 AM, Ian Campbell wrote: On Wed, 2015-11-25 at 16:18 +, Wei Liu wrote: On Wed, Nov 25, 2015 at 11:12:12AM -0500, Boris Ostrovsky wrote: On 11/12/2015 08:43 AM, Juergen Gross wrote: In case the kernel of a new pv-domU indicates it is supporting an unmapped initrd, don't w

Re: [Xen-devel] [PATCH v5 6/9] libxc: create unmapped initrd in domain builder if supported

2015-11-25 Thread Wei Liu
On Wed, Nov 25, 2015 at 04:29:13PM +, Ian Campbell wrote: > On Wed, 2015-11-25 at 16:18 +, Wei Liu wrote: > > On Wed, Nov 25, 2015 at 11:12:12AM -0500, Boris Ostrovsky wrote: > > > On 11/12/2015 08:43 AM, Juergen Gross wrote: > > > > In case the kernel of a new pv-domU indicates it is suppo

Re: [Xen-devel] [PATCH v5 6/9] libxc: create unmapped initrd in domain builder if supported

2015-11-25 Thread Ian Campbell
On Wed, 2015-11-25 at 16:18 +, Wei Liu wrote: > On Wed, Nov 25, 2015 at 11:12:12AM -0500, Boris Ostrovsky wrote: > > On 11/12/2015 08:43 AM, Juergen Gross wrote: > > > In case the kernel of a new pv-domU indicates it is supporting an > > > unmapped initrd, don't waste precious virtual space for

Re: [Xen-devel] [PATCH] build: fix dependencies for files compiled from their parent directory

2015-11-25 Thread Ian Campbell
On Wed, 2015-11-25 at 09:16 -0700, Jan Beulich wrote: > The use of $(basename ...) here was wrong (yet I'm sure I tested it). Is the issue here that xen/arch/x86/x86_64/.compat.o.d ought really to be xen/arch/x86/.x86_64.compat.o.d? Otherwise xen/arch/x86/Makefile (which contains obj-y := ... x86

Re: [Xen-devel] [PATCH v5 6/9] libxc: create unmapped initrd in domain builder if supported

2015-11-25 Thread Boris Ostrovsky
On 11/25/2015 11:18 AM, Wei Liu wrote: On Wed, Nov 25, 2015 at 11:12:12AM -0500, Boris Ostrovsky wrote: On 11/12/2015 08:43 AM, Juergen Gross wrote: In case the kernel of a new pv-domU indicates it is supporting an unmapped initrd, don't waste precious virtual space for the initrd, but allocate

Re: [Xen-devel] [PATCH v2 2/2] libxl: implement libxl__xs_mknod using XS_WRITE rather than XS_MKDIR

2015-11-25 Thread Ian Jackson
Paul Durrant writes ("[PATCH v2 2/2] libxl: implement libxl__xs_mknod using XS_WRITE rather than XS_MKDIR"): > This patch modifies the implentation of libxl__xs_mknod() to use XS_WRITE > rather than XS_MKDIR since passing an empty value to the former will > ensure that the path is both existent an

Re: [Xen-devel] [PATCH v5 6/9] libxc: create unmapped initrd in domain builder if supported

2015-11-25 Thread Wei Liu
On Wed, Nov 25, 2015 at 11:12:12AM -0500, Boris Ostrovsky wrote: > On 11/12/2015 08:43 AM, Juergen Gross wrote: > >In case the kernel of a new pv-domU indicates it is supporting an > >unmapped initrd, don't waste precious virtual space for the initrd, > >but allocate only guest physical memory for

[Xen-devel] [PATCH] build: fix dependencies for files compiled from their parent directory

2015-11-25 Thread Jan Beulich
The use of $(basename ...) here was wrong (yet I'm sure I tested it). Signed-off-by: Jan Beulich --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -105,7 +105,7 @@ include Makefile DEPS = .*.d define gendep ifneq ($(1),$(subst /,:,$(1))) -DEPS += $(dir $(1)).$(basename $(notdir $(1))).d +

Re: [Xen-devel] [PATCH v5 6/9] libxc: create unmapped initrd in domain builder if supported

2015-11-25 Thread Boris Ostrovsky
On 11/12/2015 08:43 AM, Juergen Gross wrote: In case the kernel of a new pv-domU indicates it is supporting an unmapped initrd, don't waste precious virtual space for the initrd, but allocate only guest physical memory for it. This patch breaks 32-bit pygrub. I am not 100% sure yet but it may

Re: [Xen-devel] [PATCH] build: remove .d files from xen/ on a clean

2015-11-25 Thread Jan Beulich
>>> On 25.11.15 at 14:07, wrote: >> On Nov 25, 2015, at 2:58 AM, Jan Beulich wrote: >> > On 24.11.15 at 19:19, wrote: >> On Nov 24, 2015, at 11:30 AM, Jan Beulich wrote: >>> On 24.11.15 at 18:22, wrote: >> On Nov 24, 2015, at 11:16 AM, Jonathan Creekmore >

Re: [Xen-devel] [PATCH] iommu/quirk: disable shared EPT for Sandybridge and earlier processors.

2015-11-25 Thread Malcolm Crossley
On 25/11/15 15:38, Jan Beulich wrote: On 25.11.15 at 16:13, wrote: >> On 25/11/15 10:49, Jan Beulich wrote: >> On 25.11.15 at 11:28, wrote: On 24/11/15 17:41, Jan Beulich wrote: On 24.11.15 at 18:17, wrote: >> --- a/xen/drivers/passthrough/vtd/quirks.c >> +++ b/xen

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

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

[Xen-devel] [PATCH v1 0/2] libxl: change libxl__xs_write() to libxl__xs_printf()

2015-11-25 Thread Paul Durrant
Patch #1 is purely a search and replace Patch #2 changes the underlying implementation ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

[Xen-devel] [PATCH v1 1/2] libxl: re-name libxl__xs_write() to libxl__xs_printf()...

2015-11-25 Thread Paul Durrant
...to denote what it actually does. The name libxl__xs_write() suggests something taking a buffer and length, akin to write(2), whereas the semantics of the function are actually more akin to printf(3). This patch is a textual substitution of libxl__xs_write with libxl__xs_printf with some associ

Re: [Xen-devel] [PATCH v2 1/2] x86/VPMU: return correct fixed PMC count

2015-11-25 Thread Jan Beulich
>>> On 25.11.15 at 15:26, wrote: > On 11/25/2015 04:55 AM, Jan Beulich wrote: > On 25.11.15 at 00:53, wrote: >>> --- a/xen/arch/x86/cpu/vpmu_intel.c >>> +++ b/xen/arch/x86/cpu/vpmu_intel.c >>> @@ -166,10 +166,10 @@ static int core2_get_arch_pmc_count(void) >>>*/ >>> static int core2_get

Re: [Xen-devel] [PATCH] iommu/quirk: disable shared EPT for Sandybridge and earlier processors.

2015-11-25 Thread Jan Beulich
>>> On 25.11.15 at 16:13, wrote: > On 25/11/15 10:49, Jan Beulich wrote: > On 25.11.15 at 11:28, wrote: >>> On 24/11/15 17:41, Jan Beulich wrote: >>> On 24.11.15 at 18:17, wrote: > --- a/xen/drivers/passthrough/vtd/quirks.c > +++ b/xen/drivers/passthrough/vtd/quirks.c > @@ -3

Re: [Xen-devel] [osstest test] 64958: regressions - trouble: broken/fail/pass

2015-11-25 Thread Ian Campbell
On Wed, 2015-11-25 at 14:37 +, Ian Campbell wrote: > 2015-11-21 23:06:44 Z executing ssh ... root@172.16.144.44 virsh > domxml-from-native xen-xl /etc/xen/debian.jessie.guest.osstest.cfg > > /etc/xen/debian.jessie.guest.osstest.cfg.xml > error: An error occurred, but the cause is unknown Th

[Xen-devel] Xen Security Advisory 161 - WITHDRAWN: missing XSETBV intercept privilege check on AMD SVM

2015-11-25 Thread Xen . org security team
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Xen Security Advisory XSA-161 version 2 WITHDRAWN: missing XSETBV intercept privilege check on AMD SVM UPDATES IN VERSION 2 Upon further inspection the necessary privilege le

[Xen-devel] [PATCH v1 2/2] libxl: re-implement libxl__xs_printf()

2015-11-25 Thread Paul Durrant
This patch adds a new libxl__xs_vprintf() which actually checks the success of the underlying call to xs_write() (logging if it fails) and then re-implements libxl__xs_printf() using this (and replacing the call to vasprintf() with a call to libxl__vsprintf()). libxl__xs_vprintf() is added to the

[Xen-devel] [xen-4.6-testing test] 65088: regressions - FAIL

2015-11-25 Thread osstest service owner
flight 65088 xen-4.6-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/65088/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemut-stubdom-debianhvm-amd64-xsm 16 guest-localmigrate/x10 fail REGR. vs. 6

[Xen-devel] [PATCH v4 3/4] xen/hvm: introduce a flags field in the CPU save record

2015-11-25 Thread Roger Pau Monne
Introduce a new flags field and use bit 0 to signal if the FPU has been initialised or not. Previously Xen always wrongly assumed the FPU was initialised on restore. Signed-off-by: Roger Pau Monné Cc: Jan Beulich Cc: Andrew Cooper --- Changes since v3: - Don't add a comment in the compat struc

[Xen-devel] [PATCH v4 0/4] Introduce a flags field to HVM CPU context

2015-11-25 Thread Roger Pau Monne
Hello, This patch series tries to properly solve the problem seen with the HVMlite series, that Xen always assumes the FPU is initialised on CPU context restore. Roger. ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

[Xen-devel] [PATCH v4 4/4] Revert "libxc: create an initial FPU state for HVM guests"

2015-11-25 Thread Roger Pau Monne
This reverts commit d64dbbcc7c9934a46126c59d78536235908377ad: Xen always set the FPU as initialized when loading a HVM context, so libxc has to provide a valid FPU context when setting the CPU registers. This was a stop-gap measure in order to unblock OSSTest Windows 7 failures while a proper fix

[Xen-devel] [PATCH v4 1/4] xen/save: pass a size parameter to the HVM compat functions

2015-11-25 Thread Roger Pau Monne
In order to cope with types having multiple compat versions pass a size parameter to the fixup function so we can identify which compat version Xen is dealing with. Signed-off-by: Roger Pau Monné Reviewed-by: Andrew Cooper Cc: Ian Campbell Cc: Ian Jackson Cc: Jan Beulich Cc: Tim Deegan --- C

[Xen-devel] [PATCH v4 2/4] xen/save: allow the usage of zeroextend and a fixup function

2015-11-25 Thread Roger Pau Monne
With the current compat implementation in the save/restore context handling, only one compat structure is allowed, and using _zeroextend prevents the fixup function from being called. In order to allow for the compat handling layer to be able to handle different compat versions allow calling the f

Re: [Xen-devel] [PATCH] iommu/quirk: disable shared EPT for Sandybridge and earlier processors.

2015-11-25 Thread Andrew Cooper
On 25/11/15 10:49, Jan Beulich wrote: On 25.11.15 at 11:28, wrote: >> On 24/11/15 17:41, Jan Beulich wrote: >> On 24.11.15 at 18:17, wrote: --- a/xen/drivers/passthrough/vtd/quirks.c +++ b/xen/drivers/passthrough/vtd/quirks.c @@ -320,6 +320,20 @@ void __init platform_quirk

Re: [Xen-devel] [PATCH v2 2/2] x86/VPMU: implement ipc and arch filter flags

2015-11-25 Thread Boris Ostrovsky
On 11/24/2015 06:53 PM, Brendan Gregg wrote: This introduces a way to have a restricted VPMU, by specifying one of two predefined groups of PMCs to make available. For secure environments, this allows the VPMU to be used without needing to enable all PMCs. Signed-off-by: Brendan Gregg --- doc

[Xen-devel] [PATCH v2 2/2] libxl: implement libxl__xs_mknod using XS_WRITE rather than XS_MKDIR

2015-11-25 Thread Paul Durrant
This patch modifies the implentation of libxl__xs_mknod() to use XS_WRITE rather than XS_MKDIR since passing an empty value to the former will ensure that the path is both existent and empty upon return, rather than merely existent. The function return type is also changed to a libxl error value ra

Re: [Xen-devel] [PATCH for-2.5] vnc: fix segfault

2015-11-25 Thread Anthony PERARD
On Wed, Nov 25, 2015 at 08:09:58AM +0100, Gerd Hoffmann wrote: > Commit "c7628bf vnc: only alloc server surface with clients connected" > missed one rarely used codepath (cirrus with guest drivers using 2d > accel) where we have to check for the server surface being present, > to avoid qemu crashin

[Xen-devel] [PATCH v2 1/2] libxl: replace libxl__xs_mkdir() with libxl__xs_mknod()

2015-11-25 Thread Paul Durrant
This patch is purely cosmetic, it contains no functional change. A change in the implementation of libxl__xs_mknod() will be made in a subsequent patch. Signed-off-by: Paul Durrant Acked-by: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- tools/libxl/libxl_create.c | 26

[Xen-devel] [PATCH v2 0/2] libxl: change libxl__xs_mkdir() to libxl__xs_mknod()

2015-11-25 Thread Paul Durrant
Patch #1 is purely a search and replace Patch #2 changes the underlying implementation ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH XEN v5 07/23] tools: Refactor /dev/xen/gnt{dev, shr} wrappers into libxengnttab.

2015-11-25 Thread Ian Campbell
On Tue, 2015-11-24 at 09:34 +, Ian Campbell wrote: > Thinking about this some more overnight, it occurred to me that the > real issue is that gnttab and gntshr are actually two quite difference > APIs. gnttab is all about consuming grant references which are given to > you from elsewhere while

Re: [Xen-devel] [PATCH 2/9] Use gnutls_priority_set_direct() to deprecate gnutls_*_set()

2015-11-25 Thread Konrad Rzeszutek Wilk
On Fri, Nov 20, 2015 at 09:47:45AM -0800, Luis R. Rodriguez wrote: > From: "Luis R. Rodriguez" > > Using deprecate gnutls_*_set() triggers a failure to compile > with gnutls30-3.4.4, used on OpenSUSE factory: > > ../libqemu_common.a(vnc.o): In function `vnc_start_tls': > ~/devel/xen/tools/qemu-x

Re: [Xen-devel] [osstest test] 64958: regressions - trouble: broken/fail/pass

2015-11-25 Thread Ian Campbell
Hi Jim, On Sun, 2015-11-22 at 08:54 +, osstest service owner wrote: This flight was an attempt to update osstest to use Debian Jessie instead of Wheezy as the OS used on hosts and in guests. This should mean that the test-armhf-armhf-* jobs which use d-i should now start working (since Jessie

Re: [Xen-devel] [PATCH v2 1/2] x86/VPMU: return correct fixed PMC count

2015-11-25 Thread Boris Ostrovsky
On 11/25/2015 04:55 AM, Jan Beulich wrote: On 25.11.15 at 00:53, wrote: --- a/xen/arch/x86/cpu/vpmu_intel.c +++ b/xen/arch/x86/cpu/vpmu_intel.c @@ -166,10 +166,10 @@ static int core2_get_arch_pmc_count(void) */ static int core2_get_fixed_pmc_count(void) { -u32 eax; +u32 edx; -

[Xen-devel] [xen-unstable baseline-only test] 38342: regressions - FAIL

2015-11-25 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 38342 xen-unstable real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/38342/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-xsm5 xen-build

Re: [Xen-devel] [PATCHv2 2/3] grant_table: convert grant table rwlock to percpu rwlock

2015-11-25 Thread Malcolm Crossley
On 25/11/15 13:53, Jan Beulich wrote: On 25.11.15 at 14:43, wrote: >> On 25/11/15 12:35, Jan Beulich wrote: >> On 20.11.15 at 17:03, wrote: @@ -208,8 +210,6 @@ active_entry_acquire(struct grant_table *t, grant_ref_t >> e) { struct active_grant_entry *act;

Re: [Xen-devel] [PATCH 2/2] libxl: implement libxl__xs_mknod using XS_WRITE rather than XS_MKDIR

2015-11-25 Thread Paul Durrant
> -Original Message- > From: Ian Jackson [mailto:ian.jack...@eu.citrix.com] > Sent: 25 November 2015 14:04 > To: Paul Durrant > Cc: xen-de...@lists.xenproject.org; Stefano Stabellini; Ian Campbell; Wei Liu > Subject: Re: [PATCH 2/2] libxl: implement libxl__xs_mknod using XS_WRITE > rather t

Re: [Xen-devel] How to recognize which guest issues the hypercall?

2015-11-25 Thread George Dunlap
On Wed, Nov 25, 2015 at 1:23 PM, Big Strong wrote: > Thanks for your replying and sorry for the behavior. Can I get that using > libxc? Because I can't access the structure directly from dom0. Also, please don't top-post. :-) Hypercalls are made from the guest to the hypervisor; it's in the hype

Re: [Xen-devel] [PATCH 2/2] libxl: implement libxl__xs_mknod using XS_WRITE rather than XS_MKDIR

2015-11-25 Thread Ian Jackson
Paul Durrant writes ("[PATCH 2/2] libxl: implement libxl__xs_mknod using XS_WRITE rather than XS_MKDIR"): > This patch modifies the implentation of libxl__xs_mknod() to use XS_WRITE > rather than XS_MKDIR since passing an empty value to the former will > ensure that the path is both existent and e

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

2015-11-25 Thread osstest service owner
flight 65086 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/65086/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-qemut-rhel6hvm-intel 6 xen-boot fail REGR. vs. 59254 test-amd64-amd64-xl-p

Re: [Xen-devel] [PATCH 1/2] libxl: replace libxl__xs_mkdir() with libxl__xs_mknod()

2015-11-25 Thread Ian Jackson
Paul Durrant writes ("[PATCH 1/2] libxl: replace libxl__xs_mkdir() with libxl__xs_mknod()"): > This patch is purely cosmetic, it contains no functional change. A > change in the implementation of libxl__xs_mknod() will be made in a > subsequent patch. Acked-by: Ian Jackson _

Re: [Xen-devel] [PATCHv2 2/3] grant_table: convert grant table rwlock to percpu rwlock

2015-11-25 Thread Jan Beulich
>>> On 25.11.15 at 14:43, wrote: > On 25/11/15 12:35, Jan Beulich wrote: > On 20.11.15 at 17:03, wrote: >>> @@ -208,8 +210,6 @@ active_entry_acquire(struct grant_table *t, grant_ref_t > e) >>> { >>> struct active_grant_entry *act; >>> >>> -ASSERT(rw_is_locked(&t->lock)); >> >> E

Re: [Xen-devel] [PATCHv2 2/3] grant_table: convert grant table rwlock to percpu rwlock

2015-11-25 Thread Malcolm Crossley
On 25/11/15 12:35, Jan Beulich wrote: On 20.11.15 at 17:03, wrote: >> @@ -208,8 +210,6 @@ active_entry_acquire(struct grant_table *t, grant_ref_t >> e) >> { >> struct active_grant_entry *act; >> >> -ASSERT(rw_is_locked(&t->lock)); > > Even if not covering all cases, I don't thin

Re: [Xen-devel] [PULL for-2.5 0/2] xen-20151125

2015-11-25 Thread Peter Maydell
rg/people/sstabellini/qemu-dm.git tags/xen-20151125 > > for you to fetch changes up to 22037db38ccfe497bd13a94edead6657781b9b37: > > xen_disk: Remove ioreq.postsync (2015-11-25 11:04:55 +) > > --

Re: [Xen-devel] How to recognize which guest issues the hypercall?

2015-11-25 Thread Big Strong
Thanks for your replying and sorry for the behavior. Can I get that using libxc? Because I can't access the structure directly from dom0. 2015-11-25 18:44 GMT+08:00 George Dunlap : > On Wed, Nov 25, 2015 at 7:18 AM, Big Strong wrote: > > I write a program to intercept all hypercalls happend on a

Re: [Xen-devel] [PATCH] build: remove .d files from xen/ on a clean

2015-11-25 Thread Jonathan Creekmore
> On Nov 25, 2015, at 2:58 AM, Jan Beulich wrote: > On 24.11.15 at 19:19, wrote: > >>> On Nov 24, 2015, at 11:30 AM, Jan Beulich wrote: >>> >> On 24.11.15 at 18:22, wrote: >>> > On Nov 24, 2015, at 11:16 AM, Jonathan Creekmore wrote: > > So, the files in xen/ w

Re: [Xen-devel] [PATCH] x86/boot: check for not allowed sections before linking

2015-11-25 Thread Jan Beulich
>>> On 25.11.15 at 13:43, wrote: > Currently check for not allowed sections is performed just after > compilation. However, if compilation succeeds and check fails then > second build will create xen.gz/xen.efi without any visible error. > This happens because %.o: %.c recipe created object file d

Re: [Xen-devel] [V12 2/4] x86/xsaves: enable xsaves/xrstors/xsavec in xen

2015-11-25 Thread Shuai Ruan
On Wed, Nov 25, 2015 at 05:42:29AM -0700, Jan Beulich wrote: > >> Mind explaining the point of the second XRSTOR_FIXUP? > >> Alternative patching doesn't deal with multiple sections at a time, > >> and I told you on the previous iteration that no second instance > >> should be necessary. If there i

Re: [Xen-devel] [PATCHv2 3/3] p2m: convert grant table rwlock to percpu rwlock

2015-11-25 Thread Malcolm Crossley
On 25/11/15 12:38, Jan Beulich wrote: On 20.11.15 at 17:03, wrote: >> @@ -115,7 +117,7 @@ static inline void _mm_write_lock(mm_rwlock_t *l, const >> char *func, int level) >> if ( !mm_write_locked_by_me(l) ) >> { >> __check_lock_level(level); >> -write_lock(&l->loc

[Xen-devel] [PATCH] x86/boot: check for not allowed sections before linking

2015-11-25 Thread Daniel Kiper
Currently check for not allowed sections is performed just after compilation. However, if compilation succeeds and check fails then second build will create xen.gz/xen.efi without any visible error. This happens because %.o: %.c recipe created object file during first run and make do not execute th

Re: [Xen-devel] [V12 2/4] x86/xsaves: enable xsaves/xrstors/xsavec in xen

2015-11-25 Thread Jan Beulich
>>> On 25.11.15 at 13:37, wrote: > On Wed, Nov 25, 2015 at 02:35:30AM -0700, Jan Beulich wrote: >> >>> On 25.11.15 at 08:51, wrote: >> > @@ -197,20 +373,26 @@ void xrstor(struct vcpu *v, uint64_t mask) >> Mind explaining the point of the second XRSTOR_FIXUP? >> Alternative patching doesn't deal w

Re: [Xen-devel] [PATCH 4/4] xen/arm: p2m: Remove translation table when it's empty

2015-11-25 Thread Ian Campbell
On Wed, 2015-11-18 at 15:49 +, Julien Grall wrote: > Currently, the translation table is left in place even if no entries is > inuse. Because of how the p2m code has been implemented, replacing a > translation table by a block (i.e superpage) is not supported. Therefore, > any mapping of a supe

Re: [Xen-devel] [PATCHv2 3/3] p2m: convert grant table rwlock to percpu rwlock

2015-11-25 Thread Jan Beulich
>>> On 20.11.15 at 17:03, wrote: > @@ -115,7 +117,7 @@ static inline void _mm_write_lock(mm_rwlock_t *l, const > char *func, int level) > if ( !mm_write_locked_by_me(l) ) > { > __check_lock_level(level); > -write_lock(&l->lock); > + percpu_write_lock(p2m_percpu_rwlo

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

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

Re: [Xen-devel] [V12 2/4] x86/xsaves: enable xsaves/xrstors/xsavec in xen

2015-11-25 Thread Shuai Ruan
On Wed, Nov 25, 2015 at 02:35:30AM -0700, Jan Beulich wrote: > >>> On 25.11.15 at 08:51, wrote: > > @@ -197,20 +373,26 @@ void xrstor(struct vcpu *v, uint64_t mask) > Mind explaining the point of the second XRSTOR_FIXUP? > Alternative patching doesn't deal with multiple sections at a time, > and I

Re: [Xen-devel] [PATCHv2 2/3] grant_table: convert grant table rwlock to percpu rwlock

2015-11-25 Thread Jan Beulich
>>> On 20.11.15 at 17:03, wrote: > @@ -208,8 +210,6 @@ active_entry_acquire(struct grant_table *t, grant_ref_t e) > { > struct active_grant_entry *act; > > -ASSERT(rw_is_locked(&t->lock)); Even if not covering all cases, I don't think this should be dropped, just like you don't drop r

  1   2   >