Re: [Xen-devel] [Qemu-devel] [v2][PATCH] libxl: add one machine property to support IGD GFX passthrough

2015-02-25 Thread Chen, Tiejun
On 2015/2/18 21:22, Ian Campbell wrote: On Wed, 2015-02-11 at 10:45 +0800, Chen, Tiejun wrote: On 2015/2/9 19:05, Ian Campbell wrote: On Mon, 2015-02-09 at 14:28 +0800, Chen, Tiejun wrote: What about this? I've not read the code in detail,since I'm travelling but from a quick glance it look

[Xen-devel] [PATCH] xen: avoid NULL pointer dereference in dom0 on large machines

2015-02-25 Thread Juergen Gross
Using the pvops kernel a NULL pointer dereference was detected on a large machine (144 processors) when booting as dom0 in evtchn_fifo_unmask() during assignment of a pirq. The event channel in question was the first to need a new entry in event_array[] in events_fifo.c. Unfortunately xen_irq_info

Re: [Xen-devel] RFC: xen config changes v4

2015-02-25 Thread Juergen Gross
On 02/26/2015 02:53 AM, Luis R. Rodriguez wrote: OK here's the state of affairs after some further discussion on some v3 patch RFC changes and issues I've found after trying to build front end drivers without CONFIG_XEN. Option Selects Depends ---

[Xen-devel] Xen 4.5: can't create DomU guest on mustang(arm64)

2015-02-25 Thread Ming Lei
Hi Guys, I just follow the guide in the link[1], and looks I can boot Dom0 successfully on mustang, and the xen 4.5 tools can be built OK on Dom0 side too. But when I try to create domU with the following commands: # losetup -f arm64-fs1.img # losetup -a /dev/loop0: [0802]:1318964 (/

[Xen-devel] RFC: xen config changes v4

2015-02-25 Thread Luis R. Rodriguez
OK here's the state of affairs after some further discussion on some v3 patch RFC changes and issues I've found after trying to build front end drivers without CONFIG_XEN. Option Selects Depends --

[Xen-devel] [PATCH v3 03/30] xen/PCI: Don't use deprecated function pci_scan_bus_parented()

2015-02-25 Thread Yijing Wang
From: Arnd Bergmann Use pci_scan_root_bus() instead of deprecated function pci_scan_bus_parented(). Signed-off-by: Arnd Bergmann Signed-off-by: Yijing Wang CC: Konrad Rzeszutek Wilk CC: xen-de...@lists.xenproject.org --- drivers/pci/xen-pcifront.c | 10 +++--- 1 files changed, 7 insert

[Xen-devel] [PATCH v3 07/30] PCI: Pass PCI domain number combined with root bus number

2015-02-25 Thread Yijing Wang
Now we could pass PCI domain combined with bus number in u32 argu. Because in arm/arm64, PCI domain number is assigned by pci_bus_assign_domain_nr(). So we leave pci_scan_root_bus() and pci_create_root_bus() in arm/arm64 unchanged. A new function pci_host_assign_domain_nr() will be introduced for a

[Xen-devel] [seabios test] 35242: regressions - FAIL

2015-02-25 Thread xen . org
flight 35242 seabios real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/35242/ 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. 33391 Tests which did not succe

Re: [Xen-devel] [RFC v1 7/8] xen: unwrap XEN_BACKEND from XEN_DOM0

2015-02-25 Thread Luis R. Rodriguez
On Wed, Feb 25, 2015 at 02:33:40PM +, Stefano Stabellini wrote: > On Wed, 25 Feb 2015, David Vrabel wrote: > > On 25/02/15 14:17, Stefano Stabellini wrote: > > > On Wed, 11 Feb 2015, Luis R. Rodriguez wrote: > > >> From: "Luis R. Rodriguez" > > >> > > >> This unwraps XEN_BACKEND from depending

Re: [Xen-devel] [PATCH] libxl: remove freemem_slack

2015-02-25 Thread Mike Latimer
On Wednesday, February 25, 2015 03:07:25 PM Stefano Stabellini wrote: > freemem_slack accounts for the amount of memory to be left free in the > system because empirical experiments seem to demonstrate that is needed > for "stability reasons". > > As we don't have any actual data on these stabilit

Re: [Xen-devel] [RFC v1 6/8] xen: x86: make XEN_PV* stuff depend on PARAVIRT and PARAVIRT_CLOCK

2015-02-25 Thread Luis R. Rodriguez
On Wed, Feb 25, 2015 at 03:45:56PM +, Stefano Stabellini wrote: > On Wed, 11 Feb 2015, Luis R. Rodriguez wrote: > > From: "Luis R. Rodriguez" > > > > This will later more easily let us unfold PARAVIRT and PARAVIRT_CLOCK > > from under CONFIG_XEN. All the XEN_PV* stuff is under the x86 univers

Re: [Xen-devel] [RFC v1 4/8] xen: x86: make XEN_PVH select XEN_PVHVM

2015-02-25 Thread Luis R. Rodriguez
On Wed, Feb 25, 2015 at 03:44:53PM +, Stefano Stabellini wrote: > On Wed, 11 Feb 2015, Luis R. Rodriguez wrote: > > From: "Luis R. Rodriguez" > > > > This lets us expose XEN_PVH and set what is required for it. > > This only exists on the x86 universe. This is as per the agreed > > upon Xen K

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

