[Xen-devel] [xen-4.5-testing baseline-only test] 38118: regressions - FAIL

2015-10-02 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 38118 xen-4.5-testing real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/38118/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-credit2 21 guest-start/

[Xen-devel] [PATCH 1/2] MAINTAINERS: adding myself as co-maintainer of scheduling.

2015-10-02 Thread Dario Faggioli
Signed-off-by: Dario Faggioli --- Cc: George Dunlap --- MAINTAINERS |1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index f008a8c..b612e06 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -287,6 +287,7 @@ F: xen/common/sched_rt.c SCHEDULING M: George Dunlap

[Xen-devel] [PATCH 0/2] Co-maintaining scheduling and cpupools

2015-10-02 Thread Dario Faggioli
Hi everyone, I've been rather active on scheduling and cpupools lately, and I plan to continue to do so (I've lost of ideas in mind :-D). I think I gained good confidence with these subsystems work, and I'd like to step up for helping George and Juergen (co-)maintaining them. Regards, Dario ---

[Xen-devel] [PATCH 2/2] MAINTAINERS: adding myself as co-maintainer of cpupools.

2015-10-02 Thread Dario Faggioli
Signed-off-by: Dario Faggioli --- Cc: Juergen Gross --- MAINTAINERS |1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index b612e06..902a28a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -145,6 +145,7 @@ F: xen/arch/arm/gic-hip04.c CPU POOLS M: Juergen Gro

Re: [Xen-devel] RFC: change to 6 months release cycle

2015-10-02 Thread Dario Faggioli
On Fri, 2015-10-02 at 18:43 +0100, Wei Liu wrote: > # Proposed release cycle > > Aim for 6 months release cycle -- 4 months development period, 2 > months hardening period. Make two releases per year. > > Fixed hard cut-off date, no more freeze exception. Arrange RCs > immediately after cut-off.

Re: [Xen-devel] [OSSTEST PATCH v3 0/3] Test case for cpupools

2015-10-02 Thread Dario Faggioli
Cc-ing people I wanted to Cc in the first place, and... On Sat, 2015-10-03 at 02:39 +0200, Dario Faggioli wrote: > Hey, > > [...] > > What I drafted was right that kind (or so it looks to me) of host > properties, > but meant at standalone mode, and I did it like in the attached > patch... Any > t

[Xen-devel] [OSSTEST PATCH v3 3/3] ts-logs-capture: include some cpupools info in the captured logs.

2015-10-02 Thread Dario Faggioli
Signed-off-by: Dario Faggioli --- Cc: Ian Jackson Cc: Ian Campbell Cc: Juergen Gross --- Changes from v2: * new patch, the introduction of which was suggested during review. --- ts-logs-capture |2 ++ 1 file changed, 2 insertions(+) diff --git a/ts-logs-capture b/ts-logs-capture index

[Xen-devel] [OSSTEST PATCH v3 2/3] Testing cpupools: recipe for it and job definition

