[Xen-devel] [xen-4.4-testing test] 32298: regressions - FAIL

2014-12-12 Thread xen . org
flight 32298 xen-4.4-testing real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/32298/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-win7-amd64 7 windows-install fail REGR. vs. 32231 Regressions which

[Xen-devel] [xen-4.2-testing test] 32291: tolerable FAIL - PUSHED

2014-12-12 Thread xen . org
flight 32291 xen-4.2-testing real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/32291/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-i386-i386-pair 17 guest-migrate/src_host/dst_host fail like 31897 test-amd64-i386-pair

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

2014-12-12 Thread xen . org
flight 32294 qemu-mainline real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/32294/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-pair 8 xen-boot/dst_host fail REGR. vs. 32194 Tests which did not

[Xen-devel] [AMD PVH]: Partial/domU xen patches...

2014-12-12 Thread Mukesh Rathor
Hi Elena/Boris: Actually, I forgot I had already made and tested AMD SVM and other changes for domU support, please find the patches. So the only thing remaining for AMD would be iommu support and SVM vmexit for CR reads and writes which currently calls handle_mmio (which patch #3 attempted, bu

[Xen-devel] [V0 PATCH 3/6] AMD-PVH: call hvm_emulate_one instead of handle_mmio

2014-12-12 Thread Mukesh Rathor
Certain IOIO instructions and CR access instructions like lmsw/clts etc need to be emulated. handle_mmio is incorrectly called to accomplish this. Create svm_emulate() to call hvm_emulate_one which is more appropriate, and works for pvh as well. handle_mmio call is forbidden for pvh. Signed-off-by

[Xen-devel] [V0 PATCH 5/6] AMD-PVH: Support TSC_MODE_NEVER_EMULATE for PVH

2014-12-12 Thread Mukesh Rathor
On AMD, MSR_AMD64_TSC_RATIO must be set for rdtsc instruction in guest to properly read the cpu tsc. To that end, set tsc_khz in struct domain. Signed-off-by: Mukesh Rathor --- xen/arch/x86/time.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c index

[Xen-devel] [V0 PATCH 6/6] AMD-PVH: enable pvh if requirements met

2014-12-12 Thread Mukesh Rathor
Finally, enable pvh if the cpu supports NPT and svm decode. Signed-off-by: Mukesh Rathor --- xen/arch/x86/hvm/svm/svm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c index 4bb4ff2..8b27a76 100644 --- a/xen/arch/x86/hvm/svm/svm.c ++

[Xen-devel] [V0 PATCH 1/6] AMD-PVH: construct vmcb changes

2014-12-12 Thread Mukesh Rathor
PVH guest starts in Long 64bit paging mode. This patch modifies construct_vmcb for that. Signed-off-by: Mukesh Rathor --- xen/arch/x86/hvm/svm/vmcb.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/hvm/svm/vmcb.c b/xen/arch/x86/hvm/svm/vmcb.c

[Xen-devel] [V0 PATCH 2/6] AMD-PVH: cpuid intercept

2014-12-12 Thread Mukesh Rathor
Call pv_cpuid for pvh cpuid intercept. Note, we modify svm_vmexit_do_cpuid instead of the intercept switch because the guest eip needs to be adjusted for pvh also. Signed-off-by: Mukesh Rathor --- xen/arch/x86/hvm/svm/svm.c | 24 ++-- 1 file changed, 14 insertions(+), 10 dele

[Xen-devel] [V0 PATCH 4/6] AMD-PVH: Do not get/set vlapic TPR

2014-12-12 Thread Mukesh Rathor
PVH doesn't use apic emulation hence vlapic->regs ptr is not set for it. Signed-off-by: Mukesh Rathor --- xen/arch/x86/hvm/svm/svm.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c index dac16

[Xen-devel] 4.5 patch: xendomains noise to stderr in rdname()

2014-12-12 Thread Mark Pryor
Instead of tracking down which commit involving libxl* which prints all kind of noiseto stderr, I will post a workaround. If you build, install, and use 4.5 this bug will drive you mad, so here it is: snip - --- a/tools/hotplug/Linux/xendomains.in+++ b/tools/

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

2014-12-12 Thread xen . org
flight 32285 seabios real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/32285/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking): test-amd64-amd64-xl-sedf 5 xen-bootfail pass in 32215 test-amd64-amd64-xl-qemut-winxpsp3 3 ho

Re: [Xen-devel] [PATCH 1/4] xen: build infrastructure for generating hypercall depending symbols

