Re: [Xen-devel] [edk2] OVMF broken under Xen (in PCI initialisation)

2016-04-26 Thread Gary Lin
On Tue, Apr 26, 2016 at 06:43:56AM +, Ni, Ruiyu wrote: > > > Regards, > Ray > > >-Original Message- > >From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > >Anthony PERARD > >Sent: Friday, April 22, 2016 10:48 PM > >To: edk2-de...@lists.01.org > >Cc: Xen Devel >

[Xen-devel] [PATCH] delte PAGE_ORDER_1G in pod

2016-04-26 Thread zhangcy
PoD does not have cache list for 1GB pages. Signed-off-by: zhangcy --- xen/arch/x86/mm/p2m-pod.c | 4 1 file changed, 4 deletions(-) diff --git a/xen/arch/x86/mm/p2m-pod.c b/xen/arch/x86/mm/p2m-pod.c index a931f2c..89a07ee 100644 --- a/xen/arch/x86/mm/p2m-pod.c +++ b/xen/arch/x86/mm/p2m-po

Re: [Xen-devel] [PATCH v9 04/27] xen/xsplice: Hypervisor implementation of XEN_XSPLICE_op

2016-04-26 Thread Ross Lagerwall
On 04/25/2016 04:34 PM, Konrad Rzeszutek Wilk wrote: snip +static int xsplice_action(xen_sysctl_xsplice_action_t *action) +{ +struct payload *data; +char n[XEN_XSPLICE_NAME_SIZE]; +int rc; + +rc = get_name(&action->name, n); +if ( rc ) +return rc; + +spin_lock(&pay

Re: [Xen-devel] [PATCH v9 06/27] xen-xsplice: Tool to manipulate xsplice payloads

2016-04-26 Thread Ross Lagerwall
On 04/25/2016 04:34 PM, Konrad Rzeszutek Wilk wrote: snip diff --git a/tools/misc/xen-xsplice.c b/tools/misc/xen-xsplice.c new file mode 100644 index 000..fb9228e --- /dev/null +++ b/tools/misc/xen-xsplice.c @@ -0,0 +1,463 @@ +/* + * Copyright (c) 2016 Oracle and/or its affiliates. All rights

[Xen-devel] How to use blktap2 and know it's actually work in Debian 8.2

2016-04-26 Thread freddy50806
I install xen-4.4 from source in Debian 8.2,kernel version is 3.16.7 and I want to try modify some blktap2 code and reinstall, but the xen wiki information about blktap2 seems not to maintain and some links have lost. Newer xen use xl toolstack instead of xm, it change the backend. Is blktap2 stil

Re: [Xen-devel] [PATCH v9 05/27] libxc: Implementation of XEN_XSPLICE_op in libxc

2016-04-26 Thread Ross Lagerwall
On 04/25/2016 04:34 PM, Konrad Rzeszutek Wilk wrote: snip + +/* + * The operations are asynchronous and the hypervisor may take a while + * to complete them. The `timeout` offers an option to expire the + * operation if it could not be completed within the specified time + * (in ms). Value of 0 m

Re: [Xen-devel] [PATCH v9 04/27] xen/xsplice: Hypervisor implementation of XEN_XSPLICE_op

2016-04-26 Thread Ross Lagerwall
On 04/25/2016 04:34 PM, Konrad Rzeszutek Wilk wrote: +/* + * Perform an operation on the payload structure referenced by the `name` field. + * The operation request is asynchronous and the status should be retrieved + * by using either XEN_SYSCTL_XSPLICE_GET or XEN_SYSCTL_XSPLICE_LIST hypercall.

Re: [Xen-devel] Should we mark RTDS as supported feature from experimental feature?

2016-04-26 Thread Dario Faggioli
On Mon, 2016-04-25 at 21:44 -0400, Meng Xu wrote: > Hi Dario and all, > Hi, > When RTDS scheduler is initialized, it will print out that the > scheduler is an experimental feature with the following lines: > > printk("Initializing RTDS scheduler\n" > >    "WARNING: This is experimen

Re: [Xen-devel] [edk2] OVMF broken under Xen (in PCI initialisation)

2016-04-26 Thread Ni, Ruiyu
Gary, Maybe the system boots to Shell well but the video isn't initialized properly. Can you build the firmware using "-D DEBUG_ON_SERIAL_PORT" switch and give me the boot log? Regards, Ray From: Gary Lin [mailto:g...@suse.com] Sent: Tuesday, April 26, 2016 3:35 PM To: Ni, Ruiyu Cc: Anthony PERA

[Xen-devel] [PATCH] x86/HVM: correct last address emulation acceptance check

2016-04-26 Thread Jan Beulich
For REPeated memory access instructions the repeat count also needs to be considered. Utilize that "last" already takes this into account. Also defer computing "last" until we really know we need it. Signed-off-by: Jan Beulich --- a/xen/arch/x86/hvm/intercept.c +++ b/xen/arch/x86/hvm/intercept.

[Xen-devel] [PATCH] x86/HVM: slightly improve hvm_mmio_{first, last}_byte()

2016-04-26 Thread Jan Beulich
EFLAGS.DF can be assumed to be usually clear, so unlikely()-annotate the conditionals accordingly. Also prefer latching p->size (used twice) into a local variable, at once making it unnecessary for the reader to be sure expressions get evaluated left to right (operand promotion would yield a diffe

Re: [Xen-devel] [PATCH v3 1/3] x86/ioreq server(patch for 4.7): Rename p2m_mmio_write_dm to p2m_ioreq_server.

2016-04-26 Thread Yu, Zhang
On 4/26/2016 1:01 AM, Paul Durrant wrote: -Original Message- From: George Dunlap [mailto:george.dun...@citrix.com] Sent: 25 April 2016 17:16 To: Yu, Zhang; Jan Beulich; Paul Durrant Cc: Andrew Cooper; Wei Liu; Jun Nakajima; Kevin Tian; Zhiyuan Lv; xen- de...@lists.xen.org; Keir (Xen.org

Re: [Xen-devel] [PATCH v3 1/3] x86/ioreq server(patch for 4.7): Rename p2m_mmio_write_dm to p2m_ioreq_server.

2016-04-26 Thread Paul Durrant
> -Original Message- [snip] > > > > For clarity, do you expect any existing use of HVMMEM_mmio_write_dm > to continue to *function*? I agree that things should continue to build, but > if > they don't need to function then the now redundant p2m type should be > removed IMO and any attempt

Re: [Xen-devel] [PATCH] delte PAGE_ORDER_1G in pod

2016-04-26 Thread Jan Beulich
>>> On 26.04.16 at 09:27, wrote: > PoD does not have cache list for 1GB pages. But it might gain support in the future. Is there any harm in this code being there? Jan > Signed-off-by: zhangcy > --- > xen/arch/x86/mm/p2m-pod.c | 4 > 1 file changed, 4 deletions(-) > > diff --git a/xen/a

[Xen-devel] update status -- vTPM for HVM virtual machine

2016-04-26 Thread Xu, Quan
On April 26, 2016 1:41 PM, Emil Condrea wrote: >Hi Quan, > >How are you ? I want to help you to get upstream the vtpm patches. I followed >the emails on xen-devel and I see that the last status was at v8 series >where Stefano asked to do some refactoring and splitting the patches into >refactori

Re: [Xen-devel] [PATCH] x86/HVM: correct last address emulation acceptance check

2016-04-26 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 26 April 2016 09:23 > To: xen-devel > Cc: Paul Durrant; Wei Liu > Subject: [PATCH] x86/HVM: correct last address emulation acceptance check > > For REPeated memory access instructions the repeat count also needs to

Re: [Xen-devel] [edk2] OVMF broken under Xen (in PCI initialisation)

2016-04-26 Thread Gary Lin
On Tue, Apr 26, 2016 at 08:19:49AM +, Ni, Ruiyu wrote: > Gary, > Maybe the system boots to Shell well but the video isn't initialized properly. > Can you build the firmware using "-D DEBUG_ON_SERIAL_PORT" switch and > give me the boot log? > Hi Ray, I already did and it's how I make the firmw

Re: [Xen-devel] [PATCH] x86/HVM: slightly improve hvm_mmio_{first, last}_byte()

2016-04-26 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 26 April 2016 09:28 > To: xen-devel > Cc: Paul Durrant; Wei Liu > Subject: [PATCH] x86/HVM: slightly improve hvm_mmio_{first,last}_byte() > > EFLAGS.DF can be assumed to be usually clear, so unlikely()-annotate > t

Re: [Xen-devel] [PATCH] delte PAGE_ORDER_1G in pod

2016-04-26 Thread Zhang, Chunyu
On 26.04.16 at 09:27, wrote: >> PoD does not have cache list for 1GB pages. > >But it might gain support in the future. Is there any harm in this code >being there? no harm in this code. when i read this code, i wonder why order == PAGE_ORDER_1G? this make me confuse. i just delete useless c

Re: [Xen-devel] [PATCH] x86/HVM: slightly improve hvm_mmio_{first, last}_byte()

2016-04-26 Thread Jan Beulich
>>> On 26.04.16 at 10:41, wrote: >> -Original Message- >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: 26 April 2016 09:28 >> To: xen-devel >> Cc: Paul Durrant; Wei Liu >> Subject: [PATCH] x86/HVM: slightly improve hvm_mmio_{first,last}_byte() >> >> EFLAGS.DF can be assumed to b

[Xen-devel] [PATCH V5] vm_event: Allow subscribing to write events for specific MSR-s

2016-04-26 Thread Razvan Cojocaru
Previously, subscribing to MSR write events was an all-or-none approach, with special cases for introspection MSR-s. This patch allows the vm_event consumer to specify exactly what MSR-s it is interested in, and as a side-effect gets rid of the vmx_introspection_force_enabled_msrs[] special case. T

Re: [Xen-devel] [PATCH] x86/HVM: slightly improve hvm_mmio_{first, last}_byte()

2016-04-26 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 26 April 2016 09:47 > To: Paul Durrant > Cc: Wei Liu; xen-devel > Subject: RE: [PATCH] x86/HVM: slightly improve > hvm_mmio_{first,last}_byte() > > >>> On 26.04.16 at 10:41, wrote: > >> -Original Message-

Re: [Xen-devel] Should we mark RTDS as supported feature from experimental feature?

2016-04-26 Thread Andrew Cooper
>> However, inside MAINTAINERS file, the status of RTDS scheduler is >> marked as Supported (refer to commit point 28041371 by Dario Faggioli >> on 2015-06-25). >> > There's indeed a discrepancy between the way one can read that bit of > MAINTAINERS, and what is generally considered Supported (e.g

Re: [Xen-devel] [Hackathon 16] Notes from Security Session

2016-04-26 Thread Lars Kurth
Also adding Steve Maresca to the thread, who has been using XSM extensively and also documenting XSM and can provide some user perspective Lars > On 25 Apr 2016, at 20:51, Daniel De Graaf wrote: > > On 04/25/2016 02:32 PM, Konrad Rzeszutek Wilk wrote: >> On Tue, Apr 19, 2016 at 10:11:28AM +010

Re: [Xen-devel] [PATCH v2 01/11] vt-d: fix the IOMMU flush issue

2016-04-26 Thread Jan Beulich
>>> On 26.04.16 at 04:18, wrote: > On April 25, 2016 5:22 PM, Jan Beulich wrote: >> >>> On 18.04.16 at 16:00, wrote: >> > --- a/xen/drivers/passthrough/vtd/iommu.c >> > +++ b/xen/drivers/passthrough/vtd/iommu.c >> > @@ -558,14 +558,16 @@ static void iommu_flush_all(void) >> > } >> > } >> >

Re: [Xen-devel] [PATCH V5] vm_event: Allow subscribing to write events for specific MSR-s

2016-04-26 Thread Razvan Cojocaru
On 04/26/2016 11:49 AM, Razvan Cojocaru wrote: > Previously, subscribing to MSR write events was an all-or-none > approach, with special cases for introspection MSR-s. This patch > allows the vm_event consumer to specify exactly what MSR-s it is > interested in, and as a side-effect gets rid of the

Re: [Xen-devel] [PATCH] x86/xstate: don't clobber or leak state when using XSAVES

2016-04-26 Thread Andrew Cooper
On 25/04/16 08:07, Jan Beulich wrote: > Commit 4d27280572 ("x86/xsaves: fix overwriting between non-lazy/lazy > xsaves") switched to always saving full state when using compacted > format (which is the only one XSAVES allows). It didn't, however, also > adjust the restore side: In order to save ful

Re: [Xen-devel] linux-next: manual merge of the xen-tip tree with the arm64 tree

2016-04-26 Thread Will Deacon
On Tue, Apr 26, 2016 at 03:00:41PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the xen-tip tree got a conflict in: > > arch/arm64/kernel/setup.c > > between commit: > > 3194ac6e66cc ("arm64: Move unflatten_device_tree() call earlier.") > > from the arm64 tree a

Re: [Xen-devel] [PATCH V5] vm_event: Allow subscribing to write events for specific MSR-s

2016-04-26 Thread Julien Grall
Hi Razvan, On 26/04/2016 09:49, Razvan Cojocaru wrote: diff --git a/xen/common/vm_event.c b/xen/common/vm_event.c index 2906407..1ba12cb 100644 --- a/xen/common/vm_event.c +++ b/xen/common/vm_event.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -66

Re: [Xen-devel] [edk2] OVMF broken under Xen (in PCI initialisation)

2016-04-26 Thread Andrew Cooper
> I tried to make RootBridgeIoConfiguration() return EFI_UNSUPPORTED > (see the attachment), and those asserts were gone. However, the system > stuck somewhere after loading shell.efi. Here are the messages from the > debug log: > > BdsLibConnectAll > Select Item: 0xE > Memory Previous Current

[Xen-devel] Error when running the tests for the ocaml tools

2016-04-26 Thread Roger Pau Monné
Hello, I've hit the following error when trying to compile the ocaml tools using clang 3.8.0 and ocaml 4.02.3: gmake -C test all gmake[2]: Entering directory '/root/src/xen/tools/ocaml/test' MLOPTxtl.cmx MLBINxtl File "_none_", line 1: Error: Files xtl.cmx and /root/src/xen/tool

Re: [Xen-devel] [PATCH V5] vm_event: Allow subscribing to write events for specific MSR-s

2016-04-26 Thread Razvan Cojocaru
On 04/26/2016 12:26 PM, Julien Grall wrote: > Hi Razvan, > > On 26/04/2016 09:49, Razvan Cojocaru wrote: >> diff --git a/xen/common/vm_event.c b/xen/common/vm_event.c >> index 2906407..1ba12cb 100644 >> --- a/xen/common/vm_event.c >> +++ b/xen/common/vm_event.c >> @@ -27,6 +27,7 @@ >> #include

Re: [Xen-devel] linux-next: manual merge of the xen-tip tree with the arm64 tree

2016-04-26 Thread Stefano Stabellini
On Tue, 26 Apr 2016, Will Deacon wrote: > On Tue, Apr 26, 2016 at 03:00:41PM +1000, Stephen Rothwell wrote: > > Hi all, > > > > Today's linux-next merge of the xen-tip tree got a conflict in: > > > > arch/arm64/kernel/setup.c > > > > between commit: > > > > 3194ac6e66cc ("arm64: Move unflat

Re: [Xen-devel] [for-4.7] xen/arm: Force broadcast of TLB and instruction cache maintenance instructions

2016-04-26 Thread Julien Grall
Hi Konrad, On 25/04/2016 19:22, Konrad Rzeszutek Wilk wrote: On Mon, Apr 18, 2016 at 10:29:51AM +0100, Julien Grall wrote: UP guest usually uses TLB instruction to flush only on the local CPU. The TLB flush won't be broadcasted across all the CPUs within the same innershareable domain. When th

Re: [Xen-devel] Error when running the tests for the ocaml tools

2016-04-26 Thread Andrew Cooper
On 26/04/16 10:31, Roger Pau Monné wrote: > Hello, > > I've hit the following error when trying to compile the ocaml tools using > clang 3.8.0 and ocaml 4.02.3: > > gmake -C test all > gmake[2]: Entering directory '/root/src/xen/tools/ocaml/test' > MLOPTxtl.cmx > MLBINxtl > File "_none_"

Re: [Xen-devel] [PATCH v3] xen: arm: doc: Add firmware requirements

2016-04-26 Thread Stefano Stabellini
On Mon, 25 Apr 2016, Dirk Behme wrote: > From: Dirk Behme > > Add a section about what the firmware should do in EL3 before starting Xen. > > E.g guest will use HVC instruction to issue hypercall. As this can be set only > at EL3, i.e. outside Xen, document this boot requirement. > > Signed-off

Re: [Xen-devel] [PATCH v2 09/11] IOMMU: propagate IOMMU Device-TLB flush error up to IOMMU suspending

2016-04-26 Thread Julien Grall
Hi Quan, On 25/04/2016 15:50, Xu, Quan wrote: On April 25, 2016 9:58pm, wrote: On 25/04/16 12:52, Jan Beulich wrote: On 18.04.16 at 16:00, wrote: --- a/xen/drivers/passthrough/arm/smmu.c +++ b/xen/drivers/passthrough/arm/smmu.c @@ -2540,7 +2540,7 @@ static int force_stage = 2; */ sta

Re: [Xen-devel] [edk2] OVMF broken under Xen (in PCI initialisation)

2016-04-26 Thread Ni, Ruiyu
Gary, I can reproduce the issue and have debugged to get the reason. In MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c: PciEnumeratorLight() calls PciRootBridgeIo->Configuration() while the Configuration returns EFI_UNSUPPORTED resulting the PciBus driver exits earlier. You could try to manu

Re: [Xen-devel] [for-4.7] xen/arm: Force broadcast of TLB and instruction cache maintenance instructions

2016-04-26 Thread Stefano Stabellini
On Mon, 25 Apr 2016, Julien Grall wrote: > (CC Steve and Andre) > > Hi Stefano, > > On 25/04/16 11:45, Stefano Stabellini wrote: > > On Mon, 18 Apr 2016, Julien Grall wrote: > > > UP guest usually uses TLB instruction to flush only on the local CPU. The > > > TLB flush won't be broadcasted across

Re: [Xen-devel] [PATCH] docs/arm64: clarify the documention for loading XSM support

2016-04-26 Thread Stefano Stabellini
On Mon, 25 Apr 2016, Ian Jackson wrote: > From: Fu Wei > > Improve the clarity of the wording introduced in 67831c4c > "docs/arm64: update the documentation for loading XSM support" > > Signed-off-by: Ian Jackson > CC: Fu Wei > CC: Julien Grall , > CC: Stefano Stabellini Reviewed-by: Stefano

[Xen-devel] [xen-4.3-testing test] 92778: trouble: blocked/broken/fail/pass

2016-04-26 Thread osstest service owner
flight 92778 xen-4.3-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/92778/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-pvops 3 host-install(3) broken REGR. vs. 878

Re: [Xen-devel] [PATCH] docs/arm64: clarify the documention for loading XSM support

2016-04-26 Thread Wei Liu
On Tue, Apr 26, 2016 at 10:47:34AM +0100, Stefano Stabellini wrote: > On Mon, 25 Apr 2016, Ian Jackson wrote: > > From: Fu Wei > > > > Improve the clarity of the wording introduced in 67831c4c > > "docs/arm64: update the documentation for loading XSM support" > > > > Signed-off-by: Ian Jackson

Re: [Xen-devel] [PATCH] docs/arm64: clarify the documention for loading XSM support

2016-04-26 Thread Stefano Stabellini
On Tue, 26 Apr 2016, Wei Liu wrote: > On Tue, Apr 26, 2016 at 10:47:34AM +0100, Stefano Stabellini wrote: > > On Mon, 25 Apr 2016, Ian Jackson wrote: > > > From: Fu Wei > > > > > > Improve the clarity of the wording introduced in 67831c4c > > > "docs/arm64: update the documentation for loading XS

Re: [Xen-devel] [edk2] OVMF broken under Xen (in PCI initialisation)

2016-04-26 Thread Gary Lin
On Tue, Apr 26, 2016 at 10:31:22AM +0100, Andrew Cooper wrote: > > > I tried to make RootBridgeIoConfiguration() return EFI_UNSUPPORTED > > (see the attachment), and those asserts were gone. However, the system > > stuck somewhere after loading shell.efi. Here are the messages from the > > debug l

Re: [Xen-devel] [PATCH v9 10/27] xsplice: Add helper elf routines

2016-04-26 Thread Ross Lagerwall
On 04/25/2016 04:34 PM, Konrad Rzeszutek Wilk wrote: snip +static int xsplice_header_check(const struct xsplice_elf *elf) +{ +const Elf_Ehdr *hdr = elf->hdr; + +if ( sizeof(*elf->hdr) > elf->len ) +{ +dprintk(XENLOG_ERR, XSPLICE "%s: Section header is bigger than payload!\n",

Re: [Xen-devel] Error when running the tests for the ocaml tools

2016-04-26 Thread Roger Pau Monné
On Tue, Apr 26, 2016 at 10:37:36AM +0100, Andrew Cooper wrote: > Dependency tracking is non-existant in the Ocaml subdirectory. In some > copious free time I need to rewrite that part of the build system, as > the generated cmx/cmxa files are unusable outside of the Xen source tree > (because of e

Re: [Xen-devel] [PATCH v2 01/11] vt-d: fix the IOMMU flush issue

2016-04-26 Thread Xu, Quan
On April 26, 2016 5:11 PM, Jan Beulich wrote: > >>> On 26.04.16 at 04:18, wrote: > > On April 25, 2016 5:22 PM, Jan Beulich wrote: > >> >>> On 18.04.16 at 16:00, wrote: > >> > --- a/xen/drivers/passthrough/vtd/iommu.c > >> > +++ b/xen/drivers/passthrough/vtd/iommu.c > >> > @@ -558,14 +558,16 @@

Re: [Xen-devel] [PATCH v9 04/27] xen/xsplice: Hypervisor implementation of XEN_XSPLICE_op

2016-04-26 Thread Jan Beulich
>>> On 25.04.16 at 17:34, wrote: > The implementation does not actually do any patching. > > It just adds the framework for doing the hypercalls, > keeping track of ELF payloads, and the basic operations: > - query which payloads exist, > - query for specific payloads, > - check*1, apply*1, re

Re: [Xen-devel] update status -- vTPM for HVM virtual machine

2016-04-26 Thread Wei Liu
Hi Quan For avoidance of doubt, this is purely status update, no action is needed on my part. Let me know if I misunderstood. Thanks Wei. ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH] delte PAGE_ORDER_1G in pod

2016-04-26 Thread George Dunlap
On 26/04/16 08:27, zhangcy wrote: > PoD does not have cache list for 1GB pages. > > Signed-off-by: zhangcy Thanks for the patch. FYI we normally tag the area in the title in a structured way; I probably would have used something like the following: xen/pod: Remove code handling PAGE_ORDER_1G f

Re: [Xen-devel] SMMU, Unhandled context fault

2016-04-26 Thread Julien Grall
On 25/04/2016 09:54, Peng Fan wrote: Hi Julien, Stefano Hello Peng, I met an issue when passthrough a device to DomU, and have no clear idea what's wrong. Which version of the SMMU is present on the board? Is it SMMUv1 or SMMUv2? The SMMU drivers in Xen has been ported from Linux last y

Re: [Xen-devel] [PATCH] x86/HVM: correct last address emulation acceptance check

2016-04-26 Thread Wei Liu
On Tue, Apr 26, 2016 at 02:22:50AM -0600, Jan Beulich wrote: > For REPeated memory access instructions the repeat count also needs to > be considered. Utilize that "last" already takes this into account. > > Also defer computing "last" until we really know we need it. > > Signed-off-by: Jan Beuli

Re: [Xen-devel] [PATCH v9 07/27] arm/x86: Use struct virtual_region to do bug, symbol, and (x86) exception tables lookup.

2016-04-26 Thread Jan Beulich
>>> On 25.04.16 at 17:34, wrote: > --- /dev/null > +++ b/xen/common/virtual_region.c > @@ -0,0 +1,148 @@ > +/* > + * Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. > + * > + */ > + > +#include > +#include > +#include > +#include > +#include > + > +static struct virtual_

Re: [Xen-devel] Odroid XU3 support

2016-04-26 Thread Julien Grall
(CC the author of the Odroid support in Xen) On 25/04/2016 11:01, Ivan Pavić2 wrote: Hello, Hello, I have CCed Suriyan who added the support of Odroid in Xen. He might be able to help you here. i'm trying to boot dom0 linux on exynos5422 platform on A15 (big cpu cluster). From the past

Re: [Xen-devel] [PATCH] x86/HVM: slightly improve hvm_mmio_{first, last}_byte()

2016-04-26 Thread Wei Liu
On Tue, Apr 26, 2016 at 02:28:24AM -0600, Jan Beulich wrote: > EFLAGS.DF can be assumed to be usually clear, so unlikely()-annotate > the conditionals accordingly. > > Also prefer latching p->size (used twice) into a local variable, at > once making it unnecessary for the reader to be sure express

Re: [Xen-devel] update status -- vTPM for HVM virtual machine

2016-04-26 Thread Xu, Quan
On April 26, 2016 6:25 PM, Wei Liu wrote: > For avoidance of doubt, this is purely status update, no action is needed on > my part. Yes. > Let me know if I misunderstood. > Quan ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org

Re: [Xen-devel] [PATCH v9 11/27] xsplice: Implement payload loading

2016-04-26 Thread Ross Lagerwall
On 04/25/2016 04:34 PM, Konrad Rzeszutek Wilk wrote: snip +static int move_payload(struct payload *payload, struct xsplice_elf *elf) +{ +uint8_t *text_buf, *ro_buf, *rw_buf; +unsigned int i; +size_t size = 0; +unsigned int *offset; +int rc = 0; + +offset = xzalloc_array(un

Re: [Xen-devel] [PATCH v9 08/27] arm/x86/vmap: Add v[z|m]alloc_xen and vm_init_type

2016-04-26 Thread Jan Beulich
>>> On 25.04.16 at 17:34, wrote: > For those users who want to use the virtual addresses that > are in the hypervisor's code/data region address space - > these three new functions allow that. > > Implementation wise the vmap API keeps track of two virtual > address regions now: > a) VMAP_VIRT_S

Re: [Xen-devel] [PATCH v2 11/11] vt-d: propagate error up to ME phantom function mapping and unmapping

2016-04-26 Thread Xu, Quan
On April 25, 2016 8:00 PM, Jan Beulich wrote: > >>> On 18.04.16 at 16:00, wrote: > > --- a/xen/drivers/passthrough/vtd/extern.h > > +++ b/xen/drivers/passthrough/vtd/extern.h > > @@ -91,7 +91,7 @@ int is_igd_vt_enabled_quirk(void); void > > platform_quirks_init(void); void vtd_ops_preamble_quir

Re: [Xen-devel] [PATCH v2] xen/arm: gicv2: Export GICv2m register frames to domain0 by device tree

2016-04-26 Thread Julien Grall
Hello Wei, On 25/04/2016 10:39, Wei Chen wrote: This patch adds v2m extension support in GIC-v2 driver. The GICv2 driver detects the MSI frames from device tree and creates corresponding device tree nodes in Domain0's DTB. It also provides one hw_ops callback to map NIT: s/Domain0/dom0/ v2m

Re: [Xen-devel] [PATCH] delte PAGE_ORDER_1G in pod

2016-04-26 Thread Zhang, Chunyu
>On 26/04/16 08:27, zhangcy wrote: >> PoD does not have cache list for 1GB pages. >> >> Signed-off-by: zhangcy > >Thanks for the patch. FYI we normally tag the area in the title in a >structured way; I probably would have used something like the following: > >xen/pod: Remove code handling PAGE_

Re: [Xen-devel] [PATCH v3 2/3] x86/ioreq server: Add new functions to get/set memory types.

2016-04-26 Thread Wei Liu
Hi Yu On Mon, Apr 25, 2016 at 06:35:39PM +0800, Yu Zhang wrote: > For clarity this patch breaks the code to set/get memory types out > of do_hvm_op() into dedicated functions: hvmop_set/get_mem_type(). > Also, for clarity, checks for whether a memory type change is allowed > are broken out into a

Re: [Xen-devel] [PATCH v2 01/11] vt-d: fix the IOMMU flush issue

2016-04-26 Thread Jan Beulich
>>> On 26.04.16 at 12:15, wrote: > On April 26, 2016 5:11 PM, Jan Beulich wrote: >> >>> On 26.04.16 at 04:18, wrote: >> > On April 25, 2016 5:22 PM, Jan Beulich wrote: >> >> >>> On 18.04.16 at 16:00, wrote: >> >> > --- a/xen/drivers/passthrough/vtd/iommu.c >> >> > +++ b/xen/drivers/passthrough

Re: [Xen-devel] [PATCH v2 02/11] xen/hvmlite: Bootstrap HVMlite guest

2016-04-26 Thread Borislav Petkov
On Mon, Apr 25, 2016 at 11:48:19AM -0400, Boris Ostrovsky wrote: > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/x86/boot.txt#n1096 > > is what I was referring to. Right, so reportedly those two weren't meant to be entry points initially but stuff is using the

Re: [Xen-devel] [PATCH] delte PAGE_ORDER_1G in pod

2016-04-26 Thread George Dunlap
On 26/04/16 11:49, Zhang, Chunyu wrote: > >> On 26/04/16 08:27, zhangcy wrote: >>> PoD does not have cache list for 1GB pages. >>> >>> Signed-off-by: zhangcy >> >> Thanks for the patch. FYI we normally tag the area in the title in a >> structured way; I probably would have used something like th

Re: [Xen-devel] [PATCH v2 01/11] vt-d: fix the IOMMU flush issue

2016-04-26 Thread Xu, Quan
On April 26, 2016 6:53 PM, Jan Beulich wrote: > >>> On 26.04.16 at 12:15, wrote: > > On April 26, 2016 5:11 PM, Jan Beulich wrote: > >> >>> On 26.04.16 at 04:18, wrote: > >> > On April 25, 2016 5:22 PM, Jan Beulich wrote: > >> >> >>> On 18.04.16 at 16:00, wrote: > >> >> > --- a/xen/drivers/pa

Re: [Xen-devel] [PATCH] delte PAGE_ORDER_1G in pod

2016-04-26 Thread Zhang, Chunyu
>On 26/04/16 11:49, Zhang, Chunyu wrote: >> >>> On 26/04/16 08:27, zhangcy wrote: PoD does not have cache list for 1GB pages. Signed-off-by: zhangcy >>> >>> Thanks for the patch. FYI we normally tag the area in the title in a >>> structured way; I probably would have used somethin

Re: [Xen-devel] [PATCH v9 17/27] xsplice: Add support for bug frames.

2016-04-26 Thread Ross Lagerwall
On 04/25/2016 04:35 PM, Konrad Rzeszutek Wilk wrote: snip diff --git a/xen/common/xsplice.c b/xen/common/xsplice.c index 72a3b88..11b19dd 100644 --- a/xen/common/xsplice.c +++ b/xen/common/xsplice.c @@ -123,6 +123,35 @@ static int verify_payload(const xen_sysctl_xsplice_upload_t *upload, char *n

Re: [Xen-devel] [PATCH v9 16/27] x86, xsplice: Print payload's symbol name and payload name in backtraces

2016-04-26 Thread Ross Lagerwall
On 04/25/2016 04:35 PM, Konrad Rzeszutek Wilk wrote: snip +static DEFINE_RCU_READ_LOCK(rcu_applied_lock); static LIST_HEAD(applied_list); static unsigned int payload_cnt; @@ -56,6 +57,8 @@ struct payload { unsigned int nfuncs; /* Nr of functions to patch. */ const

Re: [Xen-devel] [PATCH] delte PAGE_ORDER_1G in pod

2016-04-26 Thread George Dunlap
On 26/04/16 12:05, Zhang, Chunyu wrote: > >> On 26/04/16 11:49, Zhang, Chunyu wrote: >>> On 26/04/16 08:27, zhangcy wrote: > PoD does not have cache list for 1GB pages. > > Signed-off-by: zhangcy Thanks for the patch. FYI we normally tag the area in the title in a

[Xen-devel] [distros-debian-snapshot test] 44365: tolerable trouble: blocked/broken/pass

2016-04-26 Thread Platform Team regression test user
flight 44365 distros-debian-snapshot real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/44365/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): build-amd64 3 host-install(3) broken like 44343 build-amd64-pv

Re: [Xen-devel] [PATCH v2 09/11] IOMMU: propagate IOMMU Device-TLB flush error up to IOMMU suspending

2016-04-26 Thread Xu, Quan
On April 25, 2016 7:53 PM, Jan Beulich wrote: > >>> On 18.04.16 at 16:00, wrote: > > --- a/xen/arch/x86/acpi/power.c > > +++ b/xen/arch/x86/acpi/power.c > > @@ -45,19 +45,31 @@ void do_suspend_lowlevel(void); > > > > static int device_power_down(void) > > { > > +int err; > > + > > cons

[Xen-devel] [RFC] Minor change to governance document at http://www.xenproject.org/developers/governance.html

2016-04-26 Thread Lars Kurth
Hi all, following the recent process to elect new maintainers and committers, I would like to suggest the following minor change to our governance document. I believe the process we ran recently worked well, so we should change the governance accordingly. I don't think we need to change the go

Re: [Xen-devel] [PATCH] delte PAGE_ORDER_1G in pod

2016-04-26 Thread Zhang, Chunyu
[...] i think p2m_is_ram(t) , ram also from pod cache, >>> >>> No, that's memory from the guest's p2m table. The p2m table can have 1G >> right.. >> sorry , i did not write clearly. >> i mean: ram come like this: >> - pod cache is 4K or 2M >> - ram get from pod cache >> - set ram to p2m tabl

Re: [Xen-devel] [PATCH v2 08/11] IOMMU: propagate IOMMU Device-TLB flush error up to iommu_iotlb_flush{, _all} (leaf ones).

2016-04-26 Thread Xu, Quan
On April 25, 2016 7:40 PM, Jan Beulich wrote: > >>> On 18.04.16 at 16:00, wrote: > > While IOMMU Device-TLB flush timed out, xen calls panic() at present. > > However the existing panic() is going to be eliminated, so we must > > propagate the IOMMU Device-TLB flush error up to the > > iommu_iotl

Re: [Xen-devel] [PATCH v9 10/27] xsplice: Add helper elf routines

2016-04-26 Thread Jan Beulich
>>> On 26.04.16 at 12:05, wrote: > On 04/25/2016 04:34 PM, Konrad Rzeszutek Wilk wrote: > snip >> +static int xsplice_header_check(const struct xsplice_elf *elf) >> +{ >> +const Elf_Ehdr *hdr = elf->hdr; >> + >> +if ( sizeof(*elf->hdr) > elf->len ) >> +{ >> +dprintk(XENLOG_ERR,

[Xen-devel] [qemu-mainline baseline-only test] 44364: regressions - FAIL

2016-04-26 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 44364 qemu-mainline real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/44364/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-pair10 xen-boot/dst_h

Re: [Xen-devel] [PATCH v2 07/11] IOMMU/MMU: propagate IOMMU Device-TLB flush error up to iommu_iotlb_flush{, _all} (top level ones).

2016-04-26 Thread Xu, Quan
On April 25, 2016 6:19 PM, Jan Beulich wrote: > >>> On 18.04.16 at 16:00, wrote: > > --- a/xen/common/memory.c > > +++ b/xen/common/memory.c > > @@ -678,8 +678,9 @@ static int xenmem_add_to_physmap(struct domain > *d, > > if ( need_iommu(d) ) > > { > > this_cpu(iommu_dont_flus

Re: [Xen-devel] [PATCH v9 10/27] xsplice: Add helper elf routines

2016-04-26 Thread Jan Beulich
>>> On 25.04.16 at 17:34, wrote: > From: Ross Lagerwall > > Add Elf routines and data structures in preparation for loading an > xSplice payload. > > We make an assumption that the max number of sections an ELF payload > can have is 64. We can in future make this be dependent on the > names of

Re: [Xen-devel] [PATCH v9 16/27] x86, xsplice: Print payload's symbol name and payload name in backtraces

2016-04-26 Thread Jan Beulich
>>> On 26.04.16 at 13:06, wrote: > On 04/25/2016 04:35 PM, Konrad Rzeszutek Wilk wrote: >> @@ -142,6 +145,55 @@ void *xsplice_symbols_lookup_by_name(const char >> *symname) >> return 0; >> } >> >> +static const char *xsplice_symbols_lookup(unsigned long addr, >> +

Re: [Xen-devel] [PATCH v2 07/11] IOMMU/MMU: propagate IOMMU Device-TLB flush error up to iommu_iotlb_flush{, _all} (top level ones).

2016-04-26 Thread Jan Beulich
>>> On 26.04.16 at 14:23, wrote: > On April 25, 2016 6:19 PM, Jan Beulich wrote: >> >>> On 18.04.16 at 16:00, wrote: >> > --- a/xen/common/memory.c >> > +++ b/xen/common/memory.c >> > @@ -678,8 +678,9 @@ static int xenmem_add_to_physmap(struct domain >> *d, >> > if ( need_iommu(d) ) >> >

Re: [Xen-devel] [PATCH v9 16/27] x86, xsplice: Print payload's symbol name and payload name in backtraces

2016-04-26 Thread Ross Lagerwall
On 04/26/2016 01:41 PM, Jan Beulich wrote: On 26.04.16 at 13:06, wrote: On 04/25/2016 04:35 PM, Konrad Rzeszutek Wilk wrote: @@ -142,6 +145,55 @@ void *xsplice_symbols_lookup_by_name(const char *symname) return 0; } +static const char *xsplice_symbols_lookup(unsigned long addr, +

Re: [Xen-devel] [PATCH v2 08/11] IOMMU: propagate IOMMU Device-TLB flush error up to iommu_iotlb_flush{, _all} (leaf ones).

2016-04-26 Thread Jan Beulich
>>> On 26.04.16 at 13:50, wrote: > On April 25, 2016 7:40 PM, Jan Beulich wrote: >> >>> On 18.04.16 at 16:00, wrote: >> > While IOMMU Device-TLB flush timed out, xen calls panic() at present. >> > However the existing panic() is going to be eliminated, so we must >> > propagate the IOMMU Device-

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

2016-04-26 Thread osstest service owner
flight 92791 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/92791/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-libvirt 6 xen-boot fail REGR. vs. 92651 Regressions which ar

[Xen-devel] [xen-unstable-smoke test] 92827: regressions - FAIL

2016-04-26 Thread osstest service owner
flight 92827 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/92827/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemuu-debianhvm-i386 9 debian-hvm-install fail REGR. vs. 92731 Tests whi

[Xen-devel] [PATCH] blktap2: use abort() instead of custom crash

2016-04-26 Thread Doug Goldstein
Instead of trying to write a snippet of code that crashes the process just use abort() directly. This is to fix the build on clang which detects that the snippet of code will crash and fails to compile. At the same time removed extraneous whitespace in the macro. Signed-off-by: Doug Goldstein ---

Re: [Xen-devel] [PATCH] travis: enable building of the tools

2016-04-26 Thread Doug Goldstein
On 4/25/16 9:46 AM, Doug Goldstein wrote: > For native (non-cross compiles) we now only require bcc, ld86, as86 for > building rombios, we can build the toolstack sans rombios and using the > system SeaBIOS due to known build issues. At the same time capture the > output of the configure scripts to

Re: [Xen-devel] [PATCH v9 17/27] xsplice: Add support for bug frames.

2016-04-26 Thread Ross Lagerwall
On 04/26/2016 12:05 PM, Ross Lagerwall wrote: On 04/25/2016 04:35 PM, Konrad Rzeszutek Wilk wrote: snip diff --git a/xen/common/xsplice.c b/xen/common/xsplice.c index 72a3b88..11b19dd 100644 --- a/xen/common/xsplice.c +++ b/xen/common/xsplice.c @@ -123,6 +123,35 @@ static int verify_payload(cons

Re: [Xen-devel] Xen does not work after changing scheduler's code

2016-04-26 Thread Dario Faggioli
On Fri, 2016-04-22 at 08:59 +, tutu sky wrote: > yeah i tried, attaching a serial console was not possible for me, so > i tried vmware and i tried match the information in link with some > links on do the same using vmware. actually when using vmware for > doing so, i changed: GRUB_CMDLINE_XEN

Re: [Xen-devel] [PATCH] blktap2: use abort() instead of custom crash

2016-04-26 Thread Andrew Cooper
On 26/04/16 14:04, Doug Goldstein wrote: > Instead of trying to write a snippet of code that crashes the process > just use abort() directly. This is to fix the build on clang which > detects that the snippet of code will crash and fails to compile. At > the same time removed extraneous whitespace

Re: [Xen-devel] [PATCH] travis: enable building of the tools

2016-04-26 Thread Wei Liu
On Tue, Apr 26, 2016 at 08:06:54AM -0500, Doug Goldstein wrote: > On 4/25/16 9:46 AM, Doug Goldstein wrote: > > For native (non-cross compiles) we now only require bcc, ld86, as86 for > > building rombios, we can build the toolstack sans rombios and using the > > system SeaBIOS due to known build i

Re: [Xen-devel] [xen-unstable-smoke test] 92827: regressions - FAIL

2016-04-26 Thread Wei Liu
CC Jan, Paul and Andrew On Tue, Apr 26, 2016 at 01:01:32PM +, osstest service owner wrote: > flight 92827 xen-unstable-smoke real [real] > http://logs.test-lab.xenproject.org/osstest/logs/92827/ > > Regressions :-( > > Tests which did not succeed and are blocking, > including tests which cou

Re: [Xen-devel] [PATCH] blktap2: use abort() instead of custom crash

2016-04-26 Thread Wei Liu
On Tue, Apr 26, 2016 at 08:04:46AM -0500, Doug Goldstein wrote: > Instead of trying to write a snippet of code that crashes the process > just use abort() directly. This is to fix the build on clang which > detects that the snippet of code will crash and fails to compile. At > the same time removed

Re: [Xen-devel] [PATCH v2 08/11] IOMMU: propagate IOMMU Device-TLB flush error up to iommu_iotlb_flush{, _all} (leaf ones).

2016-04-26 Thread Xu, Quan
On April 26, 2016 8:52 PM, Jan Beulich wrote: > >>> On 26.04.16 at 13:50, wrote: > > On April 25, 2016 7:40 PM, Jan Beulich wrote: > >> >>> On 18.04.16 at 16:00, wrote: > >> > While IOMMU Device-TLB flush timed out, xen calls panic() at present. > >> > However the existing panic() is going to b

[Xen-devel] pvops xen_blkfront does not enforce device names

2016-04-26 Thread Olaf Hering
Why does xen_blkfront not enforce kernel device names from domU.cfg? In my PV domU.cfg I still have something like this: disk=[ 'file:/path,hda,w' ] With pvops and xen_blkfront I get xvda. With xenlinux and xenblk I get hda. Olaf ___ Xen-devel mailing

Re: [Xen-devel] [PATCH v9 11/27] xsplice: Implement payload loading

2016-04-26 Thread Jan Beulich
>>> On 25.04.16 at 17:34, wrote: > From: Ross Lagerwall > > Add support for loading xsplice payloads. This is somewhat similar to > the Linux kernel module loader, implementing the following steps: > - Verify the elf file. > - Parse the elf file. > - Allocate a region of memory mapped within a f

Re: [Xen-devel] [xen-unstable test] 92791: regressions - FAIL

2016-04-26 Thread Dario Faggioli
On Tue, 2016-04-26 at 12:59 +, osstest service owner wrote: > flight 92791 xen-unstable real [real] > http://logs.test-lab.xenproject.org/osstest/logs/92791/ > > Regressions :-( > > Tests which did not succeed and are blocking, > including tests which could not be run: >  test-armhf-armhf-lib

Re: [Xen-devel] [PATCH v9 16/27] x86, xsplice: Print payload's symbol name and payload name in backtraces

2016-04-26 Thread Jan Beulich
>>> On 26.04.16 at 14:48, wrote: > On 04/26/2016 01:41 PM, Jan Beulich wrote: > On 26.04.16 at 13:06, wrote: >>> On 04/25/2016 04:35 PM, Konrad Rzeszutek Wilk wrote: @@ -142,6 +145,55 @@ void *xsplice_symbols_lookup_by_name(const char > *symname) return 0; } >>>

[Xen-devel] xen.git build system (Re: [HACKATHON] Toolstack session)

2016-04-26 Thread Wei Liu
Hi all I spent some time this morning to work out the details of xen.git build system. * How build system works at the moment? 1. Stubdom.mk.in and Tools.mk.in define FETCHER variable. 2. m4/fetcher.m4 checks for wget or ftp, which becomes FETCHER. 3. StdGNU.mk defines GIT. It can be overwr

Re: [Xen-devel] [xen-unstable-smoke test] 92827: regressions - FAIL

2016-04-26 Thread Jan Beulich
>>> On 26.04.16 at 15:13, wrote: > CC Jan, Paul and Andrew I'll look into this. Jan > On Tue, Apr 26, 2016 at 01:01:32PM +, osstest service owner wrote: >> flight 92827 xen-unstable-smoke real [real] >> http://logs.test-lab.xenproject.org/osstest/logs/92827/ >> >> Regressions :-( >> >> T

  1   2   3   >