[Xen-devel] [PATCH v7 2/2] OSSTest: push successful raisin builds

2015-06-22 Thread Stefano Stabellini
Determine the most recent raisin revision that needs to be tested, by comparing with the already tested xen-tested-master branch. Push to raisin.git:xen-tested-master when the build is successful. Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com --- ap-common|3

[Xen-devel] [PATCH v7 1/2] OSSTEST: introduce a raisin build test

2015-06-22 Thread Stefano Stabellini
Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com --- Changes in v7: - update raisin git url after http://marc.info/?l=xen-develm=143472251602803 Changes in v6: - move divide to Osstest/BuildSupport.pm and rename it to divide_xen_build; use divide_xen_build in ts-raisin-build

Re: [Xen-devel] [xen-unstable test] 58821: tolerable FAIL

2015-06-22 Thread Ian Campbell
On Mon, 2015-06-22 at 14:09 +, osstest service user wrote: flight 58821 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/58821/ [...] test-amd64-amd64-libvirt 11 guest-start fail like 58789

[Xen-devel] [PATCH RFC v1 11/13] xen/libxl: allow creating HVM guests without a device model

2015-06-22 Thread Roger Pau Monne
Intorduce a new device model version (NONE) that can be used to specify that no device model should be used. Propagate this to Xen by creating a new XEN_DOMCTL_CDF_noemu flag that disables some of the emulation done inside of Xen. Signed-off-by: Roger Pau Monné roger@citrix.com Cc: Ian

[Xen-devel] [PATCH RFC v1 12/13] xen: allow 64bit HVM guests to use XENMEM_memory_map

2015-06-22 Thread Roger Pau Monne
Enable this hypercall for 64bit HVM guests in order to fetch the e820 memory map in the absence of an emulated BIOS. The memory map is populated and notified to Xen in arch_setup_meminit_hvm. Signed-off-by: Roger Pau Monné roger@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Stefano

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

2015-06-22 Thread Konrad Rzeszutek Wilk
On Mon, Jun 22, 2015 at 12:37:37PM -0400, elena.ufimts...@oracle.com wrote: From: Elena Ufimtseva elena.ufimts...@oracle.com On AMD, MSR_AMD64_TSC_RATIO must be set for rdtsc instruction in guest to properly read the cpu tsc. To that end, set tsc_khz in struct domain. It looks like the

Re: [Xen-devel] [xen-unstable test] 58821: tolerable FAIL

2015-06-22 Thread Jan Beulich
On 22.06.15 at 17:17, ian.campb...@citrix.com wrote: On Mon, 2015-06-22 at 14:09 +, osstest service user wrote: flight 58821 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/58821/ [...] test-amd64-amd64-libvirt 11 guest-start fail like

[Xen-devel] [PATCH RFC v1 13/13] xenconsole: try to attach to PV console if HVM fails

2015-06-22 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é roger@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Stefano Stabellini

[Xen-devel] [PATCH RFC v1 10/13] lib{xc/xl}: allow the creation of HVM domains with a kernel

2015-06-22 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. Signed-off-by: Roger Pau Monné roger@citrix.com Cc: Ian

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

2015-06-22 Thread elena . ufimtseva
From: Elena Ufimtseva elena.ufimts...@oracle.com Certain IOIO instructions and CR access instructions like lmsw/clts etc need to be emulated. handle_mmio is incorrectly called to accomplish this. Create svm_emulate() to call hvm_emulate_one which is more appropriate, and works for pvh as well.

Re: [Xen-devel] [PATCH v3 10/10] x86/MSI-X: provide hypercall interface for mask-all control

2015-06-22 Thread Roger Pau Monné
El 19/06/15 a les 16.58, Jan Beulich ha escrit: On 19.06.15 at 16:07, roger@citrix.com wrote: I don't mind adding a PHYSDEVOP_pci_mmcfg_reserved call to FreeBSD, but for it to have any effect we need to stop unconditionally mapping everything as MMIO regions on PVH Dom0. Right, I didn't

Re: [Xen-devel] [PATCH] libxl: Add AHCI support for upstream qemu

2015-06-22 Thread Stefano Stabellini
On Mon, 22 Jun 2015, Fabio Fantoni wrote: Usage: ahci=0|1 (default=0) If enabled adds ich9 disk controller in ahci mode and uses it with upstream qemu to emulate disks instead of ide. It doesn't support cdroms which still using ide (cdroms will use -device ide-cd as new qemu parameter)

Re: [Xen-devel] [PATCH 1/1] xen-hvm: Add trace to ioreq

2015-06-22 Thread Stefano Stabellini
On Thu, 30 Apr 2015, Don Slutz wrote: Signed-off-by: Don Slutz dsl...@verizon.com (cherry picked from commit b72adbe7510d0a30053d32334665ee887bec9e43) Acked-by: Stefano Stabellini stefano.stabell...@eu.citrix.com I'll add it to my queue trace-events | 7 +++ xen-hvm.c| 21