2014-12-12 Thread Boris Ostrovsky
On 12/11/2014 01:04 PM, Juergen Gross wrote: diff --git a/scripts/xen-hypercalls.sh b/scripts/xen-hypercalls.sh new file mode 100644 index 000..e6447b7 --- /dev/null +++ b/scripts/xen-hypercalls.sh @@ -0,0 +1,11 @@ +#!/bin/sh +out="$1" +shift +in="$@" + +for i in $in; do + eval $CPP $LI

[Xen-devel] [xen-4.3-testing test] 32282: tolerable FAIL - PUSHED

2014-12-12 Thread xen . org
flight 32282 xen-4.3-testing real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/32282/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-amd64-i386-pair17 guest-migrate/src_host/dst_host fail like 32110 test-amd64-amd64-xl-qemut-

[Xen-devel] [PATCH for 4.5] x86/VPMU: Clear last_vcpu when destroying VPMU

2014-12-12 Thread Boris Ostrovsky
We need to make sure that last_vcpu is not pointing to VCPU whose VPMU is being destroyed. Otherwise we may try dereference it in the future, when VCPU is gone. Signed-off-by: Boris Ostrovsky --- xen/arch/x86/hvm/vpmu.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletion

[Xen-devel] does rdname() in xendomains follow symlink?

2014-12-12 Thread Mark Pryor
I am testing 4.5 (HEAD) in deb8 and noticed some problems with xendomains(git path):  ./tools/hotplug/Linux/xendomains when trying to get the name from the JSON config it ends up with the symlink name instead. Thismay not show up as a bug unless you use symlinks in /etc/xen/auto, like me. I thi

[Xen-devel] [PATCH for-4.5] docs/commandline: Minor formatting fixes and clarifications

2014-12-12 Thread Andrew Cooper
`font` had a trailing single quote which was out of place. `gnttab_max_frames` was missing escapes for the underscores which caused the underscores to take their markdown meaning, causing 'max' in the middle to be italicised. Escape the underscores, and make all command line parameters bold, to b

Re: [Xen-devel] xenstored crashes with SIGSEGV

2014-12-12 Thread Ian Campbell
(adding Ian J who knows a bit more about C xenstored than me...) On Fri, 2014-12-12 at 18:20 +0100, Philipp Hahn wrote: > Hello Ian, > > On 12.12.2014 17:56, Ian Campbell wrote: > > On Fri, 2014-12-12 at 17:45 +0100, Philipp Hahn wrote: > >> On 12.12.2014 17:32, Ian Campbell wrote: > >>> On Fri,

Re: [Xen-devel] Xen's Linux kernel config options

2014-12-12 Thread David Vrabel
On 12/12/14 13:17, Juergen Gross wrote: > > > As a first draft I'd suggest the following: Some rough thoughts below. > Option Selects Depends > -- > XEN SWIOT

Re: [Xen-devel] xenstored crashes with SIGSEGV

2014-12-12 Thread Philipp Hahn
Hello Ian, On 12.12.2014 17:56, Ian Campbell wrote: > On Fri, 2014-12-12 at 17:45 +0100, Philipp Hahn wrote: >> On 12.12.2014 17:32, Ian Campbell wrote: >>> On Fri, 2014-12-12 at 17:14 +0100, Philipp Hahn wrote: We did enable tracing and now have the xenstored-trace.log of one crash: It

Re: [Xen-devel] [PATCH for-4.6 4/4] xen/arm: Find automatically a PPI for the DOM0 event channel interrupt