2015-02-25 Thread Luis R. Rodriguez
On Wed, Feb 25, 2015 at 02:27:08PM +, Stefano Stabellini wrote: > On Wed, 25 Feb 2015, Stefano Stabellini wrote: > > On Tue, 24 Feb 2015, Luis R. Rodriguez wrote: > > > On Tue, Feb 24, 2015 at 7:21 AM, Stefano Stabellini > > > wrote: > > > > On Mon, 23 Feb 2015, Luis R. Rodriguez wrote: > > >

[Xen-devel] [xen-4.4-testing test] 35323: FAIL

2015-02-25 Thread xen . org
flight 35323 xen-4.4-testing real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/35323/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf-libvirt 3 host-install(3) broken in 35204 REGR. vs. 341

[Xen-devel] [linux-next test] 35241: trouble: blocked/broken/fail/pass

2015-02-25 Thread xen . org
flight 35241 linux-next real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/35241/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf-libvirt 3 host-install(3) broken REGR. vs. 34877 b

[Xen-devel] [PATCH v3 0/3] Updates to pxm2node mapping and nodeID sizing

2015-02-25 Thread Boris Ostrovsky
A set of patches for better px2<->node mapping and consistent use of nodeID datatype. Boris Ostrovsky (3): x86/numa: Allow arbitrary value of PXM in PXM<->node mapping x86/numa: Adjust datatypes for node and pxm mm: MEMF_node should handle changes in nodeid_t size xen/arch/x86/irq.c

[Xen-devel] [PATCH v3 1/3] x86/numa: Allow arbitrary value of PXM in PXM<->node mapping

2015-02-25 Thread Boris Ostrovsky
ACPI defines proximity domain identifier as a 32-bit integer. While in most cases the values will be zero-based this is not guaranteed, making current pxm2node[256] mapping structure not appropriate. We will instead use MAX_NUMNODES-sized array of struct pxm2node to store PXM-to-node mapping. To a

[Xen-devel] [PATCH v3 2/3] x86/numa: Adjust datatypes for node and pxm

2015-02-25 Thread Boris Ostrovsky
Use u8-sized node IDs and unsigned PXMs consistently throughout code (and introduce nodeid_t type). Signed-off-by: Boris Ostrovsky --- Changes n v3: * Moved node declaration in cpu_add() into its scope. xen/arch/x86/irq.c |4 +- xen/arch/x86/numa.c | 15 +

[Xen-devel] [PATCH v3 3/3] mm: MEMF_node should handle changes in nodeid_t size

2015-02-25 Thread Boris Ostrovsky
Instead of using a hardcoded constant to extract nodeID from memflags use a macro whose value is based on nodeid_t size. Also provide a macro for extracting nodeID from memflags so that users don't need to remember to decrement the value. Signed-off-by: Boris Ostrovsky --- Changes in v3: * Fixe

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

2015-02-25 Thread Konrad Rzeszutek Wilk
> > I see no way then in which init_hvm_pv_info() would be called for XEN_PV > and XEN_PVH. In fact should we not be able to just BUG_ON(xen_pv_domain()) > above? /me nods. ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-de

Re: [Xen-devel] [PATCH v4 14/29] MdePkg/BaseSynchronizationLib: implement 16-bit compare-exchange

2015-02-25 Thread Ard Biesheuvel
On 25 February 2015 at 21:56, Kinney, Michael D wrote: > Ard Biesheuvel, > > Thank you for providing the implementation of this new function for all > supported CPU architectures. The one for IPF looks correct and passes builds. Good. Thanks for confirming that. > However, I am seeing some bui

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

2015-02-25 Thread Luis R. Rodriguez
On Wed, Feb 25, 2015 at 12:01:31PM +, Stefano Stabellini wrote: > On Tue, 24 Feb 2015, Luis R. Rodriguez wrote: > > On Tue, Feb 24, 2015 at 7:21 AM, Stefano Stabellini > > wrote: > > > On Mon, 23 Feb 2015, Luis R. Rodriguez wrote: > > >> On Thu, Feb 19, 2015 at 3:43 PM, Luis R. Rodriguez > >

Re: [Xen-devel] [PATCH v4 14/29] MdePkg/BaseSynchronizationLib: implement 16-bit compare-exchange

2015-02-25 Thread Kinney, Michael D
Ard Biesheuvel, Thank you for providing the implementation of this new function for all supported CPU architectures. The one for IPF looks correct and passes builds. However, I am seeing some build breaks and some issues with the IA32 and X64 versions. The following changes are required to y

Re: [Xen-devel] [PATCH v3 0/2] x86/arm64: add xenconfig

2015-02-25 Thread Konrad Rzeszutek Wilk
On Wed, Feb 25, 2015 at 01:25:59PM -0800, Luis R. Rodriguez wrote: > On Wed, Feb 25, 2015 at 1:19 PM, Konrad Rzeszutek Wilk > wrote: > > On Wed, Feb 25, 2015 at 01:11:04PM -0800, David Rientjes wrote: > >> On Wed, 25 Feb 2015, Luis R. Rodriguez wrote: > >> > >> > I am reworking Xen's kconfig stuff

Re: [Xen-devel] [PATCH v3 0/2] x86/arm64: add xenconfig

2015-02-25 Thread Luis R. Rodriguez
On Wed, Feb 25, 2015 at 1:19 PM, Konrad Rzeszutek Wilk wrote: > On Wed, Feb 25, 2015 at 01:11:04PM -0800, David Rientjes wrote: >> On Wed, 25 Feb 2015, Luis R. Rodriguez wrote: >> >> > I am reworking Xen's kconfig stuff right now, so perhaps what is best >> > is for this series to be folded under

Re: [Xen-devel] [PATCH v3 0/2] x86/arm64: add xenconfig