Re: [Xen-devel] [PATCH v25 04/15] x86/VPMU: Interface for setting PMU mode and flags

2015-06-22 Thread Boris Ostrovsky
On 06/22/2015 11:10 AM, Jan Beulich wrote: +switch ( op ) +{ +case XENPMU_mode_set: +{ +if ( (pmu_params.val ~(XENPMU_MODE_SELF | XENPMU_MODE_HV)) || + (hweight64(pmu_params.val) 1) ) +return -EINVAL; + +/* 32-bit dom0 can only sample

Re: [Xen-devel] [PATCH v25 12/15] x86/VPMU: Handle PMU interrupts for PV(H) guests

2015-06-22 Thread Jan Beulich
On 19.06.15 at 20:44, boris.ostrov...@oracle.com wrote: Add support for handling PMU interrupts for PV(H) guests. VPMU for the interrupted VCPU is unloaded until the guest issues XENPMU_flush hypercall. This allows the guest to access PMU MSR values that are stored in VPMU context which

Re: [Xen-devel] [xen-4.2-testing test] 58817: FAIL

2015-06-22 Thread Jan Beulich
On 22.06.15 at 08:54, osst...@xenbits.xen.org wrote: flight 58817 xen-4.2-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/58817/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run:

Re: [Xen-devel] [PATCH RFC 3/4] xen: implement SCHEDOP_soft_reset

2015-06-22 Thread Vitaly Kuznetsov
Jan Beulich jbeul...@suse.com writes: On 03.06.15 at 15:35, vkuzn...@redhat.com wrote: @@ -1129,8 +1129,9 @@ void unmap_vcpu_info(struct vcpu *v) mfn = v-vcpu_info_mfn; unmap_domain_page_global((void *) ((unsigned long)v-vcpu_info PAGE_MASK)); - -

[Xen-devel] [PATCH RFC v1 09/13] elfnotes: intorduce a new PHYS_ENTRY elfnote

2015-06-22 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é roger@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Stefano Stabellini

[Xen-devel] [PATCH RFC v1 00/13] Introduce HMV without dm and new boot ABI

2015-06-22 Thread Roger Pau Monne
Before reading any further, keep in mind this is a VERY inital RFC prototype series. Many things are not finished, and those that are done make heavy use of duck tape in order to keep things into place. Now that you are warned, this series is split in the following order: - Patches from 1 to

[Xen-devel] [PATCH RFC v1 08/13] libxc: remove dead x86 HVM code

2015-06-22 Thread Roger Pau Monne
Remove xc_hvm_build_x86.c since xc_hvm_build is not longer used in order to create HVM guests. Signed-off-by: Roger Pau Monné roger@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Stefano Stabellini stefano.stabell...@eu.citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc: Wei Liu

[Xen-devel] [PATCH RFC v1 01/13] libxc: split x86 HVM setup_guest into smaller logical functions

2015-06-22 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é roger@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Stefano Stabellini stefano.stabell...@eu.citrix.com Cc: Ian Campbell

[Xen-devel] [PATCH RFC v1 04/13] libxc: allow arch_setup_meminit to populate HVM domain memory

2015-06-22 Thread Roger Pau Monne
Introduce a new arch_setup_meminit_hvm that's going to be used to populate HVM domain memory. Rename arch_setup_meminit to arch_setup_meminit_hvm_pv and introduce a stub arch_setup_meminit that will call the right meminit function depending on the contains type. Signed-off-by: Roger Pau Monné

[Xen-devel] [PATCH RFC v1 05/13] libxc: introduce a domain loader for HVM guest firmware

2015-06-22 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é roger@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Stefano

[Xen-devel] [PATCHv1] x86: only check for one watchdog NMI

2015-06-22 Thread David Vrabel
Since the NMI handler can now recognize watchdog NMIs, make check_nmi_watchdog() only check for at least one watchdog NMI. This prevents false negatives caused by other processors (which may be being power managed by the BIOS) running at reduced clock frequencies. This will also slightly speed

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

2015-06-22 Thread elena . ufimtseva
From: Elena Ufimtseva elena.ufimts...@oracle.com PVH doesn't use apic emulation hence vlapic-regs ptr is not set for it. Signed-off-by: Mukesh Rathor mukesh.rat...@oracle.com --- xen/arch/x86/hvm/svm/svm.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff

Re: [Xen-devel] [PATCH v8 2/7] Qemu-Xen-vTPM: Create a new file xen_pvdev.c

2015-06-22 Thread Stefano Stabellini
On Sun, 17 May 2015, Quan Xu wrote: for some common part of xen frontend and backend, such as xendevs queue and xenstore update functions. Signed-off-by: Quan Xu quan...@intel.com Hi Quan, could you please separate out the code movement from any other changes? This patch would become two

[Xen-devel] [PATCH RFC v1 02/13] libxc: unify xc_dom_p2m_{host/guest}

2015-06-22 Thread Roger Pau Monne
Unify both functions into xc_dom_p2m. Should not introduce any functional change. Signed-off-by: Roger Pau Monné roger@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Stefano Stabellini stefano.stabell...@eu.citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc: Wei Liu

[Xen-devel] [PATCH RFC v1 07/13] libxl: switch HVM domain building to use xc_dom_* helpers

2015-06-22 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é roger@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Stefano Stabellini

[Xen-devel] [PATCH RFC v1 03/13] libxc: introduce the notion of a container type

2015-06-22 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é roger@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Stefano Stabellini

[Xen-devel] [PATCH RFC v1 06/13] libxc: introduce a xc_dom_arch for hvm-3.0-x86_32 guests

2015-06-22 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_params function. Signed-off-by: Roger Pau Monné roger@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com Cc: Stefano Stabellini stefano.stabell...@eu.citrix.com Cc: Ian Campbell

Re: [Xen-devel] [PATCH v8 4/7] Qemu-Xen-vTPM: Register Xen stubdom vTPM frontend driver

2015-06-22 Thread Stefano Stabellini
On Sun, 17 May 2015, Quan Xu wrote: This drvier transfers any request/repond between TPM xenstubdoms driver and Xen vTPM stubdom, and facilitates communications between Xen vTPM stubdom domain and vTPM xenstubdoms driver. It is a glue for the TPM xenstubdoms driver and Xen stubdom vTPM domain

Re: [Xen-devel] [RFC PATCH v3 05/18] xen/arm: ITS: Port ITS driver to xen

2015-06-22 Thread Julien Grall
Hi, On 22/06/15 13:01, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Only required changes from Linux ITS driver is ported and compiled Can you list the changes you took from Linux? The coding style is not the same so it's hard to know what is the

Re: [Xen-devel] [PATCH RFC 3/4] xen: implement SCHEDOP_soft_reset

2015-06-22 Thread Jan Beulich
On 22.06.15 at 18:00, vkuzn...@redhat.com wrote: Jan Beulich jbeul...@suse.com writes: On 03.06.15 at 15:35, vkuzn...@redhat.com wrote: @@ -1129,8 +1129,9 @@ void unmap_vcpu_info(struct vcpu *v) mfn = v-vcpu_info_mfn; unmap_domain_page_global((void *)

Re: [Xen-devel] [xen-unstable test] 58821: tolerable FAIL

2015-06-22 Thread Ian Campbell
On Mon, 2015-06-22 at 17:00 +0100, Andrew Cooper wrote: On 22/06/15 16:36, Jan Beulich wrote: On 22.06.15 at 17:17, ian.campb...@citrix.com wrote: On Mon, 2015-06-22 at 14:09 +, osstest service user wrote: flight 58821 xen-unstable real [real]

[Xen-devel] [PATCH v7 0/2] OSSTEST: introduce a raisin build test

2015-06-22 Thread Stefano Stabellini
Hi all, the first patch introduces a Raisin build job, meant to test Raisin itself. The second patch push-gates Raisin on successful builds. Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com Changes in v7: - update raisin git url after

[Xen-devel] [PATCH] libxl: Add AHCI support for upstream qemu

2015-06-22 Thread Fabio Fantoni
Usage: ahci=0|1 (default=0) If enabled adds ich9 disk controller in ahci mode and uses it with upstream qemu to emulate disks instead of ide. It doesn't support cdroms which still using ide (cdroms will use -device ide-cd as new qemu parameter) Ahci requires new qemu parameter but for now other

Re: [Xen-devel] [PATCH RFC 3/4] xen: implement SCHEDOP_soft_reset

2015-06-22 Thread Vitaly Kuznetsov
Jan Beulich jbeul...@suse.com writes: On 22.06.15 at 18:00, vkuzn...@redhat.com wrote: Jan Beulich jbeul...@suse.com writes: On 03.06.15 at 15:35, vkuzn...@redhat.com wrote: @@ -1129,8 +1129,9 @@ void unmap_vcpu_info(struct vcpu *v) mfn = v-vcpu_info_mfn;

[Xen-devel] [PATCH 0/6] AMD-PVH: DomU support

2015-06-22 Thread elena . ufimtseva
From: Elena Ufimtseva elena.ufimts...@oracle.com This is a re-spin of patches for AMD PVH DomU from Mukesh Rathor. As I am diving into more details of AMD PVH, I am reposting his series with minor changes that reviewers (Jan and Boris) posted in comments. The issue with handle_mmio is not yet

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

2015-06-22 Thread elena . ufimtseva
From: Elena Ufimtseva elena.ufimts...@oracle.com On AMD, MSR_AMD64_TSC_RATIO must be set for rdtsc instruction in guest to properly read the cpu tsc. To that end, set tsc_khz in struct domain. Signed-off-by: Mukesh Rathor mukesh.rat...@oracle.com --- xen/arch/x86/time.c | 1 + 1 file changed, 1

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

2015-06-22 Thread elena . ufimtseva
From: Elena Ufimtseva elena.ufimts...@oracle.com Finally, enable pvh if the cpu supports NPT and svm decode. Signed-off-by: Mukesh Rathor mukesh.rat...@oracle.com --- xen/arch/x86/hvm/svm/svm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/arch/x86/hvm/svm/svm.c

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

2015-06-22 Thread elena . ufimtseva
From: Elena Ufimtseva elena.ufimts...@oracle.com Call pv_cpuid for pvh cpuid intercept. Note, we modify svm_vmexit_do_cpuid instead of the intercept switch because the guest eip needs to be adjusted for pvh also. Signed-off-by: Mukesh Rathor mukesh.rat...@oracle.com ---

[Xen-devel] [PATCH 1/6] pvh: domu construct vmcb 64 bit mode start

2015-06-22 Thread elena . ufimtseva
From: Elena Ufimtseva elena.ufimts...@oracle.com Signed-off-by: Mukesh Rathor mukesh.rat...@oracle.com --- xen/arch/x86/hvm/svm/vmcb.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/hvm/svm/vmcb.c b/xen/arch/x86/hvm/svm/vmcb.c index

Re: [Xen-devel] [PATCH 1/2] xen{trace/analyze}: don't use 64bit versions of libc functions

2015-06-22 Thread Roger Pau Monné
El 22/06/15 a les 12.09, George Dunlap ha escrit: On 06/22/2015 10:59 AM, Roger Pau Monné wrote: El 22/06/15 a les 11.08, George Dunlap ha escrit: On 06/19/2015 09:58 AM, Roger Pau Monne wrote: This is not needed, neither encouraged. Configure already checks _FILE_OFFSET_BITS and appends it

[Xen-devel] [PATCH v4 3/6] x86/MSI-X: be more careful during teardown

2015-06-22 Thread Jan Beulich
When a device gets detached from a guest, pciback will clear its command register, thus disabling both memory and I/O decoding. The disabled memory decoding, however, has an effect on the MSI-X table accesses the hypervisor does: These won't have the intended effect anymore. Even worse, for PCIe

[Xen-devel] [PATCH v4 4/6] x86/MSI-X: access MSI-X table only after having enabled MSI-X

2015-06-22 Thread Jan Beulich
As done in Linux by f598282f51 (PCI: Fix the NIU MSI-X problem in a better way) and its broken predecessor, make sure we don't access the MSI-X table without having enabled MSI-X first, using the mask-all flag instead to prevent interrupts from occurring. Signed-off-by: Jan Beulich

[Xen-devel] [PATCH v4 RFC 6/6] x86/MSI: properly track guest masking requests

2015-06-22 Thread Jan Beulich
... by monitoring writes to the mask register. This allows reverting the main effect of the XSA-129 patches in qemu. Signed-off-by: Jan Beulich jbeul...@suse.com --- a/xen/arch/x86/msi.c +++ b/xen/arch/x86/msi.c @@ -1308,6 +1308,39 @@ printk(%04x:%02x:%02x.%u: MSI-X %03x:%u return 1;

[Xen-devel] [PATCH v4 RFC 1/6] x86/PCI: add config space write abstract intercept logic

2015-06-22 Thread Jan Beulich
This is to be used by MSI code, and later to also be hooked up to MMCFG accesses by Dom0. Signed-off-by: Jan Beulich jbeul...@suse.com --- a/xen/arch/x86/msi.c +++ b/xen/arch/x86/msi.c @@ -,6 +,12 @@ void pci_cleanup_msi(struct pci_dev *pde msi_free_irqs(pdev); } +int

Re: [Xen-devel] [RFC PATCH v3 04/18] xen/arm: gicv3: Refactor redistributor information

2015-06-22 Thread Julien Grall
Hi, On 22/06/15 13:01, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Separate redistributor information into rdist and rdist_prop structures. The rdist_prop holds the redistributor common information and rdist holds the per cpu specific information.

Re: [Xen-devel] [PATCH v25 04/15] x86/VPMU: Interface for setting PMU mode and flags

2015-06-22 Thread Jan Beulich
On 19.06.15 at 20:44, boris.ostrov...@oracle.com wrote: Add runtime interface for setting PMU mode and flags. Three main modes are provided: * XENPMU_MODE_OFF: PMU is not virtualized * XENPMU_MODE_SELF: Guests can access PMU MSRs and receive PMU interrupts. * XENPMU_MODE_HV: Same as

Re: [Xen-devel] [PATCH v25 07/15] x86/VPMU: Save VPMU state for PV guests during context switch

2015-06-22 Thread Jan Beulich
On 19.06.15 at 20:44, boris.ostrov...@oracle.com wrote: Save VPMU state during context switch for both HVM and PV(H) guests. A subsequent patch (x86/VPMU: NMI-based VPMU support) will make it possible for vpmu_switch_to() to call vmx_vmcs_try_enter()-vcpu_pause() which needs is_running to

Re: [Xen-devel] [PATCH RFC v1 00/13] Introduce HMV without dm and new boot ABI

2015-06-22 Thread Stefano Stabellini
Hi Roger, given that this patch series is actually using the Xen hvm builder, I take that all the PVH code paths in Xen or the guest kernel are not actually used, correct? This is more like PV on HVM without QEMU, right? Do you think think this can work for Dom0 too? Would that make all the PVH

Re: [Xen-devel] [PATCH 1/6] pvh: domu construct vmcb 64 bit mode start

2015-06-22 Thread Boris Ostrovsky
On 06/22/2015 12:37 PM, elena.ufimts...@oracle.com wrote: From: Elena Ufimtseva elena.ufimts...@oracle.com Signed-off-by: Mukesh Rathor mukesh.rat...@oracle.com --- All of these changes are common with Intel so we should be able to move them up to common layer. (For CS attributes the 32-bit

[Xen-devel] [PATCH v4 RFC 2/6] x86/MSI-X: track host and guest mask‑all requests separately

2015-06-22 Thread Jan Beulich
Host uses of the bits will be added subsequently, and must not be overridden by guests (including Dom0, namely when acting on behalf of a guest). Signed-off-by: Jan Beulich jbeul...@suse.com --- a/xen/arch/x86/msi.c +++ b/xen/arch/x86/msi.c @@ -846,6 +846,12 @@ static int

[Xen-devel] [PATCH v4 RFC 5/6] x86/MSI-X: reduce fiddling with control register during restore

2015-06-22 Thread Jan Beulich
Rather than disabling and enabling MSI-X once per vector, do it just once per device. Signed-off-by: Jan Beulich jbeul...@suse.com Reviewed-by: Andrew Cooper andrew.coop...@citrix.com --- a/xen/arch/x86/msi.c +++ b/xen/arch/x86/msi.c @@ -1319,6 +1319,9 @@ int pci_restore_msi_state(struct pci_dev

Re: [Xen-devel] [PATCH v8 3/7] Qemu-Xen-vTPM: Xen frontend driver infrastructure

2015-06-22 Thread Stefano Stabellini
On Sun, 17 May 2015, Quan Xu wrote: This patch adds infrastructure for xen front drivers living in qemu, so drivers don't need to implement common stuff on their own. It's mostly xenbus management stuff: some functions to access XenStore, setting up XenStore watches, callbacks on device

Re: [Xen-devel] PCI Passthrough ARM Design : Draft1

2015-06-22 Thread Konrad Rzeszutek Wilk
On Wed, Jun 17, 2015 at 03:35:02PM +0100, Stefano Stabellini wrote: On Wed, 17 Jun 2015, Ian Campbell wrote: On Wed, 2015-06-17 at 07:14 -0700, Manish Jaggi wrote: On Wednesday 17 June 2015 06:43 AM, Ian Campbell wrote: On Wed, 2015-06-17 at 13:58 +0100, Stefano Stabellini wrote:

Re: [Xen-devel] [DESIGN] Feature Levelling improvements

2015-06-22 Thread Konrad Rzeszutek Wilk
Thank you for posting this! Some comments below. Design == `struct sysctl_physinfo.levelling_caps` --- Xen shall gain a new physinfo field which reports the degree to which it can influence `CPUID` executed by a PV guest. This is a bitmap

[Xen-devel] [xen-4.5-testing test] 58826: regressions - FAIL

2015-06-22 Thread osstest service user
flight 58826 xen-4.5-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/58826/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-rumpuserxen-i386 15 rumpuserxen-demo-xenstorels/xenstorels.repeat fail REGR.

[Xen-devel] [linux-arm-xen test] 58830: tolerable all pass - PUSHED

2015-06-22 Thread osstest service user
flight 58830 linux-arm-xen real [real] http://logs.test-lab.xenproject.org/osstest/logs/58830/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-armhf-armhf-xl-xsm 12 migrate-support-checkfail never pass test-armhf-armhf-xl 12

[Xen-devel] Bug in devicetree_for_each_node() in xen/arch/arm/bootfdt.c ?

2015-06-22 Thread Chris (Christopher) Brand
I've been trying to figure out why Xen only reports 2GB on my ARM platform that actually has 3GB, and I think I've found a bug, but I'm not familiar enough with the Xen code to fix it. The relevant parts of my dts are: /dts-v1/; / { model = Broadcom STB (7445d0); compatible =

[Xen-devel] [xen-4.2-testing test] 58817: FAIL

2015-06-22 Thread osstest service user
flight 58817 xen-4.2-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/58817/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-libvirt 3 host-install(3) broken in 58584 REGR. vs.

Re: [Xen-devel] [PATCH v2][RFC] libxl: Add AHCI support for upstream qemu

2015-06-22 Thread George Dunlap
On Fri, Jun 19, 2015 at 12:18 PM, Fabio Fantoni fabio.fant...@m2r.biz wrote: Il 11/06/2015 12:28, Fabio Fantoni ha scritto: Il 11/06/2015 12:06, Zir Blazer ha scritto: Since I'm not a developer I may be peeking my nose a bit too far, but based on what I know, I think that enabling AHCI by

Re: [Xen-devel] [PATCH 2/2] configure: check for argp

2015-06-22 Thread Wei Liu
On Mon, Jun 22, 2015 at 11:12:27AM +0100, George Dunlap wrote: On 06/19/2015 09:58 AM, Roger Pau Monne wrote: argp is only present in the GNU C library, so add a specific check for it in configure. Also check if -largp is needed for linking against it. Please run autoconf after applying.

Re: [Xen-devel] [PATCH 2/2] configure: check for argp

2015-06-22 Thread George Dunlap
On 06/22/2015 11:45 AM, Wei Liu wrote: On Mon, Jun 22, 2015 at 11:12:27AM +0100, George Dunlap wrote: On 06/19/2015 09:58 AM, Roger Pau Monne wrote: argp is only present in the GNU C library, so add a specific check for it in configure. Also check if -largp is needed for linking against it.

Re: [Xen-devel] [PATCH 2/2] configure: check for argp

2015-06-22 Thread George Dunlap
On 06/22/2015 12:10 PM, Wei Liu wrote: On Mon, Jun 22, 2015 at 11:55:44AM +0100, George Dunlap wrote: On 06/22/2015 11:45 AM, Wei Liu wrote: On Mon, Jun 22, 2015 at 11:12:27AM +0100, George Dunlap wrote: On 06/19/2015 09:58 AM, Roger Pau Monne wrote: argp is only present in the GNU C library,

[Xen-devel] [PATCH v2 2/3] gnttab: don't silently truncate frame numbers in gnttab_set_version()

2015-06-22 Thread Jan Beulich
On a v2 - v1 transition frame numbers previously stored in a 64-bit field have to fit into a 32-bit one. Signed-off-by: Jan Beulich jbeul...@suse.com --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -2597,14 +2597,32 @@ gnttab_set_version(XEN_GUEST_HANDLE_PARA } }

Re: [Xen-devel] [PATCH v2 2/3] gnttab: don't silently truncate frame numbers in gnttab_set_version()

2015-06-22 Thread Andrew Cooper
On 22/06/15 12:45, Jan Beulich wrote: On a v2 - v1 transition frame numbers previously stored in a 64-bit field have to fit into a 32-bit one. Signed-off-by: Jan Beulich jbeul...@suse.com Reviewed-by: Andrew Cooper andrew.coop...@citrix.com ___

[Xen-devel] [RFC PATCH v3 09/18] xen/arm: ITS: Add virtual ITS commands support

2015-06-22 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add Virtual ITS command processing support to Virtual ITS driver Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/gic-v3-its.c |7 + xen/arch/arm/vgic-v3-its.c | 393

[Xen-devel] [RFC PATCH v3 05/18] xen/arm: ITS: Port ITS driver to xen

2015-06-22 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Only required changes from Linux ITS driver is ported and compiled Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- v3: - Only required changes from Linux ITS driver is ported - Xen coding style is followed. ---

[Xen-devel] [RFC PATCH v3 14/18] xen/arm: ITS: Initialize physical ITS

2015-06-22 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Initialize physical ITS driver from GIC v3 driver if LPIs are supported by hardware Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/gic-v3.c |7 +++ xen/include/asm-arm/gic-its.h |2 ++ 2

[Xen-devel] [RFC PATCH v3 10/18] xen/arm: ITS: Add APIs to add and assign device

2015-06-22 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add APIs to add devices to RB-tree, assign and remove devices to domain. Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/gic-v3-its.c | 246 -

[Xen-devel] [RFC PATCH v3 13/18] xen/arm: ITS: Add irq descriptors for LPIs

2015-06-22 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add irq descriptors for LPIs and route Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/gic-v3.c |8 +++- xen/arch/arm/gic.c| 17 +++- xen/arch/arm/irq.c| 38

[Xen-devel] [RFC PATCH v3 16/18] xen/arm: ITS: Handle LPI interrupts

2015-06-22 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Handle and route LPI interrupts Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/gic.c |5 + 1 file changed, 5 insertions(+) diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c index 091f7e5..802f82f

[Xen-devel] [RFC PATCH v3 11/18] xen/arm: ITS: Add GITS registers emulation

2015-06-22 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Emulate GITS* registers and handle LPI configuration table update trap. Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/vgic-v3-its.c| 516 +

[Xen-devel] [RFC PATCH v3 08/18] xen/arm: vITS: Add virtual ITS driver

2015-06-22 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com This patch introduces virtual ITS driver with following functionality - Introduces helper functions to manage device table and ITT table in guest memory - Helper function to handle virtual ITS devices assigned to domain Signed-off-by:

[Xen-devel] [RFC PATCH v3 07/18] xen/arm: ITS: implement hw_irq_controller for LPIs

2015-06-22 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Implements hw_irq_controller api's required to handle LPI's Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/gic-v3-its.c | 39 +++ xen/arch/arm/gic-v3.c | 26

[Xen-devel] [RFC PATCH v3 06/18] xen/arm: ITS: Add helper functions to manage its_devices

2015-06-22 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Helper functions to mange its devices using RB-tree are introduced in physical ITS driver. This is global list of all the devices. Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/gic-v3-its.c | 49

Re: [Xen-devel] [PATCH v2][RFC] libxl: Add AHCI support for upstream qemu

2015-06-22 Thread Fabio Fantoni
Il 22/06/2015 12:34, George Dunlap ha scritto: On Fri, Jun 19, 2015 at 12:18 PM, Fabio Fantoni fabio.fant...@m2r.biz wrote: Il 11/06/2015 12:28, Fabio Fantoni ha scritto: Il 11/06/2015 12:06, Zir Blazer ha scritto: Since I'm not a developer I may be peeking my nose a bit too far, but based on

Re: [Xen-devel] [PATCH] xen: add a 'acpi_fake_s3' boot command line parameter

2015-06-22 Thread Jan Beulich
On 22.06.15 at 13:28, dario.faggi...@citrix.com wrote: --- a/xen/arch/x86/acpi/power.c +++ b/xen/arch/x86/acpi/power.c @@ -33,6 +33,9 @@ uint32_t system_reset_counter = 1; +static bool_t __read_mostly fake_s3 = 0; +boolean_param(acpi_fake_s3, fake_s3); + static char __initdata

[Xen-devel] [PATCH] x86/vLAPIC: adjust types in internal read/write handling

2015-06-22 Thread Jan Beulich
- use 32-bit types where possible (produces slightly better code) - drop (now) unnecessary casts - avoid indirection where not needed - avoid duplicate log messages in vlapic_write() - minor other cleanup Signed-off-by: Jan Beulich jbeul...@suse.com --- a/xen/arch/x86/hvm/vlapic.c +++

[Xen-devel] [RFC PATCH v3 04/18] xen/arm: gicv3: Refactor redistributor information

2015-06-22 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Separate redistributor information into rdist and rdist_prop structures. The rdist_prop holds the redistributor common information and rdist holds the per cpu specific information. This percpu rdist defined as global and shared with ITS

[Xen-devel] [RFC PATCH v3 02/18] xen: Add log2 functionality

2015-06-22 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com log2 helper apis are ported from linux Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/include/xen/bitops.h |8 ++ xen/include/xen/log2.h | 205 ++ 2 files changed, 213

[Xen-devel] [RFC PATCH v3 00/18] Add ITS support

2015-06-22 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com This is based on DraftF version http://xenbits.xen.org/people/ianc/vits/draftF.pdf Following major features are supported - GICv3 ITS support for arm64 platform - Only Dom0 is supported Basic boot is tested with single ITS node with hacks

[Xen-devel] [RFC PATCH v3 03/18] xen: console: Add ratelimit support for error message

2015-06-22 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com XENLOG_ERR_RATE_LIMIT and XENLOG_G_ERR_RATE_LIMIT log levels are added to support rate limit for error messages Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/drivers/char/console.c | 17 +

Re: [Xen-devel] [PATCH v2 3/3] gnttab: clean up gnttab_set_version()

2015-06-22 Thread Andrew Cooper
On 22/06/15 12:46, Jan Beulich wrote: - drop pointless nr_grant_entries() check from loop over reserved entries (adding suitable BUILD_BUG_ON()s to validate that) - adjust types - rename d to currd - formatting Signed-off-by: Jan Beulich jbeul...@suse.com Reviewed-by: Andrew Cooper

[Xen-devel] [RFC PATCH v3 01/18] xen/arm: Add bitmap_find_next_zero_area helper function

2015-06-22 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com bitmap_find_next_zero_area helper function will be used by physical ITS driver imported from linux Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- v3: Moved changes to xen/common/bitmap.c and xen/include/xen/bitmap.h ---

Re: [Xen-devel] [PATCH 2/2] configure: check for argp

2015-06-22 Thread Wei Liu
On Mon, Jun 22, 2015 at 11:55:44AM +0100, George Dunlap wrote: On 06/22/2015 11:45 AM, Wei Liu wrote: On Mon, Jun 22, 2015 at 11:12:27AM +0100, George Dunlap wrote: On 06/19/2015 09:58 AM, Roger Pau Monne wrote: argp is only present in the GNU C library, so add a specific check for it in

Re: [Xen-devel] [PATCH v3 10/10] x86/MSI-X: provide hypercall interface for mask-all control

2015-06-22 Thread Jan Beulich
On 19.06.15 at 16:07, roger@citrix.com wrote: I don't mind adding a PHYSDEVOP_pci_mmcfg_reserved call to FreeBSD, but for it to have any effect we need to stop unconditionally mapping everything as MMIO regions on PVH Dom0. Actually I don't think we need this as a prereq (it's rather a

[Xen-devel] [PATCH] xen: add a 'acpi_fake_s3' boot command line parameter

2015-06-22 Thread Dario Faggioli
which, if provided, prevents the function that actually put the system in ACPI S3 suspended state to be called. The system will, therefore, go down the suspend path, until the second to last step, and then resume right away. This is useful when testing and debugging S3 suspend/resume issues.

[Xen-devel] [PATCH v2 3/3] gnttab: clean up gnttab_set_version()

2015-06-22 Thread Jan Beulich
- drop pointless nr_grant_entries() check from loop over reserved entries (adding suitable BUILD_BUG_ON()s to validate that) - adjust types - rename d to currd - formatting Signed-off-by: Jan Beulich jbeul...@suse.com --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -465,10

Re: [Xen-devel] [PATCH] Modified RTDS scheduler to use an event-driven model instead of polling.

2015-06-22 Thread Dagaen Golomb
Thank you. This clears things up a bit. I will work on this model and make (or ignore) any corner case decisions I feel adequate for now. We can focus on them after the main structure is in place. ~Dagaen On Mon, Jun 22, 2015 at 5:11 AM, Dario Faggioli dario.faggi...@citrix.com wrote: On Thu,

[Xen-devel] [RFC PATCH v3 15/18] xen/arm: ITS: Add domain specific ITS initialization

2015-06-22 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add Domain and vcpu specific ITS initialization Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/gic-v3-its.c | 17 xen/arch/arm/setup.c |1 + xen/arch/arm/vgic-v3-its.c|

[Xen-devel] [RFC PATCH v3 12/18] xen/arm: ITS: Add GICR register emulation

2015-06-22 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Emulate LPI related changes to GICR registers Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/gic-v3.c | 15 xen/arch/arm/gic.c| 10 ++ xen/arch/arm/vgic-v3.c

[Xen-devel] [RFC PATCH v3 17/18] xen/arm: ITS: Generate ITS node for Dom0

2015-06-22 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Parse host dt and generate ITS node for Dom0. ITS node resides inside GIC node so when GIC node is encountered look for ITS node. Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/domain_build.c | 50

[Xen-devel] [RFC PATCH v3 18/18] xen/arm: ITS: Map ITS translation space

2015-06-22 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com ITS translation space contains GITS_TRANSLATOR register which is written by device to raise LPI. This space needs to mapped to every domain address space for all physical ITS available, so that device can access GITS_TRANSLATOR register using

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

2015-06-22 Thread osstest service user
flight 58818 xen-4.4-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/58818/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl-multivcpu 15 guest-start/debian.repeat fail REGR. vs. 58451 Tests which are

Re: [Xen-devel] Interested in taking up a project

2015-06-22 Thread Dario Faggioli
On Sun, 2015-06-21 at 06:37 +, Abhinav Gupta wrote: Hii, I'm still waiting for the confirmation. Have started looking into the code though. There's not much to confirm. The page with the list of development project may require a bit of refreshing, but, as far as I know, that item is not

Re: [Xen-devel] [PATCH 9/9] libxc/x86/pvh: Allow creation of 32b PVH guests

2015-06-22 Thread Ian Campbell
On Fri, 2015-06-19 at 23:09 -0400, Boris Ostrovsky wrote: Signed-off-by: Boris Ostrovsky boris.ostrov...@oracle.com CC: Ian Jackson ian.jack...@eu.citrix.com CC: Stefano Stabellini stefano.stabell...@eu.citrix.com Acked-by: Ian Campbell ian.campb...@citrix.com

Re: [Xen-devel] Interested in taking up a project

2015-06-22 Thread George Dunlap
On 06/21/2015 07:37 AM, Abhinav Gupta wrote: Hii, I'm still waiting for the confirmation. Have started looking into the code though. Hey Abhinav, Thanks for your interest! As others have said, it's a free world, so of course you can work on and attempt to contribute whatever you want. :-)

Re: [Xen-devel] [PATCH 2/2] configure: check for argp

2015-06-22 Thread George Dunlap
On 06/19/2015 09:58 AM, Roger Pau Monne wrote: argp is only present in the GNU C library, so add a specific check for it in configure. Also check if -largp is needed for linking against it. Please run autoconf after applying. Signed-off-by: Roger Pau Monné roger@citrix.com Cc: George

  1   2   >