2014-12-12 Thread Julien Grall
On 12/12/14 14:43, Julien Grall wrote: > diff --git a/xen/arch/arm/domain.c b/xen/arch/arm/domain.c > index 7221bc8..7d14377 100644 > --- a/xen/arch/arm/domain.c > +++ b/xen/arch/arm/domain.c > @@ -543,10 +543,17 @@ int arch_domain_create(struct domain *d, unsigned int > domcr_flags) > if ( (

Re: [Xen-devel] xenstored crashes with SIGSEGV

2014-12-12 Thread Ian Campbell
On Fri, 2014-12-12 at 17:45 +0100, Philipp Hahn wrote: > Hello Ian, > > On 12.12.2014 17:32, Ian Campbell wrote: > > On Fri, 2014-12-12 at 17:14 +0100, Philipp Hahn wrote: > >> We did enable tracing and now have the xenstored-trace.log of one crash: > >> It contains 1.6 billion lines and is 83 GiB

Re: [Xen-devel] [PATCH for-4.5] reset PCI devices on force removal even when QEMU returns error

2014-12-12 Thread Konrad Rzeszutek Wilk
On Fri, Dec 12, 2014 at 04:13:52PM +0100, Sander Eikelenboom wrote: > Hi Konrad, > > This doesn't seem to be applied yet, nor does it seem to have a > release-(N)ACK > from you ? Hm, Stefano: - Is this a regression? - What are the risks of this not going in? I presume that it just means we

Re: [Xen-devel] xenstored crashes with SIGSEGV

2014-12-12 Thread Philipp Hahn
Hello Ian, On 12.12.2014 17:32, Ian Campbell wrote: > On Fri, 2014-12-12 at 17:14 +0100, Philipp Hahn wrote: >> We did enable tracing and now have the xenstored-trace.log of one crash: >> It contains 1.6 billion lines and is 83 GiB. >> It just shows xenstored to crash on TRANSACTION_START. >> >> I

Re: [Xen-devel] Xen's Linux kernel config options

2014-12-12 Thread Konrad Rzeszutek Wilk
On Fri, Dec 12, 2014 at 02:17:27PM +0100, Juergen Gross wrote: > Hi, > > This is a design proposal for a rework of the config options on the > Linux kernel which are related to Xen. > > The need to do so arose from the fact that it is currently not > possible to build the Xen frontend drivers for

Re: [Xen-devel] patches pending acks (or naks)

2014-12-12 Thread Konrad Rzeszutek Wilk
On Fri, Dec 12, 2014 at 09:45:17AM +, Jan Beulich wrote: > >>> On 11.12.14 at 20:41, wrote: > > On Thu, Dec 11, 2014 at 03:38:39PM +, Jan Beulich wrote: > >> >>> On 11.12.14 at 16:18, wrote: > >> > A proper fix would be to automatically adjust based on memmap and CPU > >> > but > >> > t

Re: [Xen-devel] [PATCH v2] domctl: fix IRQ permission granting/revocation

2014-12-12 Thread Ian Campbell
On Fri, 2014-12-12 at 10:24 +, Jan Beulich wrote: > Commit 545607eb3c ("x86: fix various issues with handling guest IRQs") > wasn't really consistent in one respect: The granting of access to an > IRQ shouldn't assume the pIRQ->IRQ translation to be the same in both > domains. In fact it is wro

Re: [Xen-devel] xenstored crashes with SIGSEGV

2014-12-12 Thread Ian Campbell
On Fri, 2014-12-12 at 17:14 +0100, Philipp Hahn wrote: > Hello, > > On 13.11.2014 10:12, Ian Campbell wrote: > > On Thu, 2014-11-13 at 08:45 +0100, Philipp Hahn wrote: > >> To me this looks like some memory corruption by some unknown code > >> writing into some random memory space, which happens t

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

2014-12-12 Thread xen . org
flight 32278 linux-linus real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/32278/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-rumpuserxen-i386 8 guest-start fail REGR. vs. 31241 test-amd64-amd64-rump

Re: [Xen-devel] [RFC V8 2/3] libxl domain snapshot API design

2014-12-12 Thread Ian Campbell
On Tue, 2014-12-09 at 20:46 -0700, Chun Yan Liu wrote: > > >>> On 12/9/2014 at 07:11 PM, in message > >>> <1418123518.14361.20.ca...@citrix.com>, > Ian Campbell wrote: > > On Mon, 2014-12-08 at 22:04 -0700, Chun Yan Liu wrote: > > > Partly. At least for domain disk snapshot create/delete, I pr

Re: [Xen-devel] xenstored crashes with SIGSEGV

2014-12-12 Thread Philipp Hahn
Hello, On 13.11.2014 10:12, Ian Campbell wrote: > On Thu, 2014-11-13 at 08:45 +0100, Philipp Hahn wrote: >> To me this looks like some memory corruption by some unknown code >> writing into some random memory space, which happens to be the tdb here. > > I wonder if running xenstored under valgrin

Re: [Xen-devel] Porting document

2014-12-12 Thread Ian Campbell
On Fri, 2014-12-12 at 15:59 +, Ian Campbell wrote: > On Mon, 2014-12-08 at 15:47 +, Frediano Ziglio wrote: > > Hi, > > while I was porting D01 platform > > (https://wiki.linaro.org/Boards/D01) to Xen I wrote a small document > > trying to describe the step I made and problems I encountere

Re: [Xen-devel] Porting document

2014-12-12 Thread Ian Campbell
On Mon, 2014-12-08 at 15:47 +, Frediano Ziglio wrote: > Hi, > while I was porting D01 platform > (https://wiki.linaro.org/Boards/D01) to Xen I wrote a small document > trying to describe the step I made and problems I encountered hoping > it could useful to other people. The idea is to put su

Re: [Xen-devel] [PATCH for-4.5] reset PCI devices on force removal even when QEMU returns error

2014-12-12 Thread Sander Eikelenboom
Hi Konrad, This doesn't seem to be applied yet, nor does it seem to have a release-(N)ACK from you ? -- Sander Friday, November 28, 2014, 5:53:09 PM, you wrote: > On do_pci_remove when QEMU returns error, we just bail out early without > resetting the device. On domain shutdown we are racing

Re: [Xen-devel] [PATCH 5/5] tools/hotplug: support XENSTORED_TRACE in systemd

2014-12-12 Thread Olaf Hering
On Fri, Dec 12, Olaf Hering wrote: > This works: > ExecStart=@XENSTORED@ --no-fork $XENSTORED_ARGS > > This fails: > ExecStart=$XENSTORED --no-fork $XENSTORED_ARGS But this will likely work: ExecStart=/usr/bin/env $XENSTORED --no-fork $XENSTORED_ARGS Let me know how to proceed... Olaf __

Re: [Xen-devel] Cache Allocation Technology(CAT) design for XEN

2014-12-12 Thread Andrew Cooper
On 12/12/14 12:27, Chao Peng wrote: > Hi all, we plan to bring Intel CAT into XEN. This is the initial > design for that. Comments/suggestions are welcome. > > Background > == > Traditionally, all Virtual Machines ("VMs") share the same set of system > cache resources. There is no hardware

[Xen-devel] [PATCH for-4.6 4/4] xen/arm: Find automatically a PPI for the DOM0 event channel interrupt

2014-12-12 Thread Julien Grall
Use the new vgic interface to know which virtual PPI is free and use it for the event channel code. At the DOM0 creation time, Xen still don't know which vIRQ will be free. All the vIRQ will be reserved when we parse the device tree. So allocate when the hypervisor node is created. It's safe to d

[Xen-devel] [PATCH for-4.6 1/4] xen/arm: vgic: Rename nr_lines into nr_spis

2014-12-12 Thread Julien Grall
The field nr_lines in the arch_domain vgic structure contains the number of SPIs for the emulated GIC. Using the nr_lines make confusion with the GIC code, where it means the number of IRQs. This can lead to coding error. Also introduce vgic_nr_lines to get the number of IRQ handled by the emulate

[Xen-devel] [PATCH for-4.6 2/4] xen/arm: vgic: Keep track of vIRQ used by a domain

2014-12-12 Thread Julien Grall
While it's easy to know which hardware IRQ is assigned to a domain, there is no way to know which IRQ is emulated by Xen for a specific domain. Introduce a bitmap to keep track of every vIRQ used by a domain. This will be used later to find free vIRQ for interrupt device assignment and emulated in

[Xen-devel] [PATCH for-4.6 3/4] xen/arm: vgic: notice if the vIRQ is not allocated when the guest enable it

2014-12-12 Thread Julien Grall
This help for guest interrupts debugging. If the vIRQ is not allocate, this means that nothing is wired to it. Signed-off-by: Julien Grall --- xen/arch/arm/vgic.c | 4 1 file changed, 4 insertions(+) diff --git a/xen/arch/arm/vgic.c b/xen/arch/arm/vgic.c index dbfc259..719cb9f 100644 --- a

[Xen-devel] [PATCH for-4.6 0/4] Find automatically a PPI for the DOM0 even channel IRQ

2014-12-12 Thread Julien Grall
Hello, This patch series replaces the per-platform hardcoded event channel interrupt to a generic solution. It will make the port to a new platform more easier and may avoid to introduce per-platform code with the new upcoming ACPI support. This could be done by keeping track of vIRQ (emulated an

Re: [Xen-devel] [PATCH v2] x86/hvm: Extend HVM cpuid leaf with vcpu id

2014-12-12 Thread Paul Durrant
> -Original Message- > From: Matt Wilson [mailto:mswil...@gmail.com] On Behalf Of Matt Wilson > Sent: 11 December 2014 23:17 > To: Paul Durrant > Cc: xen-devel@lists.xen.org; Keir (Xen.org); Jan Beulich > Subject: Re: [Xen-devel] [PATCH v2] x86/hvm: Extend HVM cpuid leaf with > vcpu id > >

[Xen-devel] Xen's Linux kernel config options

2014-12-12 Thread Juergen Gross
Hi, This is a design proposal for a rework of the config options on the Linux kernel which are related to Xen. The need to do so arose from the fact that it is currently not possible to build the Xen frontend drivers for a non-pvops kernel, e.g. to run them in a HVM-domain. There are more drawba

[Xen-devel] Cache Allocation Technology(CAT) design for XEN

2014-12-12 Thread Chao Peng
Hi all, we plan to bring Intel CAT into XEN. This is the initial design for that. Comments/suggestions are welcome. Background == Traditionally, all Virtual Machines ("VMs") share the same set of system cache resources. There is no hardware support to control allocation or availability of

Re: [Xen-devel] [PATCH 5/5] tools/hotplug: support XENSTORED_TRACE in systemd

2014-12-12 Thread Olaf Hering
On Fri, Dec 12, Olaf Hering wrote: > On Fri, Dec 12, Ian Campbell wrote: > > > Seems ok. I wonder if the wrapper ought to source > > @CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons to obtain XENSTORED_* itself > > rather than relying on the initscript and unit file to do so. Especially > > in the inits

Re: [Xen-devel] [PATCH 5/5] tools/hotplug: support XENSTORED_TRACE in systemd

2014-12-12 Thread M A Young
On Fri, 12 Dec 2014, Ian Campbell wrote: On Fri, 2014-12-12 at 12:37 +0100, Olaf Hering wrote: On Fri, Dec 12, Ian Campbell wrote: Seems ok. I wonder if the wrapper ought to source @CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons to obtain XENSTORED_* itself rather than relying on the initscript a

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

2014-12-12 Thread xen . org
flight 32245 xen-unstable real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/32245/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-amd64-i386-pair17 guest-migrate/src_host/dst_host fail like 32198 Tests which did not succeed,

Re: [Xen-devel] [PATCH 5/5] tools/hotplug: support XENSTORED_TRACE in systemd

2014-12-12 Thread Ian Campbell
On Fri, 2014-12-12 at 12:37 +0100, Olaf Hering wrote: > On Fri, Dec 12, Ian Campbell wrote: > > > Seems ok. I wonder if the wrapper ought to source > > @CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons to obtain XENSTORED_* itself > > rather than relying on the initscript and unit file to do so. Especiall

[Xen-devel] [linux-3.10 test] 32277: regressions - FAIL

2014-12-12 Thread xen . org
flight 32277 linux-3.10 real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/32277/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemut-winxpsp3 7 windows-install fail REGR. vs. 26303 Tests which are failin

Re: [Xen-devel] [PATCH 5/5] tools/hotplug: support XENSTORED_TRACE in systemd

2014-12-12 Thread Olaf Hering
On Fri, Dec 12, Ian Campbell wrote: > Seems ok. I wonder if the wrapper ought to source > @CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons to obtain XENSTORED_* itself > rather than relying on the initscript and unit file to do so. Especially > in the initscript case it looks a bit ugly to have to manual

Re: [Xen-devel] [PATCH v2] domctl: fix IRQ permission granting/revocation

2014-12-12 Thread Ian Campbell
On Fri, 2014-12-12 at 11:03 +, Jan Beulich wrote: > >>> On 12.12.14 at 11:49, wrote: > > On 12/12/14 10:24, Jan Beulich wrote: > >> Commit 545607eb3c ("x86: fix various issues with handling guest IRQs") > >> wasn't really consistent in one respect: The granting of access to an > >> IRQ shouldn

Re: [Xen-devel] Few Comments on the Xen SMMU ARM code

2014-12-12 Thread Ian Campbell
On Thu, 2014-12-11 at 10:02 -0800, manish jaggi wrote: > This is the complete smmu.c file which you can refer for PCI > passthrough (http://pastebin.com/QDX8fpDu) I'm afraid that as Julien says this is basically no help. > Just FYI this is not a patch, we are still testing on our board and > can

Re: [Xen-devel] [PATCH v2] domctl: fix IRQ permission granting/revocation

2014-12-12 Thread Jan Beulich
>>> On 12.12.14 at 11:49, wrote: > On 12/12/14 10:24, Jan Beulich wrote: >> Commit 545607eb3c ("x86: fix various issues with handling guest IRQs") >> wasn't really consistent in one respect: The granting of access to an >> IRQ shouldn't assume the pIRQ->IRQ translation to be the same in both >> do

Re: [Xen-devel] One question about the hypercall to translate gfn to mfn.

2014-12-12 Thread Jan Beulich
>>> On 12.12.14 at 08:24, wrote: > - is there existing _map_ call for this purpose per your knowledge, or > a new one is required? If the latter, what's the additional logic to be > implemented there? I think the answer to this depends on whether you want to use grants. The goal of using the nati

Re: [Xen-devel] [PATCH v2] domctl: fix IRQ permission granting/revocation

2014-12-12 Thread Andrew Cooper
On 12/12/14 10:24, Jan Beulich wrote: > Commit 545607eb3c ("x86: fix various issues with handling guest IRQs") > wasn't really consistent in one respect: The granting of access to an > IRQ shouldn't assume the pIRQ->IRQ translation to be the same in both > domains. In fact it is wrong to assume tha

[Xen-devel] [PATCH v2] domctl: fix IRQ permission granting/revocation

2014-12-12 Thread Jan Beulich
Commit 545607eb3c ("x86: fix various issues with handling guest IRQs") wasn't really consistent in one respect: The granting of access to an IRQ shouldn't assume the pIRQ->IRQ translation to be the same in both domains. In fact it is wrong to assume that a translation is already/ still in place at

Re: [Xen-devel] [PATCH 5/5] tools/hotplug: support XENSTORED_TRACE in systemd

2014-12-12 Thread Ian Campbell
On Wed, 2014-12-10 at 18:52 +0100, Olaf Hering wrote: > On Wed, Dec 10, Ian Campbell wrote: > > > That results in a wrapper which unconditionally execs, the systemd unit > > just calls that while the sysv script runs the wrapper and then does the > > xenstore-read -s loop. > > Since systemd hand

Re: [Xen-devel] [PATCH 5/5] tools/hotplug: support XENSTORED_TRACE in systemd

2014-12-12 Thread Ian Campbell
On Wed, 2014-12-10 at 19:01 +0100, Olaf Hering wrote: > On Wed, Dec 10, Ian Campbell wrote: > > > Separately from the above I wonder if it might be worth moving the > > xenstore readiness check into the xen-init-dom0 helper and having most > > things which currently depend on xenstore actually dep

Re: [Xen-devel] patches pending acks (or naks)

2014-12-12 Thread Jan Beulich
>>> On 11.12.14 at 20:41, wrote: > On Thu, Dec 11, 2014 at 03:38:39PM +, Jan Beulich wrote: >> >>> On 11.12.14 at 16:18, wrote: >> > A proper fix would be to automatically adjust based on memmap and CPU but >> > that could be too complex. >> >> The problem isn't the complexity, but the chic

[Xen-devel] [linux-next test] 32239: regressions - FAIL

2014-12-12 Thread xen . org
flight 32239 linux-next real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/32239/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl5 xen-boot fail REGR. vs. 32171 test-amd64-i386-libvir

[Xen-devel] [PATCH v7 0/2] add new p2m type class and new p2m type

2014-12-12 Thread Yu Zhang
XenGT (Intel Graphics Virtualization technology, please refer to https://01.org/xen/blogs/srclarkx/2013/graphics-virtualization- xengt) driver runs inside Dom0 as a virtual graphics device model, and needs to trap and emulate the guest's write operations to some specific memory pages, like memory p

[Xen-devel] [PATCH v7 1/2] add a new p2m type class - P2M_DISCARD_WRITE_TYPES

2014-12-12 Thread Yu Zhang
From: Yu Zhang Currently, the P2M_RO_TYPES bears 2 meanings: one is "_PAGE_RW bit is clear in their PTEs", and another is to discard the write operations on these pages. This patch adds a p2m type class, P2M_DISCARD_WRITE_TYPES, to bear the second meaning, so we can use this type class instead of

[Xen-devel] [PATCH v7 2/2] add a new p2m type - p2m_mmio_write_dm

2014-12-12 Thread Yu Zhang
From: Yu Zhang A new p2m type, p2m_mmio_write_dm, is added to trap and emulate the write operations on GPU's page tables. Handling of this new p2m type are similar with existing p2m_ram_ro in most condition checks, with only difference on final policy of emulation vs. drop. For p2m_ram_ro types,