2015-10-02 Thread Dario Faggioli
Signed-off-by: Dario Faggioli --- Cc: Ian Jackson Cc: Ian Campbell Cc: Juergen Gross --- Changes from v2: * restrict test generation to xl only. Changes from v1: * added invocation to ts-guest-stop in the recipe to kill leak-check complaints (which went unnoticed during v1 testing, sor

[Xen-devel] [OSSTEST PATCH v3 0/3] Test case for cpupools

2015-10-02 Thread Dario Faggioli
Hey, This is v3 of my cpupools OSSTest test case. I know, quite a few time passed... Sorry for that, I've been sidetracked. In fact, v2 was here: http://xen-devel.narkive.com/x8VxgO3c/osstest-patch-v2-0-2-test-case-for-cpupools Since then, I reworked the patch quite a bit. Of course, I did c

[Xen-devel] [OSSTEST PATCH v3 1/3] ts-cpupools: new test script

2015-10-02 Thread Dario Faggioli
for smoke testing cpupools a bit. It tries to partition a live host in two cpupools, trying out the following 3 schedulers for the new cpupool (one after the other): credit, credit2 and RTDS. It also tries to migrating a domain to the new cpupool and then back to Pool-0. Signed-off-by: Dario Fag

Re: [Xen-devel] [PATCH v3 3/9] xen/blkfront: separate per ring information out of device info

2015-10-02 Thread Bob Liu
On 10/03/2015 01:02 AM, Roger Pau Monné wrote: > El 05/09/15 a les 14.39, Bob Liu ha escrit: >> Split per ring information to an new structure:blkfront_ring_info, also >> rename >> per blkfront_info to blkfront_dev_info. > ^ removed. >> >> A ring is the representation of a hardware queue, every

Re: [Xen-devel] [PATCH v3 2/9] xen-block: add document for mutli hardware queues/rings

2015-10-02 Thread Bob Liu
On 10/03/2015 12:22 AM, Roger Pau Monné wrote: > El 02/10/15 a les 18.12, Wei Liu ha escrit: >> On Fri, Oct 02, 2015 at 06:04:35PM +0200, Roger Pau Monné wrote: >>> El 05/09/15 a les 14.39, Bob Liu ha escrit: Document multi queues/rings of xen-block. Signed-off-by: Bob Liu >>> >>>

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

2015-10-02 Thread osstest service owner
flight 62568 linux-next real [real] http://logs.test-lab.xenproject.org/osstest/logs/62568/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl-multivcpu 6 xen-boot fail REGR. vs. 62468 test-armhf-armhf-xl

Re: [Xen-devel] [PATCH] xen:arm: use SMC64 version function id on ARM64

2015-10-02 Thread Julien Grall
Hi, FIY, the xen-arm mailing has been removed a year ago and was only targeting the Xen ARM PV port. On 02/10/2015 22:36, Brijesh Singh wrote: On AMD Seattle, Xen failed to boot secondary CPU's. This patch fixes it. As per PSCI spec, If CPU_ON entry_point_address is 64-bit then function id

[Xen-devel] [PATCH] xen:arm: use SMC64 version function id on ARM64

2015-10-02 Thread Brijesh Singh
On AMD Seattle, Xen failed to boot secondary CPU's. This patch fixes it. As per PSCI spec, If CPU_ON entry_point_address is 64-bit then function id parameter should be set to SMC64 version (0xC403). Signed-off-by: Brijesh Singh --- xen/arch/arm/psci.c | 4 1 file changed, 4 insertions

Re: [Xen-devel] [PATCH v7 13/32] xen/vlapic: fixes for HVM code when running without a vlapic

2015-10-02 Thread Boris Ostrovsky
On 10/02/2015 11:48 AM, Roger Pau Monne wrote: The HVM related code (SVM, VMX) generally assumed that a local apic is always present. With the introduction of a HVM mode were the local apic can be removed, some of this broken code paths arised. The SVM exit/resume paths unconditionally checked

Re: [Xen-devel] [PATCH v7 32/32] libxl: add support for migrating HVM guests without a device model

2015-10-02 Thread Andrew Cooper
On 02/10/15 16:49, Roger Pau Monne wrote: > Only some minor libxl changes are needed in order to be able to migrate HVM > guests without a device model, no hypervisor changes are needed. > > This change prevents sending the emulator context if the device model > version is set to none. > > Signed-o

Re: [Xen-devel] [PATCH v7 23/32] xen/x86: make sure the HVM callback vector is correctly set

2015-10-02 Thread Andrew Cooper
On 02/10/15 16:48, Roger Pau Monne wrote: > If certain devices (like the local or the io apic) are disabled some modes > of operation of the HVM event channel callback cannot be used. Make sure Xen > doesn't try to setup them. > > Signed-off-by: Roger Pau Monné > Cc: Jan Beulich > Cc: Andrew Coop

Re: [Xen-devel] [PATCH v7 13/32] xen/vlapic: fixes for HVM code when running without a vlapic

2015-10-02 Thread Andrew Cooper
On 02/10/15 16:48, Roger Pau Monne wrote: > diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c > index bbec0e8..63b7a24 100644 > --- a/xen/arch/x86/hvm/vmx/vmx.c > +++ b/xen/arch/x86/hvm/vmx/vmx.c > @@ -2412,7 +2412,8 @@ static void vmx_install_vlapic_mapping(struct vcpu *v) > {

Re: [Xen-devel] [PATCH v7 01/32] xen/vcpu: add missing dummy_vcpu_info to compat VCPUOP_initialise

2015-10-02 Thread Andrew Cooper
On 02/10/15 16:48, Roger Pau Monne wrote: > This check is missing from the compat version when compared to the > non-compat version. > > Signed-off-by: Roger Pau Monné > Cc: Ian Campbell > Cc: Jan Beulich > Cc: Tim Deegan > Cc: Andrew Cooper Reviewed-by: Andrew Cooper __

Re: [Xen-devel] RFC: change to 6 months release cycle

2015-10-02 Thread Andrew Cooper
On 02/10/15 18:52, Juergen Gross wrote: > On 10/02/2015 07:43 PM, Wei Liu wrote: >> Hi all >> >> As I understand it in the past there were discussions on release every >> 6 months. I would like to revisit this topic. >> >> # Rationale for a shorter release cycle >> >> The current 9 months cadence i

Re: [Xen-devel] RFC: change to 6 months release cycle

2015-10-02 Thread Andrew Cooper
On 02/10/15 18:43, Wei Liu wrote: > Hi all > > > > Comments are welcome! +1. We have consistently hit certain problems for the past few releases. A 6 month cycle offers a plausible easing of some of the problems, and if the worst comes to the worst we can always decide to move back to a 9 month

Re: [Xen-devel] RFC: change to 6 months release cycle

2015-10-02 Thread Juergen Gross
On 10/02/2015 07:43 PM, Wei Liu wrote: Hi all As I understand it in the past there were discussions on release every 6 months. I would like to revisit this topic. # Rationale for a shorter release cycle The current 9 months cadence is too long. That create at least two problems for us. The fi

[Xen-devel] RFC: change to 6 months release cycle

2015-10-02 Thread Wei Liu
Hi all As I understand it in the past there were discussions on release every 6 months. I would like to revisit this topic. # Rationale for a shorter release cycle The current 9 months cadence is too long. That create at least two problems for us. The first problem is that Xen delivers features

Re: [Xen-devel] [PATCH v3 3/9] xen/blkfront: separate per ring information out of device info

2015-10-02 Thread Roger Pau Monné
El 05/09/15 a les 14.39, Bob Liu ha escrit: > Split per ring information to an new structure:blkfront_ring_info, also rename > per blkfront_info to blkfront_dev_info. ^ removed. > > A ring is the representation of a hardware queue, every vbd device can > associate > with one or more blkfront_ri

Re: [Xen-devel] [PATCH 1/3] x86/p2m: tighten conditions of IOMMU mapping updates

2015-10-02 Thread Jiang, Yunhong
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Wednesday, September 30, 2015 2:58 AM > To: Jiang, Yunhong > Cc: Andrew Cooper; George Dunlap; Nakajima, Jun; Tian, Kevin; xen-devel; > KeirFraser > Subject: RE: [Xen-devel] [PATCH 1/3] x86/p2m: tighten conditions

Re: [Xen-devel] [PATCH v2 3/5] libxc: create unmapped initrd in domain builder if supported

2015-10-02 Thread Juergen Gross
On 10/02/2015 05:21 PM, Ian Campbell wrote: On Fri, 2015-10-02 at 17:13 +0200, Juergen Gross wrote: On 10/02/2015 04:56 PM, Ian Campbell wrote: On Fri, 2015-10-02 at 16:46 +0200, Juergen Gross wrote: On 10/02/2015 02:59 PM, Ian Campbell wrote: On Fri, 2015-10-02 at 07:49 +0200, Juergen Gross

Re: [Xen-devel] [PATCH v3 2/9] xen-block: add document for mutli hardware queues/rings

2015-10-02 Thread Roger Pau Monné
El 02/10/15 a les 18.12, Wei Liu ha escrit: > On Fri, Oct 02, 2015 at 06:04:35PM +0200, Roger Pau Monné wrote: >> El 05/09/15 a les 14.39, Bob Liu ha escrit: >>> Document multi queues/rings of xen-block. >>> >>> Signed-off-by: Bob Liu >> >> As said by Konrad, you should send this against the Xen p

Re: [Xen-devel] [PATCH v3 2/9] xen-block: add document for mutli hardware queues/rings

2015-10-02 Thread Wei Liu
On Fri, Oct 02, 2015 at 06:04:35PM +0200, Roger Pau Monné wrote: > El 05/09/15 a les 14.39, Bob Liu ha escrit: > > Document multi queues/rings of xen-block. > > > > Signed-off-by: Bob Liu > > As said by Konrad, you should send this against the Xen public headers > also (or even before). I have a

Re: [Xen-devel] [PATCH v3 2/9] xen-block: add document for mutli hardware queues/rings

2015-10-02 Thread Roger Pau Monné
El 05/09/15 a les 14.39, Bob Liu ha escrit: > Document multi queues/rings of xen-block. > > Signed-off-by: Bob Liu As said by Konrad, you should send this against the Xen public headers also (or even before). I have a comment below. > --- > include/xen/interface/io/blkif.h | 32 +

[Xen-devel] [PATCH v7 04/32] libxc: introduce the notion of a container type

2015-10-02 Thread Roger Pau Monne
Introduce the notion of a container type into xc_dom_image. This will be needed by later changes that will also use xc_dom_image in order to build HVM guests. Signed-off-by: Roger Pau Monné Reviewed-by: Andrew Cooper Acked-by: Wei Liu Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell C

[Xen-devel] [PATCH v7 22/32] xen/x86: allow disabling the emulated IOMMU

2015-10-02 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné Acked-by: Andrew Cooper Acked-by: Aravind Gopalakrishnan Cc: Suravee Suthikulpanit Cc: Aravind Gopalakrishnan --- Changes since v4: - Add Andrew Cooper Acked-by. --- xen/drivers/passthrough/amd/iommu_guest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(

[Xen-devel] [PATCH v7 18/32] xen/x86: allow disabling the emulated IO APIC

2015-10-02 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné Acked-by: Andrew Cooper Cc: Jan Beulich Cc: Andrew Cooper --- Changes since v6: - Return ENODEV in ioapic_load if the ioapic is disabled. - Add an assert to make sure vioapic_update_EOI and vioapic_irq_positive_edge is only called when the vioapic is enabled.

[Xen-devel] [PATCH v7 27/32] xen/x86: allow HVM guests to use hypercalls to bring up vCPUs

2015-10-02 Thread Roger Pau Monne
Allow the usage of the VCPUOP_initialise, VCPUOP_up, VCPUOP_down and VCPUOP_is_up hypercalls from HVM guests. This patch introduces a new structure (vcpu_hvm_context) that should be used in conjuction with the VCPUOP_initialise hypercall in order to initialize vCPUs for HVM guests. Signed-off-by:

[Xen-devel] [PATCH v7 30/32] libxc: switch xc_dom_elfloader to be used with HVMlite domains

2015-10-02 Thread Roger Pau Monne
Allow xc_dom_elfloader to report a guest type as hvm-3.0-x86_32 if it's running inside of a HVM container and has the PHYS32_ENTRY elfnote set. Signed-off-by: Roger Pau Monné Reviewed-by: Andrew Cooper Acked-by: Wei Liu Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu ---

[Xen-devel] [PATCH v7 28/32] xenconsole: try to attach to PV console if HVM fails

2015-10-02 Thread Roger Pau Monne
HVM guests have always used the emulated serial console by default, but if the emulated serial pty cannot be fetched from xenstore try to use the PV console instead. Signed-off-by: Roger Pau Monné Acked-by: Wei Liu Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- Chang

[Xen-devel] [PATCH v7 00/32] Introduce HVM without dm and new boot ABI

2015-10-02 Thread Roger Pau Monne
This series is split in the following order: - Patch 1 is a fix for the compat layer VCPUOP_initialise hypercall. - Patches from 2 to 11 switch HVM domain contruction to use the xc_dom_* family of functions, like they are used to build PV domains. This batch of patches can go in regardless

[Xen-devel] [PATCH v7 19/32] xen/x86: allow disabling the emulated PIC

2015-10-02 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné Acked-by: Andrew Cooper Cc: Jan Beulich Cc: Andrew Cooper --- Changes since v6: - Return ENODEV in vpic_load if the vpic is disabled. - Add asserts to vpic_irq_{negative/positive}_edge and vpic_ack_pending_irq to make sure they are not called when the vpic is

[Xen-devel] [PATCH v7 20/32] xen/x86: set the vPMU interface based on the presence of a lapic

2015-10-02 Thread Roger Pau Monne
Instead of choosing the interface to expose to guests based on the guest type, do it based on whether the guest has an emulated local apic or not. Signed-off-by: Roger Pau Monné Cc: Jan Beulich Cc: Andrew Cooper --- Changes since v6: - Major rework of the approach. - Drop Andrew Cooper Acked-

[Xen-devel] [PATCH v7 26/32] libxc: allow creating domains without emulated devices.

2015-10-02 Thread Roger Pau Monne
Introduce a new flag in xc_dom_image that turns on and off the emulated devices. This prevents creating the VGA hole, the hvm_info page and the ioreq server pages. libxl unconditionally sets it to true for all HVM domains at the moment. Signed-off-by: Roger Pau Monné Acked-by: Wei Liu Reviewed-b

[Xen-devel] [PATCH v7 13/32] xen/vlapic: fixes for HVM code when running without a vlapic

2015-10-02 Thread Roger Pau Monne
The HVM related code (SVM, VMX) generally assumed that a local apic is always present. With the introduction of a HVM mode were the local apic can be removed, some of this broken code paths arised. The SVM exit/resume paths unconditionally checked the state of the lapic, which is wrong if it's bee

[Xen-devel] [PATCH v7 23/32] xen/x86: make sure the HVM callback vector is correctly set

2015-10-02 Thread Roger Pau Monne
If certain devices (like the local or the io apic) are disabled some modes of operation of the HVM event channel callback cannot be used. Make sure Xen doesn't try to setup them. Signed-off-by: Roger Pau Monné Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/hvm/irq.c | 4 1 file change

[Xen-devel] [PATCH v7 21/32] xen/x86: allow disabling the emulated VGA

2015-10-02 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné Acked-by: Andrew Cooper Cc: Jan Beulich Cc: Andrew Cooper --- Changes since v4: - Add Andrew Cooper Acked-by. --- xen/arch/x86/hvm/stdvga.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/xen/arch/x86/hvm/stdvga.c b/xen/arch/x86/hvm/stdvga.c index f50b

[Xen-devel] [PATCH v7 25/32] elfnotes: intorduce a new PHYS_ENTRY elfnote

2015-10-02 Thread Roger Pau Monne
This new elfnote contains the 32bit entry point into the kernel. Xen will use this entry point in order to launch the guest kernel in 32bit protected mode with paging disabled. Signed-off-by: Roger Pau Monné Acked-by: Wei Liu Reviewed-by: Andrew Cooper Cc: Ian Jackson Cc: Stefano Stabellini C

[Xen-devel] [PATCH v7 05/32] libxc: introduce a domain loader for HVM guest firmware

2015-10-02 Thread Roger Pau Monne
Introduce a very simple (and dummy) domain loader to be used to load the firmware (hvmloader) into HVM guests. Since hmvloader is just a 32bit elf executable the loader is fairly simple. Signed-off-by: Roger Pau Monné Reviewed-by: Andrew Cooper Acked-by: Wei Liu Cc: Ian Jackson Cc: Stefano Sta

[Xen-devel] [PATCH v7 32/32] libxl: add support for migrating HVM guests without a device model

2015-10-02 Thread Roger Pau Monne
Only some minor libxl changes are needed in order to be able to migrate HVM guests without a device model, no hypervisor changes are needed. This change prevents sending the emulator context if the device model version is set to none. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Ian Campb

[Xen-devel] [PATCH v7 24/32] xen/x86: allow disabling all emulated devices inside of Xen

2015-10-02 Thread Roger Pau Monne
Only allow enabling or disabling all the emulated devices inside of Xen, right now Xen doesn't support enabling specific emulated devices only. Signed-off-by: Roger Pau Monné Reviewed-by: Andrew Cooper Cc: Jan Beulich Cc: Andrew Cooper --- Changes since v5: - Add Andrew Cooper Reviewed-by. --

[Xen-devel] [PATCH v7 31/32] libxl: allow the creation of HVM domains without a device model.

2015-10-02 Thread Roger Pau Monne
Replace the firmware loaded into HVM guests with an OS kernel. Since the HVM builder now uses the PV xc_dom_* set of functions this kernel will be parsed and loaded inside the guest like on PV, but the container is a pure HVM guest. Also, if device_model_version is set to none or a device model fo

[Xen-devel] [PATCH v7 01/32] xen/vcpu: add missing dummy_vcpu_info to compat VCPUOP_initialise

2015-10-02 Thread Roger Pau Monne
This check is missing from the compat version when compared to the non-compat version. Signed-off-by: Roger Pau Monné Cc: Ian Campbell Cc: Jan Beulich Cc: Tim Deegan Cc: Andrew Cooper --- xen/common/compat/domain.c | 5 + xen/common/domain.c| 2 +- 2 files changed, 6 insertions(+

[Xen-devel] [PATCH v7 02/32] libxc: split x86 HVM setup_guest into smaller logical functions

2015-10-02 Thread Roger Pau Monne
This is just a preparatory change to clean up the code in setup_guest. Should not introduce any functional changes. Signed-off-by: Roger Pau Monné Reviewed-by: Andrew Cooper Acked-by: Wei Liu Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- Changes since v3: - Add An

[Xen-devel] [PATCH v7 11/32] libxc: remove dead HVM building code

2015-10-02 Thread Roger Pau Monne
Remove xc_hvm_build_x86.c and xc_hvm_build_arm.c since xc_hvm_build is not longer used in order to create HVM guests. Signed-off-by: Roger Pau Monné Acked-by: Wei Liu Reviewed-by: Andrew Cooper Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- Changes since v4: - Add

[Xen-devel] [PATCH v7 29/32] libxc/xen: introduce a start info structure for HVMlite guests

2015-10-02 Thread Roger Pau Monne
This structure contains the physical address of the command line, as well as the physical address of the list of loaded modules. The physical address of this structure is passed to the guest at boot time in the %ebx register. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Stefano Stabellini

[Xen-devel] [PATCH v7 03/32] libxc: unify xc_dom_p2m_{host/guest}

2015-10-02 Thread Roger Pau Monne
Unify both functions into xc_dom_p2m. Should not introduce any functional change. Signed-off-by: Roger Pau Monné Reviewed-by: Andrew Cooper Acked-by: Wei Liu Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu Cc: Samuel Thibault --- Changes since v3: - Add Andrew Cooper R

[Xen-devel] [PATCH v7 07/32] libxc: make arch_setup_boot{init/late} xc_dom_arch hooks

2015-10-02 Thread Roger Pau Monne
This should not introduce any functional change. Signed-off-by: Roger Pau Monné Reviewed-by: Andrew Cooper Acked-by: Wei Liu Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- Changes since v3: - Add Andrew Cooper Reviewed-by. - Add Wei Acked-by. --- tools/libxc/incl

[Xen-devel] [PATCH v7 15/32] xen/x86: allow disabling the emulated HPET

2015-10-02 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné Acked-by: Andrew Cooper Cc: Jan Beulich Cc: Andrew Cooper --- Changes since v6: - Return ENODEV in hpet_load if the vhpet is disabled. Changes since v4: - Add Andrew Cooper Acked-by. --- xen/arch/x86/hvm/hpet.c | 13 + xen/arch/x86/hvm/hvm.c | 1

[Xen-devel] [PATCH v7 16/32] xen/x86: allow disabling the pmtimer

2015-10-02 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné Cc: Jan Beulich Cc: Andrew Cooper --- Changes since v6: - Return ENODEV in pmtimer_load if the timer is disabled. - hvm_acpi_power_button and hvm_acpi_sleep_button become noops if the pmtimer is disabled. - Return ENODEV if pmtimer_change_ioport is called wit

[Xen-devel] [PATCH v7 17/32] xen/x86: allow disabling the emulated RTC

2015-10-02 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné Acked-by: Andrew Cooper Cc: Jan Beulich Cc: Andrew Cooper --- Changes since v6: - Return ENODEV in rtc_load if rtc is disabled. - Add checks to rtc_reset and rtc_update_clock to prevent calling them if rtc is disabled. Changes since v4: - Add Andrew Cooper

[Xen-devel] [PATCH v7 10/32] libxl: switch HVM domain building to use xc_dom_* helpers

2015-10-02 Thread Roger Pau Monne
Now that we have all the code in place HVM domain building in libxl can be switched to use the xc_dom_* family of functions, just like they are used in order to build PV guests. Signed-off-by: Roger Pau Monné Acked-by: Wei Liu Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Li

[Xen-devel] [PATCH v7 08/32] libxc: rework BSP initialization

2015-10-02 Thread Roger Pau Monne
Place the calls to xc_vcpu_setcontext and the allocation of the hypercall buffer into the arch-specific vcpu hooks. This is needed in order to introduce a new builder, so x86 HVM guests can initialize the BSP using XEN_DOMCTL_sethvmcontext instead of XEN_DOMCTL_setvcpucontext. This patch should no

[Xen-devel] [PATCH v7 06/32] libxc: make arch_setup_meminit a xc_dom_arch hook

2015-10-02 Thread Roger Pau Monne
This allows having different arch_setup_meminit implementations based on the guest type. It should not introduce any functional changes. Signed-off-by: Roger Pau Monné Reviewed-by: Andrew Cooper Acked-by: Wei Liu Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- Change

[Xen-devel] [PATCH v7 09/32] libxc: introduce a xc_dom_arch for hvm-3.0-x86_32 guests

2015-10-02 Thread Roger Pau Monne
This xc_dom_arch will be used in order to build HVM domains. The code is based on the existing xc_hvm_populate_memory and xc_hvm_populate_params functions. Signed-off-by: Roger Pau Monné Reviewed-by: Andrew Cooper Acked-by: Wei Liu Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc:

[Xen-devel] [PATCH v7 12/32] xen/x86: add bitmap of enabled emulated devices

2015-10-02 Thread Roger Pau Monne
Introduce a bitmap in x86 xen_arch_domainconfig that allows enabling or disabling specific devices emulated inside of Xen for HVM guests. Signed-off-by: Roger Pau Monné Acked-by: Wei Liu Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu Cc: Jan Beulich Cc: Andrew Cooper C

[Xen-devel] [PATCH v7 14/32] xen/x86: allow disabling the emulated local apic

2015-10-02 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné Cc: Jan Beulich Cc: Andrew Cooper Cc: Jun Nakajima Cc: Eddie Dong Cc: Kevin Tian --- Changes since v6: - Remove stall comments. - Adds checks for has_vlapic in the msixtbl_pt_{un}register functions. - Simplify the is_pvh_domain(d) || !has_vlapic(d) to !has_vl

[Xen-devel] [Resend Fix PATCH] Qemu/Xen: Fix early freeing MSIX MMIO memory region

2015-10-02 Thread Lan Tianyu
MSIX MMIO memory region is added to pt device's obj as property. When pt device is unplugged, all properties will be deleted and memory region's obj is needed at that point(refer object_finalize_child_property()). But current code frees MSIX MMIO memory region in the xen_pt_msix_delete() before de

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

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

Re: [Xen-devel] [PATCH V7 5/7] xl: add pvusb commands

2015-10-02 Thread Ian Campbell
On Fri, 2015-10-02 at 16:17 +0100, George Dunlap wrote: > On Fri, Oct 2, 2015 at 2:35 PM, Ian Campbell > wrote: > > On Thu, 2015-10-01 at 18:02 +0100, George Dunlap wrote: > > > On 25/09/15 03:11, Chunyan Liu wrote: > > > > Add pvusb commands: usb-ctrl-attach, usb-ctrl-detach, usb-list, > > > > us

Re: [Xen-devel] [PATCH v2 3/5] libxc: create unmapped initrd in domain builder if supported

2015-10-02 Thread Ian Campbell
On Fri, 2015-10-02 at 17:13 +0200, Juergen Gross wrote: > On 10/02/2015 04:56 PM, Ian Campbell wrote: > > On Fri, 2015-10-02 at 16:46 +0200, Juergen Gross wrote: > > > On 10/02/2015 02:59 PM, Ian Campbell wrote: > > > > On Fri, 2015-10-02 at 07:49 +0200, Juergen Gross wrote: > > > > > In case the k

Re: [Xen-devel] [PATCH v5 12/22] xen/balloon: Don't rely on the page granularity is the same for Xen and Linux

2015-10-02 Thread Boris Ostrovsky
On 10/02/2015 10:52 AM, Julien Grall wrote: On 02/10/15 15:31, Julien Grall wrote: Hi David, On 02/10/15 15:09, David Vrabel wrote: On 30/09/15 11:45, Julien Grall wrote: For ARM64 guests, Linux is able to support either 64K or 4K page granularity. Although, the hypercall interface is alway

Re: [Xen-devel] [PATCH v5 12/22] xen/balloon: Don't rely on the page granularity is the same for Xen and Linux

2015-10-02 Thread David Vrabel
On 02/10/15 15:52, Julien Grall wrote: > On 02/10/15 15:31, Julien Grall wrote: >> Hi David, >> >> On 02/10/15 15:09, David Vrabel wrote: >>> On 30/09/15 11:45, Julien Grall wrote: For ARM64 guests, Linux is able to support either 64K or 4K page granularity. Although, the hypercall interf

Re: [Xen-devel] [PATCH V7 5/7] xl: add pvusb commands

2015-10-02 Thread George Dunlap
On Fri, Oct 2, 2015 at 2:35 PM, Ian Campbell wrote: > On Thu, 2015-10-01 at 18:02 +0100, George Dunlap wrote: >> On 25/09/15 03:11, Chunyan Liu wrote: >> > Add pvusb commands: usb-ctrl-attach, usb-ctrl-detach, usb-list, >> > usb-attach and usb-detach. >> > >> > To attach a usb device to guest thro

Re: [Xen-devel] [PATCH v1 5/5] xsplice: Use ld-embedded build-ids

2015-10-02 Thread Jan Beulich
>>> On 16.09.15 at 23:01, wrote: > --- a/xen/arch/x86/Makefile > +++ b/xen/arch/x86/Makefile > @@ -108,11 +108,11 @@ $(TARGET)-syms: prelink.o xen.lds > $(BASEDIR)/common/symbols-dummy.o > $(BASEDIR)/common/symbols-dummy.o -o $(@D)/.$(@F).0 > $(NM) -n $(@D)/.$(@F).0 | $(BASEDIR)/t

Re: [Xen-devel] [PATCH v1 2/5] xen/xsplice: Hypervisor implementation of XEN_XSPLICE_op

2015-10-02 Thread Jan Beulich
>>> On 16.09.15 at 23:01, wrote: > --- /dev/null > +++ b/xen/common/xsplice.c > @@ -0,0 +1,442 @@ > +/* > + * xSplice - Copyright Oracle Corp. Inc 2015. > + * > + * Author: Konrad Rzeszutek Wilk > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include

Re: [Xen-devel] [PATCH v2 3/5] libxc: create unmapped initrd in domain builder if supported

2015-10-02 Thread Juergen Gross
On 10/02/2015 04:56 PM, Ian Campbell wrote: On Fri, 2015-10-02 at 16:46 +0200, Juergen Gross wrote: On 10/02/2015 02:59 PM, Ian Campbell wrote: On Fri, 2015-10-02 at 07:49 +0200, Juergen Gross wrote: In case the kernel of a new pv-domU indicates it is supporting an unmapped initrd, don't waste

Re: [Xen-devel] [PATCH v2 1/5] libxc: remove allocate member from struct xc_dom_image

2015-10-02 Thread Juergen Gross
On 10/02/2015 04:47 PM, Ian Campbell wrote: On Fri, 2015-10-02 at 16:25 +0200, Juergen Gross wrote: On 10/02/2015 03:01 PM, Ian Campbell wrote: On Fri, 2015-10-02 at 07:49 +0200, Juergen Gross wrote: The allocate() callback in struct xc_dom_image is never set. Remove it. Signed-off-by: Juerge

Re: [Xen-devel] [PATCH v2 3/5] libxc: create unmapped initrd in domain builder if supported

2015-10-02 Thread Ian Campbell
On Fri, 2015-10-02 at 16:46 +0200, Juergen Gross wrote: > On 10/02/2015 02:59 PM, Ian Campbell wrote: > > On Fri, 2015-10-02 at 07:49 +0200, Juergen Gross wrote: > > > In case the kernel of a new pv-domU indicates it is supporting an > > > unmapped initrd, don't waste precious virtual space for the

[Xen-devel] [PATCH v2 1/4] libxl: convert to use LOG() macro

2015-10-02 Thread Wei Liu
This patch converts most LIBXL__LOG* macros to LOG macro. It's done with spatch plus some hand coding. Using spatch rune: spatch --in-place --no-includes --include-headers \ --sp-file libxl.spatch \ tools/libxl/libxl*.c with some exceptions. libxl_json.c is untouched because

[Xen-devel] [PATCH v2 3/4] libxl: map LIBXL__LOG_VERBOSE to XTL_VERBOSE

2015-10-02 Thread Wei Liu
There is code in libxl using XTL_VERBOSE. We should provide a libxl mapping for it. Signed-off-by: Wei Liu Acked-by: Ian Jackson --- tools/libxl/libxl_internal.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index c2413c2..d035b6

[Xen-devel] [PATCH v2 4/4] libxl: fix places missed by spatch

2015-10-02 Thread Wei Liu
The spatch provided in previous patch didn't handle all sites that need transformation. Signed-off-by: Wei Liu Acked-by: Ian Jackson --- tools/libxl/libxl.c| 17 - tools/libxl/libxl_create.c | 4 ++-- tools/libxl/libxl_pci.c| 43 +++--

[Xen-devel] [PATCH v2 2/4] libxl: fix long lines and delete extraneous quotes

2015-10-02 Thread Wei Liu
Signed-off-by: Wei Liu Acked-by: Ian Jackson --- tools/libxl/libxl.c | 21 + tools/libxl/libxl_utils.c | 8 ++-- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 1b754c8..ca725a9 100644 --- a/tools/lib

[Xen-devel] [PATCH v2 0/4] libxl: use LOG() macro where appropriate

2015-10-02 Thread Wei Liu
There are mixed usage of different logging macros. Ideally we only use one style to avoid confusion. Rebased on top of staging. Wei Liu (4): libxl: convert to use LOG() macro libxl: fix long lines and delete extraneous quotes libxl: map LIBXL__LOG_VERBOSE to XTL_VERBOSE libxl: fix places

Re: [Xen-devel] [PATCH v5 12/22] xen/balloon: Don't rely on the page granularity is the same for Xen and Linux

2015-10-02 Thread Julien Grall
On 02/10/15 15:31, Julien Grall wrote: > Hi David, > > On 02/10/15 15:09, David Vrabel wrote: >> On 30/09/15 11:45, Julien Grall wrote: >>> For ARM64 guests, Linux is able to support either 64K or 4K page >>> granularity. Although, the hypercall interface is always based on 4K >>> page granularity

Re: [Xen-devel] [PATCH v1] xSplice initial foundation patches.

2015-10-02 Thread Konrad Rzeszutek Wilk
On Wed, Sep 16, 2015 at 05:01:11PM -0400, Konrad Rzeszutek Wilk wrote: > > *OK, what do you have?* > > They are located at a git tree: > git://xenbits.xen.org/people/konradwilk/xen.git xsplice.v1 I've created another branch 'xsplice.v1.1' which has some bug-fixes and improvements. Will be post

Re: [Xen-devel] [PATCH v2 1/5] libxc: remove allocate member from struct xc_dom_image

2015-10-02 Thread Ian Campbell
On Fri, 2015-10-02 at 16:25 +0200, Juergen Gross wrote: > On 10/02/2015 03:01 PM, Ian Campbell wrote: > > On Fri, 2015-10-02 at 07:49 +0200, Juergen Gross wrote: > > > The allocate() callback in struct xc_dom_image is never set. Remove > > > it. > > > > > > Signed-off-by: Juergen Gross > > > Acke

Re: [Xen-devel] [PATCH v2 3/5] libxc: create unmapped initrd in domain builder if supported

2015-10-02 Thread Juergen Gross
On 10/02/2015 02:59 PM, Ian Campbell wrote: On Fri, 2015-10-02 at 07:49 +0200, Juergen Gross wrote: In case the kernel of a new pv-domU indicates it is supporting an unmapped initrd, don't waste precious virtual space for the initrd, but allocate only guest physical memory for it. Signed-off-by

Re: [Xen-devel] [PATCH v2 5/5] libxc: create p2m list outside of kernel mapping if supported

2015-10-02 Thread Juergen Gross
On 10/02/2015 03:16 PM, Ian Campbell wrote: On Fri, 2015-10-02 at 07:49 +0200, Juergen Gross wrote: +/* Allocate p2m list if outside of initial kernel mapping. */ +if ( dom->arch_hooks->alloc_p2m_list && dom->parms.p2m_base != UNSET_ADDR ) +{ +if ( dom->arch_hooks->alloc_p2m

Re: [Xen-devel] [PATCH v5 00/22] xen/arm64: Add support for 64KB page in Linux

2015-10-02 Thread Konrad Rzeszutek Wilk
On Fri, Oct 02, 2015 at 09:25:15AM -0400, Boris Ostrovsky wrote: > > > On 10/02/2015 05:51 AM, Ian Campbell wrote: > >(trimming and reordering To/Cc) > > > >On Thu, 2015-10-01 at 16:15 +0100, David Vrabel wrote: > >>On 30/09/15 11:45, Julien Grall wrote: > >>>Hi all, > >>> > >>>ARM64 Linux is sup

Re: [Xen-devel] [PATCH v5 12/22] xen/balloon: Don't rely on the page granularity is the same for Xen and Linux

2015-10-02 Thread Julien Grall
Hi David, On 02/10/15 15:09, David Vrabel wrote: > On 30/09/15 11:45, Julien Grall wrote: >> For ARM64 guests, Linux is able to support either 64K or 4K page >> granularity. Although, the hypercall interface is always based on 4K >> page granularity. >> >> With 64K page granularity, a single page

Re: [Xen-devel] [PATCH v2 1/5] libxc: remove allocate member from struct xc_dom_image

2015-10-02 Thread Juergen Gross
On 10/02/2015 03:01 PM, Ian Campbell wrote: On Fri, 2015-10-02 at 07:49 +0200, Juergen Gross wrote: The allocate() callback in struct xc_dom_image is never set. Remove it. Signed-off-by: Juergen Gross Acked-by: Ian Jackson This breaks the stubdom build: kexec.c: In function ‘kexec’: kexec.

[Xen-devel] [PATCH v3 0/1] Block script performance with shared image files

2015-10-02 Thread Mike Latimer
Hi, V3 of this patch modifies the comments on check_sharing to document the change in the return string. This change was necessary to allow the error string in check_file_sharing to return the device causing the sharing conflict. Thanks, Mike Mike Latimer (1): tools/hotplug: Scan xenstore once

[Xen-devel] [PATCH v3 1/1] tools/hotplug: Scan xenstore once when attaching shared images files

2015-10-02 Thread Mike Latimer
During the attachment of a loopback mounted image file, the mode of all curent instances of this device already attached to other domains must be checked. This requires finding all loopback devices pointing to the inode of the shared image file, and then comparing the major and minor number of thes

Re: [Xen-devel] [PATCH v5 12/22] xen/balloon: Don't rely on the page granularity is the same for Xen and Linux

2015-10-02 Thread David Vrabel
On 30/09/15 11:45, Julien Grall wrote: > For ARM64 guests, Linux is able to support either 64K or 4K page > granularity. Although, the hypercall interface is always based on 4K > page granularity. > > With 64K page granularity, a single page will be spread over multiple > Xen frame. > > To avoid

[Xen-devel] [distros-debian-jessie test] 38116: regressions - FAIL

2015-10-02 Thread Platform Team regression test user
flight 38116 distros-debian-jessie real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/38116/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-amd64-jessie-netboot-pygrub 9 debian-di-install fail REGR. vs. 38030

[Xen-devel] ANNOUNCEMENT: Xen 4.6 RC5

2015-10-02 Thread Wei Liu
Hi all Xen 4.6 RC5 has been tagged. You can check out the tag 4.6.0-rc5 in xen.git. The tarball can be downloaded from: http://bits.xensource.com/oss-xen/release/4.6.0-rc5/xen-4.6.0-rc5.tar.gz Signature for tarball: http://bits.xensource.com/oss-xen/release/4.6.0-rc5/xen-4.6.0-rc5.tar.gz.sig

Re: [Xen-devel] [PATCH OSSTEST] Switch to merged qemu-xen{, -traditional}.git trees

2015-10-02 Thread Ian Campbell
On Fri, 2015-10-02 at 14:43 +0100, Ian Jackson wrote: > Ian Campbell writes ("Re: [PATCH OSSTEST] Switch to merged qemu-xen{, > -traditional}.git trees"): > > $branch is a bit wordy at this point, but $branchcore is usable for > > both > > cases incrementally: > > LGTM. > > Acked-by: Ian Jackson

Re: [Xen-devel] [PATCH OSSTEST] Switch to merged qemu-xen{, -traditional}.git trees

2015-10-02 Thread Ian Jackson
Ian Campbell writes ("Re: [PATCH OSSTEST] Switch to merged qemu-xen{,-traditional}.git trees"): > $branch is a bit wordy at this point, but $branchcore is usable for both > cases incrementally: LGTM. Acked-by: Ian Jackson (I assume you'll fold this in.) Ian. _

[Xen-devel] [qemu-upstream-4.6-testing baseline-only test] 38115: tolerable FAIL

2015-10-02 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 38115 qemu-upstream-4.6-testing real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/38115/ Failures :-/ but no regressions. Tests which did not succeed, including tests which could not be run: test-armhf-armhf-libvirt-vhd 9 de

Re: [Xen-devel] [PATCH v1 1/5] xsplice: Design document.

2015-10-02 Thread Jan Beulich
>>> Konrad Rzeszutek Wilk 09/16/15 11:02 PM >>> >+struct xsplice { >+const char *name; /* A sensible name for the patch. Up to 40 characters. >*/ Any reason not to make this a 40-character array right in the structure then? It would seem to me the fewer relocation the better. >+const

[Xen-devel] [PATCH] xen-blkfront: check for null drvdata in blkback_changed (XenbusStateClosing)

2015-10-02 Thread Konrad Rzeszutek Wilk
From: Cathy Avery xen-blkfront will crash if the check to talk_to_blkback() in blkback_changed()(XenbusStateInitWait) returns an error. The driver data is freed and info is set to NULL. Later during the close process via talk_to_blkback's call to xenbus_dev_fatal() the null pointer is passed to a

Re: [Xen-devel] [PATCH V7 5/7] xl: add pvusb commands

2015-10-02 Thread Ian Campbell
On Thu, 2015-10-01 at 18:02 +0100, George Dunlap wrote: > On 25/09/15 03:11, Chunyan Liu wrote: > > Add pvusb commands: usb-ctrl-attach, usb-ctrl-detach, usb-list, > > usb-attach and usb-detach. > > > > To attach a usb device to guest through pvusb, one could follow > > following example: > > > >

Re: [Xen-devel] [PATCH V7 3/7] libxl: add pvusb API

2015-10-02 Thread Ian Campbell
On Wed, 2015-09-30 at 18:55 +0100, George Dunlap wrote: > > +int libxl_devid_to_device_usbctrl(libxl_ctx *ctx, > > + uint32_t domid, > > + int devid, > > + libxl_device_usbctrl *usbctrl) > > +{ > > +

  1   2   >