Re: [Xen-devel] [PATCH 0/2] VT-d flush issue

2015-12-03 Thread Jan Beulich
>>> "Tian, Kevin" 12/04/15 2:49 AM >>> >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: Thursday, December 03, 2015 9:16 PM >> >>> On 03.12.15 at 09:09, wrote: >> > If impacted domain is Dom0 or hardware domain, just throw out a >> > warning. >> > It's an open here whether we want to

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

2015-12-03 Thread osstest service owner
flight 65336 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/65336/ Perfect :-) All tests in this flight passed version targeted for testing: ovmf e04671e81a7fe842f640a926171048e5524b46e0 baseline version: ovmf dcb2e4bb61931e2dee1739bb76aba315002

Re: [Xen-devel] [PATCH LIBVIRT v1 1/2] libxl: Correct value for xendConfigVersion to xen{Parse, Format}ConfigCommon

2015-12-03 Thread Jim Fehlig
On 11/26/2015 09:59 AM, Ian Campbell wrote: > libxlConnectDomainXMLFromNative calls both xenParseXM and xenParseXL > with cfg->verInfo->xen_version_major, however AFAICT they both (either > inherently, or through there use of xenParseConfigCommon expect a > value from xenConfigVersionEnum (which do

Re: [Xen-devel] [PATCH 2/2] VT-d: Fix vt-d flush timeout issue.

2015-12-03 Thread Xu, Quan
On December 04, 2015 at 9:52 AM, wrote: > > From: Xu, Quan > > Sent: Thursday, December 03, 2015 4:09 PM > > > > If IOTLB/Context/IETC flush is timeout, we should think all devices > > under this IOMMU cannot function correctly. > > So for each device under this IOMMU we'll mark it as unassignable

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

2015-12-03 Thread osstest service owner
flight 65327 xen-4.6-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/65327/ 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 in 65210 RE

[Xen-devel] Xen hypercall calling convention

2015-12-03 Thread Carl Patenaude Poulin
Hi folks, On page 12 of "The Definitive Guide to the Xen Hypervisor", it is mentioned that "Xen, like Linux, uses the MS-DOS calling convention, rather than the UNIX convention used by FreeBSD." I keep digging online and I can't find any information about an "MS-DOS calling convention". We've alr

[Xen-devel] [ovmf baseline-only test] 38425: all pass

2015-12-03 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 38425 ovmf real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/38425/ Perfect :-) All tests in this flight passed version targeted for testing: ovmf dcb2e4bb61931e2dee1739bb76aba315002f0a82 baseline version: ovm

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

2015-12-03 Thread osstest service owner
flight 65323 linux-mingo-tip-master real [real] http://logs.test-lab.xenproject.org/osstest/logs/65323/ 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 13 guest-localmigrate fail REGR. vs

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

2015-12-03 Thread Tian, Kevin
> From: Andrew Cooper [mailto:andrew.coop...@citrix.com] > Sent: Thursday, December 03, 2015 7:19 PM > > On 03/12/15 08:50, Tian, Kevin wrote: > >> From: Jan Beulich [mailto:jbeul...@suse.com] > >> Sent: Thursday, December 03, 2015 4:18 PM > >> > > On 03.12.15 at 03:40, wrote: > >>> Just conf

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

2015-12-03 Thread Tian, Kevin
> From: Andrew Cooper [mailto:andrew.coop...@citrix.com] > Sent: Thursday, December 03, 2015 7:24 PM > > On 03/12/15 01:19, Tian, Kevin wrote: > >> From: Andrew Cooper [mailto:andrew.coop...@citrix.com] > >> Sent: Thursday, November 26, 2015 9:56 PM > >> > >> On 26/11/15 13:48, Malcolm Crossley wr

Re: [Xen-devel] [PATCH 2/2] VT-d: Fix vt-d flush timeout issue.

2015-12-03 Thread Tian, Kevin
> From: Xu, Quan > Sent: Thursday, December 03, 2015 4:09 PM > > If IOTLB/Context/IETC flush is timeout, we should think > all devices under this IOMMU cannot function correctly. > So for each device under this IOMMU we'll mark it as > unassignable and kill the domain owning the device. > > If De

Re: [Xen-devel] [PATCH 0/2] VT-d flush issue

2015-12-03 Thread Tian, Kevin
> From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Thursday, December 03, 2015 9:16 PM > > >>> On 03.12.15 at 09:09, wrote: > > If impacted domain is Dom0 or hardware domain, just throw out a warning. > > It's an open here whether we want to kill > > Dom0 or hardware domain (or direct

Re: [Xen-devel] [PATCH v2 3/3] MAINTAINERS: Restore original maintainership of arch VPMU files

2015-12-03 Thread Tian, Kevin
> From: Boris Ostrovsky [mailto:boris.ostrov...@oracle.com] > Sent: Wednesday, December 02, 2015 12:50 AM > > It was lost when vpmu* files were moved from xen/arch/x86/hvm/{vmx|svm}/ to > xen/arch/x86/cpu/ > > Signed-off-by: Boris Ostrovsky > Cc: ian.campb...@citrix.com > Cc: ian.jack...@eu.citr

Re: [Xen-devel] [PATCH v2 2/3] x86/VPMU: No need to check whether VPMU quirk is needed on Intel

2015-12-03 Thread Tian, Kevin
> From: Boris Ostrovsky [mailto:boris.ostrov...@oracle.com] > Sent: Thursday, December 03, 2015 11:47 PM > > On 12/03/2015 01:18 AM, Tian, Kevin wrote: > >> From: Boris Ostrovsky [mailto:boris.ostrov...@oracle.com] > >> Sent: Wednesday, December 02, 2015 12:50 AM > >> > >> We only support family 6

Re: [Xen-devel] [PATCH v2 1/3] x86/VPMU: Support only versions 2 through 4 of architectural performance monitoring

2015-12-03 Thread Tian, Kevin
> From: Boris Ostrovsky [mailto:boris.ostrov...@oracle.com] > Sent: Wednesday, December 02, 2015 12:50 AM > > We need to have at least version 2 since it's the first version to > support various control and status registers (such as > MSR_CORE_PERF_GLOBAL_CTRL) that VPMU relies on always having. >

Re: [Xen-devel] [PATCH v2 0/3] VPMU fixes

2015-12-03 Thread Tian, Kevin
> From: Boris Ostrovsky [mailto:boris.ostrov...@oracle.com] > Sent: Thursday, December 03, 2015 11:45 PM > > On 12/03/2015 06:02 AM, Jan Beulich wrote: > On 03.12.15 at 11:46, wrote: > >>> From: Jan Beulich [mailto:jbeul...@suse.com] > >>> Sent: Thursday, December 03, 2015 6:36 PM > >>> >

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

2015-12-03 Thread osstest service owner
flight 65324 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/65324/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-libvirt-pair 21 guest-migrate/src_host/dst_host fail REGR. vs. 63340 test-amd64-i386-l

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

2015-12-03 Thread osstest service owner
flight 65320 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/65320/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl-vhd 6 xen-boot fail REGR. vs. 64579 Regressions which a

[Xen-devel] [qemu-upstream-unstable baseline-only test] 38423: regressions - FAIL

2015-12-03 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 38423 qemu-upstream-unstable real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/38423/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-pygrub 10 guest

Re: [Xen-devel] [PATCH v13 7/8] Add IOREQ_TYPE_VMWARE_PORT

2015-12-03 Thread Don Slutz
On 12/01/15 06:28, Paul Durrant wrote: >> -Original Message- >> From: xen-devel-boun...@lists.xen.org [mailto:xen-devel- >> boun...@lists.xen.org] On Behalf Of Don Slutz >> Sent: 28 November 2015 21:45 >> To: xen-devel@lists.xen.org >> Cc: Jun Nakajima; Wei Liu; Kevin Tian; Keir (Xen.org);

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

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

Re: [Xen-devel] [PATCH v3 8/8] libxl: implement virDomainGetJobStats

2015-12-03 Thread Joao Martins
On 12/03/2015 06:48 PM, Jim Fehlig wrote: > Joao Martins wrote: >> Introduces support for domainGetJobStats which has the same >> info as domainGetJobInfo but in a slightly different format. >> Another difference is that virDomainGetJobStats can also >> retrieve info on the most recently complete

Re: [Xen-devel] [PATCH v2] libxl: add p2p migration

2015-12-03 Thread Joao Martins
On 12/02/2015 11:27 PM, Jim Fehlig wrote: > On 11/10/2015 08:32 AM, Joao Martins wrote: >> Introduce support for VIR_MIGRATE_PEER2PEER in libxl driver >> for supporting migration in Openstack. Most of the changes >> occur at the source and no modifications at the receiver. >> >> In P2P mode there

Re: [Xen-devel] [PATCH v3 8/8] libxl: implement virDomainGetJobStats

2015-12-03 Thread Jim Fehlig
Joao Martins wrote: > Introduces support for domainGetJobStats which has the same > info as domainGetJobInfo but in a slightly different format. > Another difference is that virDomainGetJobStats can also > retrieve info on the most recently completed job. Though so > far this is only used in the so

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

2015-12-03 Thread osstest service owner
flight 65314 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/65314/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-qemuu-nested-intel 16 debian-hvm-install/l1/l2 fail REGR. vs. 65114 test-armhf-ar

Re: [Xen-devel] [PATCH XEN v6 25/32] tools/libs/gnttab: Extensive updates to API documentation.

2015-12-03 Thread Daniel De Graaf
On 03/12/15 06:22, Ian Campbell wrote: In particular around error handling, behaviour on fork and the unmap notification mechanism. Behaviour of xengnttab_map_*grant_refs and xengntshr_share_pages on partial failure has been confirmed/inferred (by inspection) on Linux and Mini-os (the only two k

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

2015-12-03 Thread osstest service owner
flight 65319 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/65319/ Perfect :-) All tests in this flight passed version targeted for testing: ovmf dcb2e4bb61931e2dee1739bb76aba315002f0a82 baseline version: ovmf c972495ed0a939ed30f5ab5fa14f215b8bb

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

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

Re: [Xen-devel] [PATCH OSSTEST] cr-try-bisect-adhoc: Add a reminder about OSSTEST_EMAIL_HEADER

2015-12-03 Thread Ian Jackson
Ian Campbell writes ("[PATCH OSSTEST] cr-try-bisect-adhoc: Add a reminder about OSSTEST_EMAIL_HEADER"): > ... I'm forever spamming Ian J for a couple of iterations when I set > one of these up and forget to override the default destination. Acked-by: Ian Jackson

Re: [Xen-devel] XenTrace

2015-12-03 Thread Wei Liu
On Thu, Dec 03, 2015 at 10:06:02PM +0530, kumara rathnavel wrote: > Hello All, > Hello > > I am not able to run Xentrace. I am using FreeBSD as Dom0. I have given > size and event in command line parameters during boot also. > > Please help me !!! > > Thankyou in Advance Have you checked

[Xen-devel] [PATCHv3 1/2] x86/ept: invalidate guest physical mappings on VMENTER

2015-12-03 Thread David Vrabel
If a guest allocates a page and the tlbflush_timestamp on the page indicates that a TLB flush of the previous owner is required, only the linear and combined mappings are invalidated. The guest-physical mappings are not invalidated. This is currently safe because the EPT code ensures that the gue

[Xen-devel] [PATCHv3 2/2] x86/ept: defer the invalidation until the p2m lock is released

2015-12-03 Thread David Vrabel
From: David Vrabel Holding the p2m lock while calling ept_sync_domain() is very expensive since it does a on_selected_cpus() call. IPIs on many socket machines can be very slows and on_selected_cpus() is serialized. Defer the invalidate until the p2m lock is released. Since the processor may c

[Xen-devel] [PATCHv3 0/2] x86/ept: reduce translation invalidation impact

2015-12-03 Thread David Vrabel
This series improves the performance of EPT by further reducing the impact of the translation invalidations (ept_sync_domain()). By: a) Deferring invalidations until the p2m write lock is released. Prior to this change a 16 VCPU guest could not be successfully migrated on an (admittedly slow) 160