2015-02-25 Thread Konrad Rzeszutek Wilk
On Wed, Feb 25, 2015 at 01:11:04PM -0800, David Rientjes wrote: > On Wed, 25 Feb 2015, Luis R. Rodriguez wrote: > > > I am reworking Xen's kconfig stuff right now, so perhaps what is best > > is for this series to be folded under those changes and I'd submit > > them as the last series in the chan

Re: [Xen-devel] [PATCH v3 0/2] x86/arm64: add xenconfig

2015-02-25 Thread Luis R. Rodriguez
On Wed, Feb 25, 2015 at 12:49 PM, David Rientjes wrote: > Woohoo, so does this mean that Luis's series will finally be merged into a > tree somewhere? It's been a lengthy wait to try to get this merged. David Rientjes (as I'm also Cc'ing David Vrabel), I am reworking Xen's kconfig stuff right

Re: [Xen-devel] [PATCH] libxl: remove LIBXL_MAXMEM_CONSTANT

2015-02-25 Thread Don Slutz
On 02/25/15 10:07, Stefano Stabellini wrote: > LIBXL_MAXMEM_CONSTANT is used to increase the maxmem setting for a > domain by a constant amount. As it is not clear the reason why we should > be doing this, remove the constant. > > Signed-off-by: Stefano Stabellini > CC: mlati...@suse.com > CC: ia

Re: [Xen-devel] [PATCH v9 08/13] Add IOREQ_TYPE_VMWARE_PORT