Re: [Xen-devel] [PATCH OSSTEST] standalone: Log things we are running via with_logging

2015-12-03 Thread Ian Jackson
Ian Campbell writes ("[PATCH OSSTEST] standalone: Log things we are running via with_logging"): > Turning on set -x is too verbose, so just echo the command ourselves. It's not clear to me from the context whether $@ might contain things which would require quoting. set -x would quote them. You

[Xen-devel] XenTrace

2015-12-03 Thread kumara rathnavel
Hello All, I am not able to run Xentrace. I am using FreeBSD as Dom0. I have given size and event in command line parameters during boot also. Please help me !!! Thankyou in Advance ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.x

Re: [Xen-devel] [PATCHv6] 01/28] build: import Kbuild/Kconfig from Linux 4.2

2015-12-03 Thread Doug Goldstein
On 12/2/15 4:39 AM, Ian Campbell wrote: > On Tue, 2015-12-01 at 04:00 -0700, Jan Beulich wrote: >> But not forking doesn't mean importing the whole directory. Some >> Makefile adjustments will be necessary anyway, so removing some >> of the frontends wouldn't make things worse. We indeed should >>

Re: [Xen-devel] [RFC PATCHv2 0/3]: x86/ept: reduce translation invalidation impact

2015-12-03 Thread David Vrabel
On 02/12/15 07:14, Tian, Kevin wrote: >> From: David Vrabel [mailto:david.vra...@citrix.com] >> Sent: Saturday, November 14, 2015 2:50 AM >> >> This RFC series improves the performance of EPT by reducing the impact >> of the translation invalidations (ept_sync_domain()). Two approaches >> are used