2015-02-25 Thread Don Slutz
On 02/24/15 10:34, Jan Beulich wrote: On 17.02.15 at 00:05, wrote: >> @@ -501,22 +542,50 @@ static void hvm_free_ioreq_gmfn(struct domain *d, >> unsigned long gmfn) >> clear_bit(i, &d->arch.hvm_domain.ioreq_gmfn.mask); >> } >> >> -static void hvm_unmap_ioreq_page(struct hvm_ioreq_ser

Re: [Xen-devel] [PATCH v3 4/8] stubdom: no need to clean mini-os

2015-02-25 Thread Samuel Thibault
Wei Liu, le Wed 25 Feb 2015 11:21:27 +, a écrit : > All objects are placed inside stubdom's directories, so there is no need > to enter mini-os and clean. > > Signed-off-by: Wei Liu > Cc: Ian Campbell > Cc: Ian Jackson > Cc: Samuel Thibault > Cc: Stefano Stabellini Acked-by: Samuel Thiba

[Xen-devel] [PATCH v4 3/8] xen/iommu: Consolidate device assignment ops into a single set

2015-02-25 Thread Julien Grall
On ARM, the way to assign device tree node is exactly the same as PCI. Futhermore, all devices can be represented by a 'device_t'. Therefore there is no need to add separate ops. The x86 iommu drivers has not been modified to replace 'struct pci_dev' by "device_t" because the latter is an alias of

[Xen-devel] [PATCH v4 5/8] xen/iommu: arm: Import the SMMU driver from Linux

2015-02-25 Thread Julien Grall
Based on commit e6b5be2be4e30037eb551e0ed09dd97bd00d85d3. It's a verbatim of the Linux SMMU drivers code. No Xen code has yet been added and the file is not built. Compare to the previous drivers it gains support of PCI. Though it will need a bit of plumbing for Xen. Signed-off-by: Julien Grall

[Xen-devel] [PATCH v4 2/8] xen/arm: Introduce a generic way to describe device

2015-02-25 Thread Julien Grall
Currently, Xen is supporting PCI and Platform device (based on Device Tree). While Xen only supports Platform device on ARM, Xen will gain support of PCI soon. Some drivers, such as IOMMU drivers, may handle PCI and platform device in the same way. Only few lines of code differs. Rather than req

[Xen-devel] [PATCH v4 0/8] xen/arm: Resync the SMMU driver with the Linux one

2015-02-25 Thread Julien Grall
Hello, The SMMU driver has diverged from Linux. Having our own driver doesn't make any benefits and make difficult to backport fixes and/or porting features such as PCI. With this series, the code of the SMMU drivers (copied from Linux) is mostly not modified. If it's the case a comment /* Xen: .

[Xen-devel] [PATCH v4 6/8] xen/iommu: smmu: Add Xen specific code to be able to use the driver

2015-02-25 Thread Julien Grall
The main goal is to modify as little the Linux code to be able to port easily new feature added in Linux repo for the driver. To achieve that we: - Add helpers to Linux function not implemented on Xen - Add callbacks used by Xen to do our own stuff and call Linux ones - Only modify whe

[Xen-devel] [PATCH v4 1/8] xen/iommu: arm: Remove temporary the SMMU driver

2015-02-25 Thread Julien Grall
The current SMMU driver has completly diverged. That makes me hard to maintain. Signed-off-by: Julien Grall Acked-by: Stefano Stabellini Acked-by: Ian Campbell --- Currently none of the platform used on OSStest has SMMU nodes described in the device tree. Therefore, the bisector won't

[Xen-devel] [PATCH v4 8/8] DO NOT APPLY xen/iommu: smmu: Changes to support Midway SMMU

2015-02-25 Thread Julien Grall
Basic changes to support SMMUs which protect the network cards. The one for the SATA is more complicate to support because it requires to support stream ID matching. Signed-off-by: Julien Grall --- xen/drivers/passthrough/arm/smmu.c | 32 +++- 1 file changed, 27 inser

[Xen-devel] [PATCH v4 4/8] xen/arm: Describe devices supported by a driver with dt_device_match

2015-02-25 Thread Julien Grall
Xen is currently using a list of compatible strings to match drivers again device nodes. This leads to having double definitions in the GIC code. Furthermore Linux drivers are using dt_device_match (actually called of_device_id in Linux) to list device supported by the drivers. Remove the exisiti

[Xen-devel] [PATCH v4 7/8] xen/iommu: smmu: Advertise when the SMMU support coherent table walk

2015-02-25 Thread Julien Grall
When SMMU doesn't support coherent table walk, Xen may need to clean updated PT (see commit 4c5f4cb "xen/arm: p2m: Clean cache PT when the IOMMU doesn't support coherent walk"). If one SMMU of the platform doesn't support coherent table walk, the feature is disabled for the whole platform. This is

Re: [Xen-devel] [PATCH v2 0/3] arm/arm64: Detect Xen support earlier

2015-02-25 Thread Will Deacon
On Wed, Feb 25, 2015 at 04:40:40PM +, Ian Campbell wrote: > On Wed, 2015-02-25 at 16:34 +, Will Deacon wrote: > > On Wed, Feb 25, 2015 at 04:22:33PM +, Julien Grall wrote: > > > Hello, > > > > > > Ping? Any comments from ARM's maintainers on theses patches (at least #2)? > > > > I cou

[Xen-devel] OSSTest OVMF pushgate

2015-02-25 Thread Wei Liu
Ian and Ian, Currently OSSTest pushes OVMF changesets to osstest/ovmf.git, while xen.git references ovmf.git. This requires us to do manual push from osstest/ovmf.git to ovmf.git. I would like to just reference master in Xen's Config.mk. I suppose we should make OSSTest to push to both ovmf.git

Re: [Xen-devel] [PATCH] x86/Dom0: account for shadow/HAP allocation

2015-02-25 Thread Andrew Cooper
On 25/02/15 14:45, Jan Beulich wrote: > ... when calculating how many pages to allocate fopr Dom0. This is "fopr" => "for" ? > basically equivalent to the already present IOMMU related adjustment. > > Signed-off-by: Jan Beulich > > --- a/xen/arch/x86/domain_build.c > +++ b/xen/arch/x86/domain_bu

Re: [Xen-devel] [PATCH v5.99.1 RFC 1/4] xen/arm: Duplicate gic-v2.c file to support hip04 platform version

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 16:34 +, Stefano Stabellini wrote: > I am concerned about the increased size of the Xen binary as a result of > the introduction of this driver. I'm also somewhat concerned about the ongoing maintenance of a proliferation of (subtly or otherwise) different interrupt contr

Re: [Xen-devel] [PATCH v5.99.1 RFC 4/4] xen/arm: Force dom0 to use normal GICv2 driver on Hip04 platform

2015-02-25 Thread Stefano Stabellini
On Wed, 25 Feb 2015, Frediano Ziglio wrote: > Until vGIC support is not implemented and tested, this will prevent > guest kernels to use their Hip04 driver, or crash when they don't > have any. > > Signed-off-by: Frediano Ziglio > --- > xen/arch/arm/gic-hip04.c | 10 +++--- > 1 file changed,

Re: [Xen-devel] [PATCH v5] xen/arm: Add support for Huawei hip04-d01 platform

2015-02-25 Thread Frediano Ziglio
> On Fri, 2015-02-20 at 09:56 +, Frediano Ziglio wrote: > > This set of patches add Xen support for hip04-d01 platform (see > > https://wiki.linaro.org/Boards/D01 for details). > > When (or where) would the general public be able to purchase one of > these systems? > > Ian. These exact board

Re: [Xen-devel] [PATCH v5.99.1 RFC 2/4] xen/arm: Make gic-v2 code handle hip04-d01 platform

2015-02-25 Thread Stefano Stabellini
On Wed, 25 Feb 2015, Frediano Ziglio wrote: > The GIC in this platform is mainly compatible with the standard > GICv2 beside: > - ITARGET is extended to 16 bit to support 16 CPUs; > - SGI mask is extended to support 16 CPUs; > - maximum supported interrupt is 510. > > Use nr_lines to check for max

Re: [Xen-devel] [PATCH v5.99.1 RFC 3/4] xen/arm: handle GICH register changes for hip04-d01 platform

2015-02-25 Thread Stefano Stabellini
On Wed, 25 Feb 2015, Frediano Ziglio wrote: > The GICH in this platform is mainly compatible with the standard > GICv2 beside APR and LR register offsets. > > Signed-off-by: Frediano Ziglio > --- > xen/arch/arm/gic-hip04.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/xen/arch/a

Re: [Xen-devel] [PATCH v5] xen/arm: Add support for Huawei hip04-d01 platform

2015-02-25 Thread Ian Campbell
On Fri, 2015-02-20 at 09:56 +, Frediano Ziglio wrote: > This set of patches add Xen support for hip04-d01 platform (see > https://wiki.linaro.org/Boards/D01 for details). When (or where) would the general public be able to purchase one of these systems? Ian.

Re: [Xen-devel] [PATCH v2 0/3] arm/arm64: Detect Xen support earlier

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 16:34 +, Will Deacon wrote: > On Wed, Feb 25, 2015 at 04:22:33PM +, Julien Grall wrote: > > Hello, > > > > Ping? Any comments from ARM's maintainers on theses patches (at least #2)? > > I couldn't care less :) > > The arm64 part is boring in the good sense of the wo

Re: [Xen-devel] [PATCH v5.99.1 RFC 1/4] xen/arm: Duplicate gic-v2.c file to support hip04 platform version

2015-02-25 Thread Stefano Stabellini
On Wed, 25 Feb 2015, Frediano Ziglio wrote: > HiSilison Hip04 platform use a slightly different version > > Signed-off-by: Frediano Ziglio I think that this is preferable to the previous approach of modifying the existing gic-v2 driver, after all the hip04 interrupt controller is not a gicv2.

Re: [Xen-devel] [PATCH] x86/Dom0: minor command line parsing adjustments

2015-02-25 Thread Andrew Cooper
On 25/02/15 14:47, Jan Beulich wrote: > Remove a redundant statement from parse_dom0_mem() and refuse bogus > ranges (with a separator other than a dash) passed to > parse_dom0_max_vcpus(). Fix coding style issues in the latter function > at the same time. > > Signed-off-by: Jan Beulich Reviewed-

Re: [Xen-devel] [PATCH v2 0/3] arm/arm64: Detect Xen support earlier

2015-02-25 Thread Julien Grall
On 25/02/15 16:34, Will Deacon wrote: > On Wed, Feb 25, 2015 at 04:22:33PM +, Julien Grall wrote: >> Hello, >> >> Ping? Any comments from ARM's maintainers on theses patches (at least #2)? > > I couldn't care less :) > The arm64 part is boring in the good sense of the word. I will still need

Re: [Xen-devel] [PATCH v2 0/3] arm/arm64: Detect Xen support earlier

2015-02-25 Thread Will Deacon
On Wed, Feb 25, 2015 at 04:22:33PM +, Julien Grall wrote: > Hello, > > Ping? Any comments from ARM's maintainers on theses patches (at least #2)? I couldn't care less :) The arm64 part is boring in the good sense of the word. Will ___ Xen-devel m

Re: [Xen-devel] Branch Trace Storage for guests and VPMUinitialization

2015-02-25 Thread Boris Ostrovsky
On 02/25/2015 10:12 AM, kevin.ma...@gdata.de wrote: -Ursprüngliche Nachricht- Von: Boris Ostrovsky [mailto:boris.ostrov...@oracle.com] Gesendet: Dienstag, 24. Februar 2015 18:13 An: Mayer, Kevin; xen-devel@lists.xen.org Betreff: Re: [Xen-devel] Branch Trace Storage for guests and VPMU ini

Re: [Xen-devel] [PATCH v2 0/3] arm/arm64: Detect Xen support earlier

2015-02-25 Thread Julien Grall
Hello, Ping? Any comments from ARM's maintainers on theses patches (at least #2)? Regards, On 18/02/15 13:51, Julien Grall wrote: > Hello, > > This small patch series moves the detection of running on Xen earlier. This is > required in order to support earlyprintk via Xen and selecting preferre

Re: [Xen-devel] [PATCH 06/13] xen: detect pre-allocated memory interfering with e820 map

2015-02-25 Thread Juergen Gross
On 02/25/2015 03:24 PM, David Vrabel wrote: On 24/02/15 06:27, Juergen Gross wrote: On 02/19/2015 07:07 PM, David Vrabel wrote: On 18/02/2015 06:51, Juergen Gross wrote: +{ +unsigned long pfn; +unsigned long area_start, area_end; +unsigned i; + +for (i = 0; i < XEN_N_RESERVED_A

Re: [Xen-devel] [RFC v1 6/8] xen: x86: make XEN_PV* stuff depend on PARAVIRT and PARAVIRT_CLOCK

2015-02-25 Thread Stefano Stabellini
On Wed, 11 Feb 2015, Luis R. Rodriguez wrote: > From: "Luis R. Rodriguez" > > This will later more easily let us unfold PARAVIRT and PARAVIRT_CLOCK > from under CONFIG_XEN. All the XEN_PV* stuff is under the x86 universe. > This is as per the agreed upon Xen Kconfig changes [0]. > > [0] http://c

Re: [Xen-devel] [PATCH v5.99.1 RFC 1/4] xen/arm: Duplicate gic-v2.c file to support hip04 platform version

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 15:34 +, Julien Grall wrote: > Hi Frediano, > > On 25/02/15 15:28, Frediano Ziglio wrote: > > HiSilison Hip04 platform use a slightly different version > > I honestly don't like the idea to copy the whole GIC-v2 drivers. It will > require more maintenance for us. Will i

Re: [Xen-devel] [PATCH v5.99.1 RFC 1/4] xen/arm: Duplicate gic-v2.c file to support hip04 platform version

2015-02-25 Thread Frediano Ziglio
> > Hi Frediano, > > On 25/02/15 15:28, Frediano Ziglio wrote: > > HiSilison Hip04 platform use a slightly different version > > I honestly don't like the idea to copy the whole GIC-v2 drivers. It > will require more maintenance for us. > > Is there any way to introduce callbacks in the GICv2 c

Re: [Xen-devel] [RFC v1 4/8] xen: x86: make XEN_PVH select XEN_PVHVM

2015-02-25 Thread Stefano Stabellini
On Wed, 11 Feb 2015, Luis R. Rodriguez wrote: > From: "Luis R. Rodriguez" > > This lets us expose XEN_PVH and set what is required for it. > This only exists on the x86 universe. This is as per the agreed > upon Xen Kconfig changes [0]. > > [0] http://comments.gmane.org/gmane.comp.emulators.xen.

Re: [Xen-devel] [PATCH v3 0/2] x86/arm64: add xenconfig

2015-02-25 Thread Michal Marek
On 2015-02-10 23:32, Paul Bolle wrote: > On Tue, 2015-02-10 at 14:21 -0800, David Rientjes wrote: >> We need an update to the MAINTAINERS file if "Yann E. MORIN" >> isn't the active Kconfig maintainer anymore. > > Yes, we do. Michal, what update would you suggest? I'll revert the patch that add

Re: [Xen-devel] How can I modify and test Xentrace

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 10:35 -0500, D'Mita Levy wrote: > Hello, > > > I have made a naive attempt at compiling a modified version of > Xentrace using RELEASE-4.5.0. After executing #make tools > successfully, I retrieved the binary found in > the /xen/dist/install/usr/local/bin/xentrace and attemp

Re: [Xen-devel] [PATCH v5.99.1 RFC 1/4] xen/arm: Duplicate gic-v2.c file to support hip04 platform version

2015-02-25 Thread Frediano Ziglio
> > Hi Frediano, > > On 25/02/15 15:28, Frediano Ziglio wrote: > > HiSilison Hip04 platform use a slightly different version > > I honestly don't like the idea to copy the whole GIC-v2 drivers. It > will require more maintenance for us. > > Is there any way to introduce callbacks in the GICv2 c

[Xen-devel] How can I modify and test Xentrace

2015-02-25 Thread D'Mita Levy
Hello, I have made a naive attempt at compiling a modified version of Xentrace using RELEASE-4.5.0. After executing #make tools successfully, I retrieved the binary found in the /xen/dist/install/usr/local/bin/xentrace and attempted to run that on Xenserver. I get the error: libxenctrl.so.4.5 can

Re: [Xen-devel] [PATCH v5.99.1 RFC 1/4] xen/arm: Duplicate gic-v2.c file to support hip04 platform version

2015-02-25 Thread Julien Grall
Hi Frediano, On 25/02/15 15:28, Frediano Ziglio wrote: > HiSilison Hip04 platform use a slightly different version I honestly don't like the idea to copy the whole GIC-v2 drivers. It will require more maintenance for us. Is there any way to introduce callbacks in the GICv2 code where the hisilic

[Xen-devel] [DOCSDAY PATCH] xen: rework the comments for struct xen_domctl_vnuma.

2015-02-25 Thread Dario Faggioli
In fact: vnode_to_pnode is an array, not a mask; there was a typo in the one about vmemrange; there was no indication of the data directions. Signed-off-by: Dario Faggioli Cc: Wei Liu Cc: Jan Beulich Cc: Andrew Cooper Cc: Keir Fraser Cc: Elena Ufimtseva --- xen/include/public/domctl.h | 3

Re: [Xen-devel] [libvirt] libvirt/libxl implemetation of get_online_cpu / virNodeGetCPUMap?

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 15:20 +, Daniel P. Berrange wrote: > On Wed, Feb 25, 2015 at 03:13:36PM +, Ian Campbell wrote: > > On Wed, 2015-02-25 at 15:03 +, Daniel P. Berrange wrote: > > > FWIW, this code in openstack was only added for benefit of s390 > > > architecture where apparently it

[Xen-devel] [PATCH v5.99.1 RFC 1/4] xen/arm: Duplicate gic-v2.c file to support hip04 platform version

2015-02-25 Thread Frediano Ziglio
HiSilison Hip04 platform use a slightly different version Signed-off-by: Frediano Ziglio --- xen/arch/arm/Makefile| 2 +- xen/arch/arm/gic-hip04.c | 788 +++ 2 files changed, 789 insertions(+), 1 deletion(-) create mode 100644 xen/arch/arm/gic-h

[Xen-devel] [PATCH v5.99.1 RFC 2/4] xen/arm: Make gic-v2 code handle hip04-d01 platform

2015-02-25 Thread Frediano Ziglio
The GIC in this platform is mainly compatible with the standard GICv2 beside: - ITARGET is extended to 16 bit to support 16 CPUs; - SGI mask is extended to support 16 CPUs; - maximum supported interrupt is 510. Use nr_lines to check for maximum irq supported. hip04-d01 support less interrupts due

[Xen-devel] [PATCH v5.99.1 RFC 0/4] xen/arm: Add support for Huawei hip04-d01 platform

2015-02-25 Thread Frediano Ziglio
This set of patches add Xen support for hip04-d01 platform (see https://wiki.linaro.org/Boards/D01 for details). Changes from v5: - do not change gic-v2.c code but use a copy. To be considered RFC, to see if better to use copy or other techniques. Changes from v4: - rebased to new version; - re

[Xen-devel] [PATCH v5.99.1 RFC 4/4] xen/arm: Force dom0 to use normal GICv2 driver on Hip04 platform

2015-02-25 Thread Frediano Ziglio
Until vGIC support is not implemented and tested, this will prevent guest kernels to use their Hip04 driver, or crash when they don't have any. Signed-off-by: Frediano Ziglio --- xen/arch/arm/gic-hip04.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/xen/arch/arm/

[Xen-devel] [PATCH v5.99.1 RFC 3/4] xen/arm: handle GICH register changes for hip04-d01 platform

2015-02-25 Thread Frediano Ziglio
The GICH in this platform is mainly compatible with the standard GICv2 beside APR and LR register offsets. Signed-off-by: Frediano Ziglio --- xen/arch/arm/gic-hip04.c | 5 + 1 file changed, 5 insertions(+) diff --git a/xen/arch/arm/gic-hip04.c b/xen/arch/arm/gic-hip04.c index 9a7ed46..a1ae5

[Xen-devel] [ovmf test] 35317: tolerable FAIL - PUSHED

2015-02-25 Thread xen . org
flight 35317 ovmf real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/35317/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-amd64-amd64-xl-sedf 5 xen-boot fail REGR. vs. 33686 test-amd64-i386-pair 17 guest-migrate

Re: [Xen-devel] [libvirt] libvirt/libxl implemetation of get_online_cpu / virNodeGetCPUMap?

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 15:03 +, Daniel P. Berrange wrote: > FWIW, this code in openstack was only added for benefit of s390 > architecture where apparently it is common to have hosts with > CPUs offlined. Presumably you have to pay IBM for each extra > CPU you turn online :) Presumably :-) OOI

[Xen-devel] [PATCH v4] libxl_set_memory_target: retain the same maxmem offset on top of the current target

2015-02-25 Thread Stefano Stabellini
In libxl_set_memory_target when setting the new maxmem, retain the same offset on top of the current target. In the future the offset will include memory allocated by QEMU for rom files. Signed-off-by: Stefano Stabellini --- Changes in v4: - remove new_target_memkb <= 0 check. Changes in v3: -

Re: [Xen-devel] [libvirt] libvirt/libxl implemetation of get_online_cpu / virNodeGetCPUMap?

2015-02-25 Thread Daniel P. Berrange
On Wed, Feb 25, 2015 at 03:13:36PM +, Ian Campbell wrote: > On Wed, 2015-02-25 at 15:03 +, Daniel P. Berrange wrote: > > FWIW, this code in openstack was only added for benefit of s390 > > architecture where apparently it is common to have hosts with > > CPUs offlined. Presumably you have t

Re: [Xen-devel] [PATCH v3] libxl_set_memory_target: retain the same maxmem offset on top of the current target

2015-02-25 Thread Stefano Stabellini
On Mon, 2 Feb 2015, Ian Campbell wrote: > On Thu, 2015-01-29 at 15:08 +, Stefano Stabellini wrote: > > @@ -4775,6 +4781,14 @@ retry_transaction: > > new_target_memkb = current_target_memkb + target_memkb; > > } else > > new_target_memkb = target_memkb - videoram; > >

[Xen-devel] [PATCH] libxl: remove freemem_slack

2015-02-25 Thread Stefano Stabellini
freemem_slack accounts for the amount of memory to be left free in the system because empirical experiments seem to demonstrate that is needed for "stability reasons". As we don't have any actual data on these stability issues, remove it. Signed-off-by: Stefano Stabellini CC: mlati...@suse.com C

[Xen-devel] [PATCH] libxl: remove LIBXL_MAXMEM_CONSTANT

2015-02-25 Thread Stefano Stabellini
LIBXL_MAXMEM_CONSTANT is used to increase the maxmem setting for a domain by a constant amount. As it is not clear the reason why we should be doing this, remove the constant. Signed-off-by: Stefano Stabellini CC: mlati...@suse.com CC: ian.campb...@citrix.com --- tools/libxl/libxl.c |

Re: [Xen-devel] Branch Trace Storage for guests and VPMUinitialization

2015-02-25 Thread Kevin.Mayer
> -Ursprüngliche Nachricht- > Von: Boris Ostrovsky [mailto:boris.ostrov...@oracle.com] > Gesendet: Dienstag, 24. Februar 2015 18:13 > An: Mayer, Kevin; xen-devel@lists.xen.org > Betreff: Re: [Xen-devel] Branch Trace Storage for guests and VPMU > initialization > > On 02/24/2015 10:27 AM, k

Re: [Xen-devel] [libvirt] libvirt/libxl implemetation of get_online_cpu / virNodeGetCPUMap?

2015-02-25 Thread Daniel P. Berrange
On Wed, Feb 25, 2015 at 10:24:37AM +0100, Dario Faggioli wrote: > On Tue, 2015-02-24 at 13:10 +, Ian Campbell wrote: > > On Tue, 2015-02-24 at 12:41 +, Anthony PERARD wrote: > > > > What libxl API those provide this information, if it exist? > > > > > > I found libxl_get_online_cpus() but

[Xen-devel] [PATCH] x86/Dom0: account for shadow/HAP allocation

2015-02-25 Thread Jan Beulich
... when calculating how many pages to allocate fopr Dom0. This is basically equivalent to the already present IOMMU related adjustment. Signed-off-by: Jan Beulich --- a/xen/arch/x86/domain_build.c +++ b/xen/arch/x86/domain_build.c @@ -132,6 +132,8 @@ struct vcpu *__init alloc_dom0_vcpu0(str #i

[Xen-devel] [PATCH v2 7/7] libxl: update libxl.h to say _dispose is idempotent

2015-02-25 Thread Wei Liu
Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson --- tools/libxl/libxl.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h index c219f59..b394ee8 100644 --- a/tools/libxl/libxl.h +++ b/tools/libxl/libxl.h @@ -308,8 +308,7 @@

[Xen-devel] [PATCH v2 5/7] gentypes: make dispose function tolerate NULL

2015-02-25 Thread Wei Liu
Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson --- tools/libxl/gentypes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/libxl/gentypes.py b/tools/libxl/gentypes.py index afd4eea..00816c0 100644 --- a/tools/libxl/gentypes.py +++ b/tools/libxl/gentypes.py @@ -642,6 +642,7 @@

[Xen-devel] [PATCH v2 1/7] libxl: fix off-by-one error in JSON parser

2015-02-25 Thread Wei Liu
We need a sentinel slot in the generated libxl_key_value_list. Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson --- This should be backported to 4.5. --- tools/libxl/libxl_json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_json.c b/tools/libxl/l

[Xen-devel] [PATCH v2 0/7] libxl: make _dispose idempotent and NULL-tolerant

2015-02-25 Thread Wei Liu
The first two patches are bug fixes. Other patches are used to make _dispose idempotent and NULL-tolerant. Wei. Wei Liu (7): libxl: fix off-by-one error in JSON parser gentest: make testidl valgrind clean libxl: make some _dipose functions idempotent and tolerate NULL gentypes: zero out

[Xen-devel] [PATCH v2 2/7] gentest: make testidl valgrind clean

2015-02-25 Thread Wei Liu
Free the JSON string after use to avoid memory leak. With this change testidl is valgrind clean. Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson --- tools/libxl/gentest.py | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/libxl/gentest.py b/tools/libx

[Xen-devel] [PATCH v2 6/7] testidl: call _init and _dispose several times

2015-02-25 Thread Wei Liu
Call _init and _dispose between 1 to 10 times on a type to test if _init and _dispose are idempotent. Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson --- tools/libxl/gentest.py | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/libxl/gentest.py b/too

[Xen-devel] [PATCH] x86/Dom0: minor command line parsing adjustments

2015-02-25 Thread Jan Beulich
Remove a redundant statement from parse_dom0_mem() and refuse bogus ranges (with a separator other than a dash) passed to parse_dom0_max_vcpus(). Fix coding style issues in the latter function at the same time. Signed-off-by: Jan Beulich --- a/xen/arch/x86/domain_build.c +++ b/xen/arch/x86/domai

Re: [Xen-devel] [PATCH v4 1/2] xen/arm: vgic: Keep track of vIRQ used by a domain

2015-02-25 Thread Ian Campbell
On Thu, 2015-02-19 at 18:12 +, Julien Grall wrote: > While it's easy to know which hardware IRQ is assigned to a domain, there > is no way to know which vIRQ is allocated by Xen for a specific domain. > > Introduce a bitmap to keep track of every vIRQ used by a domain. This > will be used late

[Xen-devel] [PATCH v2 3/7] libxl: make some _dipose functions idempotent and tolerate NULL

2015-02-25 Thread Wei Liu
These functions are not generated, so we need to do it by hand. Functions list: libxl_bitmap_dispose libxl_string_list_dispose libxl_key_value_list_dipose libxl_cpuid_dispose Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson --- tools/libxl/libxl.c | 11 +-- tools/libx

[Xen-devel] [PATCH v2 4/7] gentypes: zero out structure in _dispose function

2015-02-25 Thread Wei Liu
Original the structure was memset to a poison value. That prevented _dispose to be made idempotent. We should stop doing so. Memseting the structure to 0 makes all pointers in structure become NULL, which can be handled by free(). Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson --- to

[Xen-devel] [PATCH] honor MEMF_no_refcount in alloc_heap_pages()

2015-02-25 Thread Jan Beulich
Non-anonymous allocations with this flag set should - for the purpose of the availability check - be treated just like anonymous ones, as they wouldn't lead to a reduction of ->outstanding_pages. Signed-off-by: Jan Beulich --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -617,7 +61

Re: [Xen-devel] [PATCH 0/8] libxl: make _dispose idempotent and NULL-tolerant

2015-02-25 Thread Wei Liu
Please ignore this series. I will send out another version that's simpler. Wei. ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH 1/1] Remove compilation warning

2015-02-25 Thread Wei Liu
BTW, you should send this patch to net...@vger.kernel.org. Have a look at Documentation/networking/netdev-FAQ.txt for more information. Feel free to ask me any question if you have doubt. Wei. ___ Xen-devel mailing list Xen-devel@lists.xen.org http://l

Re: [Xen-devel] [PATCH 2/2] xen: arm: Warn if timer interrupts are not level triggered

2015-02-25 Thread Ian Campbell
On Thu, 2015-02-19 at 16:20 +, Julien Grall wrote: > Regardless the question,this patch look good to me. With the 2 nits I > spotted on my previous email: > > Reviewed-by: Julien Grall Thanks, applied both patches (with nits fixed) > > Regards, > __

[Xen-devel] [PATCH 1/1] Remove compilation warning

2015-02-25 Thread pedro
offset and size are of type uint16_t so the %lu gives a warning A %u specifier, the same used in size makes gcc happy Signed-off-by: pedro --- drivers/net/xen-netback/netback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xe

Re: [Xen-devel] [PATCH 1/1] Remove compilation warning

2015-02-25 Thread Wei Liu
On Wed, Feb 25, 2015 at 03:27:13PM +0100, pedro wrote: > offset and size are of type uint16_t so the %lu gives a warning > A %u specifier, the same used in size makes gcc happy > > Signed-off-by: pedro Acked-by: Wei Liu Thanks for the patch. One question though. Is "pedro" your real full name

Re: [Xen-devel] [RFC v1 7/8] xen: unwrap XEN_BACKEND from XEN_DOM0

2015-02-25 Thread Stefano Stabellini
On Wed, 25 Feb 2015, David Vrabel wrote: > On 25/02/15 14:17, Stefano Stabellini wrote: > > On Wed, 11 Feb 2015, Luis R. Rodriguez wrote: > >> From: "Luis R. Rodriguez" > >> > >> This unwraps XEN_BACKEND from depending on XEN_DOM0, it > >> instead makes it depend on the possible x86 backends and >

Re: [Xen-devel] [PATCH v2 4/9] xen: arm: correctly handle vtimer traps from userspace

2015-02-25 Thread Julien Grall
On 25/02/15 14:32, Ian Campbell wrote: > On Thu, 2015-02-19 at 15:13 +, Ian Campbell wrote: >> On Thu, 2015-02-19 at 14:42 +, Julien Grall wrote: > Although, I think the debug message in bad_trap is useful to keep. It > may be handy to have the HSR and the guest stack trace printed

  1   2   >