Re: [Xen-devel] [PATCH v2 2/3] x86/VPMU: No need to check whether VPMU quirk is needed on Intel

2015-12-03 Thread Boris Ostrovsky
On 12/03/2015 01:18 AM, Tian, Kevin wrote: From: Boris Ostrovsky [mailto:boris.ostrov...@oracle.com] Sent: Wednesday, December 02, 2015 12:50 AM We only support family 6 so quirk handling is always needed. what about you adding other family support in the future then you'll add back below quirk

Re: [Xen-devel] [PATCH v2 0/3] VPMU fixes

2015-12-03 Thread Boris Ostrovsky
On 12/03/2015 06:02 AM, Jan Beulich wrote: On 03.12.15 at 11:46, wrote: From: Jan Beulich [mailto:jbeul...@suse.com] Sent: Thursday, December 03, 2015 6:36 PM On 03.12.15 at 07:16, wrote: From: Dietmar Hahn [mailto:dietmar.h...@ts.fujitsu.com] Sent: Wednesday, December 02, 2015 5:21 PM

[Xen-devel] [PATCH OSSTEST] standalone: Log things we are running via with_logging

2015-12-03 Thread Ian Campbell
Turning on set -x is too verbose, so just echo the command ourselves. Signed-off-by: Ian Campbell --- standalone | 1 + 1 file changed, 1 insertion(+) diff --git a/standalone b/standalone index c804b74..6897400 100755 --- a/standalone +++ b/standalone @@ -195,6 +195,7 @@ with_logging() { i

[Xen-devel] [PATCH OSSTEST] cr-try-bisect-adhoc: Add a reminder about OSSTEST_EMAIL_HEADER

2015-12-03 Thread Ian Campbell
... I'm forever spamming Ian J for a couple of iterations when I set one of these up and forget to override the default destination. Signed-off-by: Ian Campbell --- In reality I usually just cowboy into daily-cron-email-adhoc* in adhoc.git, but in the future I should do this instead I reckon. ---

Re: [Xen-devel] [PATCH XEN 1/2] x86/libxc: add an arch domain config parameter to xc_domain_create

2015-12-03 Thread Ian Campbell
On Mon, 2015-11-16 at 11:37 +, Ian Campbell wrote: > On Fri, 2015-11-13 at 12:41 +, Andrew Cooper wrote: > > On 13/11/15 11:05, Roger Pau Monne wrote: > > > With the addition of HVMlite the hypervisor now always requires a > > > non- > > > null > > > arch domain config, which is different b

Re: [Xen-devel] [PATCHv1] x86: rtc_cmos platform device requires legacy irqs

2015-12-03 Thread David Vrabel
On 03/12/15 11:23, Vitaly Kuznetsov wrote: > David Vrabel writes: > >> Adding the rtc platform device when there are no legacy irqs (no >> legacy PIC) > > No PIC != No legacy IRQs, Hyper-V Gen2 represents such a platform (and > it has RTC on irq8). I've tested this patch against it and it appear

[Xen-devel] [PATCH OSSTEST] cr-try-bisect-adhoc: Set OSSTEST_PRIORITY=-30

2015-12-03 Thread Ian Campbell
This makes adhoc bisects slightly more important than smoke tests, on the basis that a smoke test can choose another host while an adhoc bisect cannot. Document this is README.planner and while there make a note of the usage of OSSTEST_RESOURCE_WAITSTART by cr-try-bisect. Signed-off-by: Ian Campb

Re: [Xen-devel] [PATCH 0/2] VT-d flush issue

2015-12-03 Thread Xu, Quan
On 03.12.2015 at 9:16am, wrote: > >>> On 03.12.15 at 09:09, wrote: > > If impacted domain is Dom0 or hardware domain, just throw out a > warning. > > It's an open here whether we want to kill > > Dom0 or hardware domain (or directly panic hypervisor). Comments > > are welcomed. > > I th

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

2015-12-03 Thread osstest service owner
flight 65306 qemu-upstream-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/65306/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-amd64-amd64-libvirt-vhd 9 debian-di-installfail like 65053 Tests which did not

[Xen-devel] [distros-debian-wheezy test] 38422: tolerable FAIL

2015-12-03 Thread Platform Team regression test user
flight 38422 distros-debian-wheezy real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/38422/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-amd64-i386-amd64-wheezy-netboot-pygrub 9 debian-di-install fail blocked in 38352 baseline

Re: [Xen-devel] [PATCH v9 5/9] xen/x86: allow HVM guests to use hypercalls to bring up vCPUs

2015-12-03 Thread Jan Beulich
>>> On 27.11.15 at 14:43, wrote: > +int arch_set_info_hvm_guest(struct vcpu *v, const vcpu_hvm_context_t *ctx) > +{ > +struct cpu_user_regs *uregs = &v->arch.user_regs; > +struct segment_register cs, ds, ss, es, tr; > +const char *errstr; > +int rc; > + > +if ( ctx->pad != 0 )

Re: [Xen-devel] [PATCH v10 0/7] Add VT-d Posted-Interrupts support

2015-12-03 Thread Wu, Feng
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Thursday, December 3, 2015 7:19 PM > To: Wu, Feng > Cc: xen-devel@lists.xen.org > Subject: Re: [Xen-devel] [PATCH v10 0/7] Add VT-d Posted-Interrupts support > > >>> On 03.12.15 at 09:35, wrote: > > VT-d Posted

Re: [Xen-devel] [PATCH 0/2] VT-d flush issue

2015-12-03 Thread Jan Beulich
>>> On 03.12.15 at 09:09, wrote: > If impacted domain is Dom0 or hardware domain, just throw out a warning. > It's an open here whether we want to kill > Dom0 or hardware domain (or directly panic hypervisor). Comments are > welcomed. I think that's a reasonable default, provided by tha

Re: [Xen-devel] [PATCHv6] 27/28] build: convert CONFIG_COMPAT to Kconfig

2015-12-03 Thread Jan Beulich
>>> On 03.12.15 at 13:52, wrote: > On 11/30/15 9:18 AM, Jan Beulich wrote: > On 24.11.15 at 18:52, wrote: >>> --- >>> xen/arch/x86/Kconfig | 7 +++ >>> 1 file changed, 7 insertions(+) >> >> This can't be complete - you ought to be deleting the current definition. > > I don't understand

Re: [Xen-devel] [PATCH] ignore writes to GICD_ICACTIVER ... GICD_ICACTIVERN

2015-12-03 Thread Julien Grall
On 03/12/15 12:47, Jan Beulich wrote: On 03.12.15 at 12:41, wrote: >> On 03/12/15 11:41, Jan Beulich wrote: >> On 03.12.15 at 12:02, wrote: --- a/xen/arch/arm/vgic-v2.c +++ b/xen/arch/arm/vgic-v2.c @@ -315,11 +315,10 @@ static int vgic_v2_distr_mmio_write(struct vcpu *v,

Re: [Xen-devel] [PATCHv6] 27/28] build: convert CONFIG_COMPAT to Kconfig

2015-12-03 Thread Doug Goldstein
On 11/30/15 9:18 AM, Jan Beulich wrote: On 24.11.15 at 18:52, wrote: >> --- >> xen/arch/x86/Kconfig | 7 +++ >> 1 file changed, 7 insertions(+) > > This can't be complete - you ought to be deleting the current definition. I don't understand? > >> --- a/xen/arch/x86/Kconfig >> +++ b/x

Re: [Xen-devel] [PATCH XEN v6 02/32] mce-test: do not include libxenguest internal headers

2015-12-03 Thread Andrew Cooper
On 03/12/15 11:21, Ian Campbell wrote: > As far as I can tell there is no requirement for these and it builds > fine without them. > > Signed-off-by: Ian Campbell Sorry - my fault. This will be because of c/s b15bc4345e "tools/libxc: Remove legacy migration implementation" where I ended up movin

Re: [Xen-devel] [PATCH] ignore writes to GICD_ICACTIVER ... GICD_ICACTIVERN

2015-12-03 Thread Jan Beulich
>>> On 03.12.15 at 12:41, wrote: > On 03/12/15 11:41, Jan Beulich wrote: > On 03.12.15 at 12:02, wrote: >>> --- a/xen/arch/arm/vgic-v2.c >>> +++ b/xen/arch/arm/vgic-v2.c >>> @@ -315,11 +315,10 @@ static int vgic_v2_distr_mmio_write(struct vcpu *v, > mmio_info_t *info) >>> return 0;

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

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

Re: [Xen-devel] [PATCH XEN v6 03/32] tools/ocaml: simplify compile/link of test apps

2015-12-03 Thread David Scott
> On 3 Dec 2015, at 11:22, Ian Campbell wrote: > > xtl doesn't require the full LDLIBS_libxenctrl, just the -L and > xenlight.cmxa, the latter which contains LDLIBS_libxenctrl as needed. > Fixing this avoids the need to be concerned about LDLIBS_libxenctrl > becoming more than one word in the fu

Re: [Xen-devel] [PATCH] ignore writes to GICD_ICACTIVER ... GICD_ICACTIVERN

2015-12-03 Thread Julien Grall
On 03/12/15 11:41, Jan Beulich wrote: On 03.12.15 at 12:02, wrote: >> --- a/xen/arch/arm/vgic-v2.c >> +++ b/xen/arch/arm/vgic-v2.c >> @@ -315,11 +315,10 @@ static int vgic_v2_distr_mmio_write(struct vcpu *v, >> mmio_info_t *info) >> return 0; >> >> case GICD_ICACTIVER ... GIC

Re: [Xen-devel] [PATCH] ignore writes to GICD_ICACTIVER ... GICD_ICACTIVERN

2015-12-03 Thread Jan Beulich
>>> On 03.12.15 at 12:02, wrote: > --- a/xen/arch/arm/vgic-v2.c > +++ b/xen/arch/arm/vgic-v2.c > @@ -315,11 +315,10 @@ static int vgic_v2_distr_mmio_write(struct vcpu *v, > mmio_info_t *info) > return 0; > > case GICD_ICACTIVER ... GICD_ICACTIVERN: > -if ( dabt.size != DAB

Re: [Xen-devel] [PATCH] ignore writes to GICD_ICACTIVER ... GICD_ICACTIVERN

2015-12-03 Thread Julien Grall
Hi Stefano, On 03/12/15 11:02, Stefano Stabellini wrote: > Injecting a fault to the guest just because it is writing to one of the > GICD_ICACTIVER registers, which are part of the GICv2 and GICv3 specs, > is harsh. Additionally it causes recent linux kernels to fail to boot on > Xen. > > Ignore

[Xen-devel] [PATCH MINI-OS v6 3/5] mini-os: Include libxengnttab with libxc

2015-12-03 Thread Ian Campbell
libxengnttab has just been split out from libxc. From mini-os's point of view we don't care about the distinction, so keep things simple by just including libxengnttab if libxc is enabled. Signed-off-by: Ian Campbell Acked-by: Samuel Thibault Acked-by: Wei Liu --- v2: Adjust for libs/$lib layou

[Xen-devel] [PATCH MINI-OS v6 2/5] mini-os: Include libxenevtchn with libxc

2015-12-03 Thread Ian Campbell
libxenevtchn has just been split out from libxc. From mini-os's point of view we don't care about the distinction, so keep things simple by just including libxenevtchn if libxc is enabled. Signed-off-by: Ian Campbell Acked-by: Samuel Thibault Acked-by: Wei Liu --- v2: Adjust for libs/$lib layou

Re: [Xen-devel] [PATCHv1] x86: rtc_cmos platform device requires legacy irqs

2015-12-03 Thread Vitaly Kuznetsov
David Vrabel writes: > Adding the rtc platform device when there are no legacy irqs (no > legacy PIC) No PIC != No legacy IRQs, Hyper-V Gen2 represents such a platform (and it has RTC on irq8). I've tested this patch against it and it appears to work because the device is present in ACPI and we

[Xen-devel] [PATCH MINI-OS v6 5/5] mini-os: Include libxenforeignmemory with libxc

2015-12-03 Thread Ian Campbell
libxenforeignmemory has just been split out from libxc. From mini-os's point of view we don't care about the distinction, so keep things simple by just including libxenforeignmemory if libxc is enabled. Signed-off-by: Ian Campbell Acked-by: Samuel Thibault Acked-by: Wei Liu --- v2: Adjust for l

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

2015-12-03 Thread Andrew Cooper
On 03/12/15 01:19, Tian, Kevin wrote: >> From: Andrew Cooper [mailto:andrew.coop...@citrix.com] >> Sent: Thursday, November 26, 2015 9:56 PM >> >> On 26/11/15 13:48, Malcolm Crossley wrote: >>> On 26/11/15 13:46, Jan Beulich wrote: >>> On 25.11.15 at 11:28, wrote: > The problem is that San

[Xen-devel] [PATCH MINI-OS v6 4/5] mini-os: Include libxencall with libxc

2015-12-03 Thread Ian Campbell
libxencall has just been split out from libxc. From mini-os's point of view we don't care about the distinction, so keep things simple by just including libxencall if libxc is enabled. Signed-off-by: Ian Campbell Acked-by: Samuel Thibault Acked-by: Wei Liu --- v2: Adjust for libs/$lib layout. -

[Xen-devel] [PATCH QEMU-XEN-TRADITIONAL v6 4/5] qemu-xen-traditional: Add libxencall to rpath-link

2015-12-03 Thread Ian Campbell
libxenctrl links against this library Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- v3: Library moved to tools/libs --- xen-hooks.mak | 1 + 1 file changed, 1 insertion(+) diff --git a/xen-hooks.mak b/xen-hooks.mak index 179a6b7..229d642 100644 --- a/xen-hooks.mak +++ b/xen-hooks.mak @

[Xen-devel] [PATCH MINI-OS v6 0/5] Begin to disentangle libxenctrl and provide some stable libraries

2015-12-03 Thread Ian Campbell
We intend to stabilise some parts of the libxenctrl interface by splitting out some functionality into separate stable libraries. This is the mini-os part of the first phase of that change. This mail is (or is intended to be) a reply to a "0/" super-intro mail covering all of the related patch se

[Xen-devel] [PATCH QEMU-XEN-TRADITIONAL v6 3/5] qemu-xen-traditional: Use libxengnttab

2015-12-03 Thread Ian Campbell
/dev/xen/gntdev related wrappers have been moved out of libxenctrl into their own library. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- v3: Library moved to tools/libs/ --- hw/xen_backend.c | 4 ++-- hw/xen_backend.h | 2 +- hw/xen_common.h | 1 + hw/xen_console.c | 4 ++-- hw/xen

[Xen-devel] [PATCH QEMU-XEN v6 7/8] xen: domainbuild: reopen libxenctrl interface after forking for domain watcher.

2015-12-03 Thread Ian Campbell
Using an existing libxenctrl handle after a fork was never particularly safe (especially if foreign mappings existed at the time of the fork) and the xc fd has been unavailable for many releases. Reopen the handle after fork and therefore do away with xc_fd(). Signed-off-by: Ian Campbell Acked-b

[Xen-devel] [PATCH QEMU-XEN v6 6/8] xen: Use stable library interfaces when they are available.

2015-12-03 Thread Ian Campbell
In Xen 4.7 we are refactoring parts libxenctrl into a number of separate libraries which will provide backward and forward API and ABI compatiblity. Specifically libxenevtchn, libxengnttab and libxenforeignmemory. Previous patches have already laid the groundwork for using these by switching the

[Xen-devel] [PATCH MINI-OS v6 1/5] mini-os: Include libxentoollog with libxc

2015-12-03 Thread Ian Campbell
libxentoollog has just been split out from libxc. From mini-os's point of view we don't care about the distinction, so keep things simple by just including libxentoollog if libxc is enabled. Signed-off-by: Ian Campbell Acked-by: Samuel Thibault Acked-by: Wei Liu --- v2: Adjust for libs/$lib lay

[Xen-devel] [PATCH QEMU-XEN v6 4/8] xen: Switch uses of xc_map_foreign_range into xc_map_foreign_pages

2015-12-03 Thread Ian Campbell
In Xen 4.7 we are refactoring parts libxenctrl into a number of separate libraries which will provide backward and forward API and ABI compatiblity. One such library will be libxenforeignmemory which provides access to privileged foreign mappings and which will provide an interface equivalent to x

[Xen-devel] [PATCH QEMU-XEN-TRADITIONAL v6 1/5] qemu-xen-traditional: Use xentoollog as a separate library

2015-12-03 Thread Ian Campbell
This has been split out of libxenctrl, so the build needs to be able to find the header and the library. QEMU does not use xtl_* itself so -rpath-link is sufficient to allow linking to libxenctrl.so (which links against libxentoollog). Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- v3: L

[Xen-devel] [PATCH QEMU-XEN-TRADITIONAL v6 5/5] qemu-xen-traditional: Add libxenforeignmemory to rpath-link

2015-12-03 Thread Ian Campbell
libxenctrl links against this library. Also, request the compat xc_map_foreign API from libxc. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- v3: Library moved to tools/libs/ --- xen-hooks.mak | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen-hooks.mak b/xen-hooks.mak index 229d

[Xen-devel] [PATCH XEN v6 12/32] tools: Refactor hypercall calling wrappers into libxencall.

2015-12-03 Thread Ian Campbell
libxencall will provide a stable API and ABI for calling hypercalls (although those hypercalls themselves may not have a stable API). As well as the hypercall buffer infrastructure needed in order to safely provide pointer arguments to hypercalls. libxenctrl encapsulates a instance of this interfa

[Xen-devel] [PATCH QEMU-XEN v6 2/8] xen: Switch to libxenevtchn interface for compat shims.

2015-12-03 Thread Ian Campbell
In Xen 4.7 we are refactoring parts libxenctrl into a number of separate libraries which will provide backward and forward API and ABI compatiblity. One such library will be libxenevtchn which provides access to event channels. In preparation for this switch the compatibility layer in xen_common.

[Xen-devel] [PATCH QEMU-XEN v6 5/8] xen: Switch uses of xc_map_foreign_{pages, bulk} to use libxenforeignmemory API.

2015-12-03 Thread Ian Campbell
In Xen 4.7 we are refactoring parts libxenctrl into a number of separate libraries which will provide backward and forward API and ABI compatiblity. One such library will be libxenforeignmemory which provides access to privileged foreign mappings and which will provide an interface equivalent to x

[Xen-devel] [PATCH XEN v6 31/32] tools: Update CFLAGS for qemu-xen to allow it to use new libraries

2015-12-03 Thread Ian Campbell
This means adding -L for libxen{evtchn,gnttab,foreignmemory} so that it can link them directly (rather than using the libxenctrl compat layer exposed via -rpath-link). Also add -I for libxenforeignmemory. Signed-off-by: Ian Campbell Acked-by: Wei Liu --- tools/Makefile | 4 1 file changed,

[Xen-devel] [PATCH XEN v6 30/32] tools/libs/call: linux: avoid forking between mmap and madvise

2015-12-03 Thread Ian Campbell
Use pthread_atfork to prevent the application from forking before the madvisoe(), which would result in CoW mappings getting passed to hypercalls. (largely cribbed from libxl_fork.c) Signed-off-by: Ian Campbell --- v6: New --- tools/libs/call/buffer.c | 2 +- tools/libs/call/linux.c | 66

[Xen-devel] [PATCH QEMU-XEN v6 3/8] xen: Switch to libxengnttab interface for compat shims.

2015-12-03 Thread Ian Campbell
In Xen 4.7 we are refactoring parts libxenctrl into a number of separate libraries which will provide backward and forward API and ABI compatiblity. One such library will be libxengnttab which provides access to grant tables. In preparation for this switch the compatibility layer in xen_common.h

[Xen-devel] [PATCH QEMU-XEN-TRADITIONAL v6 2/5] qemu-xen-traditional: Use libxenevtchn

2015-12-03 Thread Ian Campbell
/dev/xen/evtchn related wrappers have been moved out of libxenctrl into their own library. Note that i386-dm/helper2.c's xc_interface * was always really an xc_evtchn *, it's just they used to be typedefs to the same thing... Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- v3: Library mov

[Xen-devel] [PATCH QEMU-XEN-TRADITIONAL v6 0/5] Begin to disentangle libxenctrl and provide some stable libraries

2015-12-03 Thread Ian Campbell
We intend to stabilise some parts of the libxenctrl interface by splitting out some functionality into separate stable libraries. This is the qemu-xen-traditional part of the first phase of that change. This mail is (or is intended to be) a reply to a "0/" super-intro mail covering all of the rel

[Xen-devel] [PATCH QEMU-XEN v6 8/8] xen: make it possible to build without the Xen PV domain builder

2015-12-03 Thread Ian Campbell
Until the previous patch this relied on xc_fd(), which was only implemented for Xen 4.0 and earlier. Given this wasn't working since Xen 4.0 I have marked this as disabled by default. Removing this support drops the use of a bunch of symbols from libxenctrl, specifically: - xc_domain_create

[Xen-devel] [PATCH QEMU-XEN v6 1/8] xen_console: correctly cleanup primary console on teardown.

2015-12-03 Thread Ian Campbell
All of the work in con_disconnect applies to the primary console case (when xendev->dev is NULL). Therefore remove the early check and bail and allow it to fall through. All of the existing code is correctly conditional already. The ->dev and ->gnttabdev handles are either both set or neither. For

[Xen-devel] [PATCH XEN v6 29/32] tools/libs/call: Use O_CLOEXEC when opening /dev/xen/privcmd on Linux

2015-12-03 Thread Ian Campbell
We stick with using FD_CLOEXEC on the legacy /proc/xen/privcmd fallback device since it was present in older kernel where O_CLOEXEC may not be assured. Signed-off-by: Ian Campbell --- v6: New --- tools/libs/call/linux.c | 57 - 1 file changed, 37 i

[Xen-devel] [PATCH QEMU-XEN v6 0/8] Begin to disentangle libxenctrl and provide some stable libraries

2015-12-03 Thread Ian Campbell
We intend to stabilise some parts of the libxenctrl interface by splitting out some functionality into separate stable libraries. This is the qemu-xen part of the first phase of that change. This mail is (or is intended to be) a reply to a "0/" super-intro mail covering all of the related patch s

[Xen-devel] [PATCH XEN v6 26/32] tools/libs/call: Update some log messages to not refer to xc.

2015-12-03 Thread Ian Campbell
Signed-off-by: Ian Campbell Acked-by: Wei Liu --- tools/libs/call/linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/libs/call/linux.c b/tools/libs/call/linux.c index 55e1e83..3641e41 100644 --- a/tools/libs/call/linux.c +++ b/tools/libs/call/linux.c @@ -94,7 +

[Xen-devel] [PATCH XEN v6 28/32] tools/libs/call: Avoid xc_memalign in netbsd and solaris backends

2015-12-03 Thread Ian Campbell
These are already arch specific, so just use the appropriate interfaces (as determined by looking at the xc_memalign backend). Signed-off-by: Ian Campbell Acked-by: Wei Liu --- tools/libs/call/netbsd.c | 4 ++-- tools/libs/call/solaris.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)

[Xen-devel] [PATCH XEN v6 01/32] x86/libxc: add an arch domain config parameter to xc_domain_create

2015-12-03 Thread Ian Campbell
From: Roger Pau Monne With the addition of HVMlite the hypervisor now always requires a non-null arch domain config, which is different between HVM and PV guests. Add a new parameter to xc_domain_create that contains a pointer to an arch domain config. If the pointer is null, create a default ar

[Xen-devel] [PATCH XEN v6 03/32] tools/ocaml: simplify compile/link of test apps

2015-12-03 Thread Ian Campbell
xtl doesn't require the full LDLIBS_libxenctrl, just the -L and xenlight.cmxa, the latter which contains LDLIBS_libxenctrl as needed. Fixing this avoids the need to be concerned about LDLIBS_libxenctrl becoming more than one word in the future. Since the tests are pure ocaml (no C components) CFLA

[Xen-devel] [PATCH XEN v6 24/32] tools/libs: Clean up hard tabs.

2015-12-03 Thread Ian Campbell
These were wrong in the context of libxc before this code was extracted, clean them up. Also add some emacs magic blocks Signed-off-by: Ian Campbell Acked-by: Wei Liu --- tools/libs/call/buffer.c | 4 ++-- tools/libs/call/core.c| 2 +- tools/libs/call/minios.c

[Xen-devel] [PATCH XEN v6 27/32] tools/libs/call: Describe return values and error semantics for xencall*

2015-12-03 Thread Ian Campbell
This behaviour has been confirmed by inspection on: - Linux - FreeBSD (NB: hcall->retval is the hypercall return value only for values >= 0. For negative values the underlying privcmd driver translates the value from Xen to FreeBSD errno space and returns it as the result of the ioctl,

[Xen-devel] [PATCH XEN v6 04/32] tools/Rules.mk: Properly handle libraries with recursive dependencies.

2015-12-03 Thread Ian Campbell
In tree libraries which link against other in tree libraries in a way which is opaque to their callers need special handling, specifically correct use of -Wl,-rpath-link for the recusively used libraries. Currently this is rather simple, but up coming changes are going to introduce transitive depe

[Xen-devel] [PATCH XEN v6 18/32] tools/libs/foreignmemory: use size_t for size arguments.

2015-12-03 Thread Ian Campbell
Surprisingly it appears no callers need updating. Signed-off-by: Ian Campbell Acked-by: Wei Liu Acked-by: Ian Jackson --- v4: New patch --- tools/libs/foreignmemory/compat.c | 2 +- tools/libs/foreignmemory/freebsd.c | 4 ++-- .../libs/foreignmemory/include/x

[Xen-devel] [PATCH XEN v6 32/32] HACK: Update Config.mk to pull all the right bits from my xenbits trees

2015-12-03 Thread Ian Campbell
v4: Config.mk instead of .config --- Config.mk | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Config.mk b/Config.mk index 64fcf1b..09c6e80 100644 --- a/Config.mk +++ b/Config.mk @@ -242,20 +242,20 @@ endif ifeq ($(GIT_HTTP),y) OVMF_UPSTREAM_URL ?= http:/

[Xen-devel] [PATCH XEN v6 25/32] tools/libs/gnttab: Extensive updates to API documentation.

2015-12-03 Thread Ian Campbell
In particular around error handling, behaviour on fork and the unmap notification mechanism. Behaviour of xengnttab_map_*grant_refs and xengntshr_share_pages on partial failure has been confirmed/inferred (by inspection) on Linux and Mini-os (the only two known implementations. Likewise the behavi

[Xen-devel] [PATCH XEN v6 10/32] tools: Refactor /dev/xen/gnt{dev, shr} wrappers into libxengnttab.

2015-12-03 Thread Ian Campbell
libxengnttab will provide a stable API and ABI for accessing the grant table devices. The functions are moved into the xengnt{tab,shr} namespace to make a clean break from libxc and avoid ambiguity regarding which interfaces are stable. All in-tree users are updated to use the new names. Upon re

[Xen-devel] [PATCH XEN v6 00/32] Begin to disentangle libxenctrl and provide some stable libraries

2015-12-03 Thread Ian Campbell
We intend to stabilise some parts of the libxenctrl interface by splitting out some functionality into separate stable libraries. This is the xen part of the first phase of that change. This mail is (or is intended to be) a reply to a "0/" super-intro mail covering all of the related patch series

[Xen-devel] [PATCH XEN v6 05/32] tools: Refactor "xentoollog" into its own library

2015-12-03 Thread Ian Campbell
In attempting to disaggregate libxenctrl I found that many of the pieces were going to want access to this library, so split it out (as it probably should always have been). Various build adjustments are needed. In particular things which use xtl_* themselves now need to explicity link against the

  1   2   >