[Xen-devel] [PATCH v6 20/22] xen/acpi: Fix event-channel interrupt when booting with ACPI

2016-03-19 Thread Shannon Zhao
From: Shannon Zhao Store the event-channel interrupt number and flag in HVM parameter HVM_PARAM_CALLBACK_IRQ. Then Dom0 could get it through hypercall HVMOP_get_param. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini --- xen/arch/arm/domain_build.c | 10 ++ 1 file changed,

Re: [Xen-devel] [PATCH] x86/hvm/viridian: fix the TLB flush hypercall

2016-03-19 Thread Jan Beulich
>>> On 16.03.16 at 14:00, wrote: > --- a/xen/arch/x86/hvm/hvm.c > +++ b/xen/arch/x86/hvm/hvm.c > @@ -2576,12 +2576,9 @@ int hvm_vcpu_initialise(struct vcpu *v) > if ( rc != 0 ) > goto fail6; > > -if ( is_viridian_domain(d) ) > -{ > -rc = viridian_vcpu_init(v); > -

[Xen-devel] [distros-debian-squeeze test] 44250: tolerable trouble: broken/pass

2016-03-19 Thread Platform Team regression test user
flight 44250 distros-debian-squeeze real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/44250/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-amd64-amd64-i386-squeeze-netboot-pygrub 3 host-install(3) broken blocked in 44234 test-a

Re: [Xen-devel] [PATCH v11]xen: sched: convert RTDS from time to event driven model

2016-03-19 Thread Dario Faggioli
On Thu, 2016-03-17 at 12:06 -0400, Tianyang Chen wrote: > The current RTDS code has several problems: >  - the scheduler, although the algorithm is event driven by >    nature, follows a time driven model (is invoked periodically!), >    making the code look unnatural; >  - budget replenishment log

Re: [Xen-devel] [PATCH v7 for Xen 4.7 1/4] xen: enable per-VCPU parameter settings for RTDS scheduler

2016-03-19 Thread Chong Li
On Thu, Mar 17, 2016 at 5:03 AM, Dario Faggioli wrote: > On Wed, 2016-03-16 at 11:47 -0500, Chong Li wrote: > >> --- a/xen/common/sched_rt.c >> +++ b/xen/common/sched_rt.c >> @@ -1129,24 +1145,22 @@ rt_dom_cntl( >> struct vcpu *v; >> unsigned long flags; >> int rc = 0; >> +xen_

[Xen-devel] [PATCH] xen/events: Mask a moving irq

2016-03-19 Thread Boris Ostrovsky
Moving an unmasked irq may result in irq handler being invoked on both source and target CPUs. With 2-level this can happen as follows: On source CPU: evtchn_2l_handle_events() -> generic_handle_irq() -> handle_edge_irq() -> eoi_pirq():

Re: [Xen-devel] FROZEN transitions hotplug notifier

2016-03-19 Thread David Vrabel
On 16/03/16 17:49, Anna-Maria Gleixner wrote: > Hi, > > the hotplug notifieres in the following files don't handle the > corresponding FROZEN transitions: > > arch/arm/xen/enlighten.c > arch/x86/xen/enlighten.c > drivers/xen/events/events_fifo.c > > Is there a reason for it? X

Re: [Xen-devel] [PATCH v7 for Xen 4.7 3/4] libxl: enable per-VCPU parameter settings for RTDS scheduler

2016-03-19 Thread Chong Li
On Wed, Mar 16, 2016 at 11:05 PM, Dario Faggioli wrote: > On Wed, 2016-03-16 at 11:47 -0500, Chong Li wrote: >> Add libxl_vcpu_sched_params_get/set and sched_rtds_vcpu_get/set >> functions to support per-VCPU settings. >> >> +/* Set the RTDS scheduling parameters of all vcpus of a domain */ >> +

[Xen-devel] [PATCH v7 for Xen 4.7 4/4] xl: enable per-VCPU parameter settings for RTDS scheduler

2016-03-19 Thread Chong Li
Change main_sched_rtds and related output functions to support per-VCPU settings. Signed-off-by: Chong Li Signed-off-by: Meng Xu Signed-off-by: Sisu Xi --- Changes on PATCH v6: 1) More explain in xl.pod.1 and cmdtable.c 2) Resolve some coding sytle issues Changes on PATCH v5: 1) Add sched_vcp

[Xen-devel] [PATCH 1/2] xen/x86: Move irq allocation from Xen smp_op.cpu_up()

2016-03-19 Thread Boris Ostrovsky
Commit ce0d3c0a6fb1 ("genirq: Revert sparse irq locking around __cpu_up() and move it to x86 for now") reverted irq locking introduced by commit a89941816726 ("hotplug: Prevent alloc/free of irq descriptors during cpu up/down") because of Xen allocating irqs in both of its cpu_up ops. We can move

[Xen-devel] [PATCH v11]xen: sched: convert RTDS from time to event driven model

2016-03-19 Thread Tianyang Chen
The current RTDS code has several problems: - the scheduler, although the algorithm is event driven by nature, follows a time driven model (is invoked periodically!), making the code look unnatural; - budget replenishment logic, budget enforcement logic and scheduling decisions are mixed

Re: [Xen-devel] [PATCH 03/16] xen: sched: make implementing .alloc_pdata optional

2016-03-19 Thread Meng Xu
On Fri, Mar 18, 2016 at 3:04 PM, Dario Faggioli wrote: > The .alloc_pdata scheduler hook must, before this change, > be implemented by all schedulers --even those ones that > don't need to allocate anything. > > Make it possible to just use the SCHED_OP(), like for > the other hooks, by using ERR_

Re: [Xen-devel] [PATCH] xen/x86: Remap text/data/bss with appropriate permissions

2016-03-19 Thread Jan Beulich
>>> On 17.03.16 at 17:15, wrote: > On 17/03/16 15:32, Jan Beulich wrote: > On 17.03.16 at 15:44, wrote: >>> On 17/03/16 14:31, Jan Beulich wrote: Also - do we really want to make this code dependent on map_pages_to_xen() not intermediately zapping the mappings being changed? >>

[Xen-devel] [PATCH 2/3] Rename p2m_mmio_write_dm to p2m_ioreq_server

2016-03-19 Thread Yu Zhang
Previously p2m type p2m_mmio_write_dm was introduced for write- protected memory pages whose write operations are supposed to be forwarded to and emulated by an ioreq server. Yet limitations of rangeset restricts the number of guest pages to be write-protected. This patch replace the p2m type p2m_

Re: [Xen-devel] [PATCH 2/6] xenalyze: Support for ARM platform

2016-03-19 Thread Andrew Cooper
On 16/03/2016 20:51, Benjamin Sanda wrote: > From: bensanda > > Modified to provide building of the xenalyze binary for ARM platforms. This > was done in conjunction with patches to xentrace allowing its use on ARM. The > xenalyze binary is now built as part of the SBIN list. It should be part

Re: [Xen-devel] [PATCH v3 02/28] xen/x86: Rename features to be closer to the vendor definitions

2016-03-19 Thread Andrew Cooper
On 16/03/16 08:01, Konrad Rzeszutek Wilk wrote: > On Tue, Mar 15, 2016 at 03:34:58PM +, Andrew Cooper wrote: >> These features are soon to be exposed in the Xen public API. Rename them to >> better match the vendor definitions. >> > At the same time they won't match with Linux definitions - wh

[Xen-devel] [PATCH 3/8] tools/hotplug: Write physical-device-path in addition to physical-device

2016-03-19 Thread George Dunlap
Change block-common.sh on Linux to write physical-device-path with the path of the device node, in addition to physical-device with its major:minor numbers. Signed-off-by: George Dunlap --- CC: Ian Jackson CC: Roger Pau Monne CC: Wei Liu --- tools/hotplug/Linux/block-common.sh | 3 ++- 1 fil

Re: [Xen-devel] [PATCH v9]xen: sched: convert RTDS from time to event driven model

2016-03-19 Thread Chen, Tianyang
On 03/16/2016 10:25 AM, Dario Faggioli wrote: +if ( curr_on_cpu(vc->processor) == vc && >+ ( !list_empty(runq) ) ) > So, this is because, since we don't keep the idle vcpus in the runqueues, we need to catch the case where v is running, but no other vcpu is waiting on the r

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

2016-03-19 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 44251 qemu-mainline real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/44251/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl-credit2 15 guest-start/de

Re: [Xen-devel] MTRR on Xen - BIOS use and implications for Linux

2016-03-19 Thread David Vrabel
tl;dr? Somewhere in here are some actual questions which I will attempt to answer. Please try and be more concise in future. On 16/03/16 20:08, Luis R. Rodriguez wrote: > Toshi noted a while ago as well that if BIOS/firmware enables MTRR but > the kernel does not have it enabled one issue might h

[Xen-devel] [PATCH v6 22/22] xen/arm64: Add ACPI support

2016-03-19 Thread Shannon Zhao
From: Naresh Bhat Add ACPI support on arm64 xen hypervisor. Enable EFI support on ARM. Cc: Jan Beulich Signed-off-by: Shannon Zhao Acked-by: Jan Beulich Reviewed-by: Stefano Stabellini --- v6: make CONFIG_ACPI depends on EXPERT --- xen/arch/arm/Kconfig | 9 + xen/common/efi

Re: [Xen-devel] [PATCH v3 09/28] xen/x86: Calculate maximum host and guest featuresets

2016-03-19 Thread Konrad Rzeszutek Wilk
On Tue, Mar 15, 2016 at 03:35:05PM +, Andrew Cooper wrote: > All of this information will be used by the toolstack to make informed > levelling decisions for VMs, and by Xen to sanity check toolstack-provided > information. > > Signed-off-by: Andrew Cooper Reviewed-by: Konrad Rzeszutek Wilk

Re: [Xen-devel] [PATCH v11 14/27] secondary vm suspend/resume/checkpoint code

2016-03-19 Thread Wei Liu
On Thu, Mar 17, 2016 at 05:03:12PM +0800, Changlong Xie wrote: > On 03/05/2016 01:11 AM, Ian Jackson wrote: > >Changlong Xie writes ("[PATCH v11 14/27] secondary vm > >suspend/resume/checkpoint code"): > >>From: Wen Congyang > >> > >>Secondary vm is running in colo mode. So we will do > >>the fol

Re: [Xen-devel] [PATCH] x86/hvm/viridian: fix the TLB flush hypercall

2016-03-19 Thread Paul Durrant
> -Original Message- > From: Andrew Cooper [mailto:andrew.coop...@citrix.com] > Sent: 16 March 2016 13:20 > To: Paul Durrant; xen-de...@lists.xenproject.org > Cc: Keir (Xen.org); Jan Beulich > Subject: Re: [PATCH] x86/hvm/viridian: fix the TLB flush hypercall > > On 16/03/16 13:00, Paul Du

[Xen-devel] CfP 11th Workshop on Virtualization in High-Performance Cloud Computing (VHPC '16)

2016-03-19 Thread VHPC 16
CALL FOR PAPERS 11th Workshop on Virtualization in High­-Performance Cloud Computing (VHPC '16) held in conjunction with the International Supercomputing Conference - High Performance, June 19-23, 2016, Frankfurt, Germany. ===

[Xen-devel] [PATCH v6 06/22] arm/acpi: Prepare STAO table for Dom0

2016-03-19 Thread Shannon Zhao
From: Shannon Zhao Create STAO table for Dom0. This table is used to tell Dom0 whether it should ignore UART defined in SPCR table or the ACPI namespace names. Look at below url for details: http://wiki.xenproject.org/mediawiki/images/0/02/Status-override-table.pdf Signed-off-by: Parth Dixit S

[Xen-devel] [PATCH 4/8] libxl: Move check for local access to a funciton

2016-03-19 Thread George Dunlap
From: George Dunlap Move pygrub checks for local access ability into a separate function. Also reorganize libxl__device_disk_local_initiate_attach so that we don't initialize dls->disk unless we actually end up doing a local attach. Signed-off-by: George Dunlap --- CC: Ian Jackson CC: Wei Liu

[Xen-devel] [PATCH v5 1/2] x86/hvm/viridian: keep APIC assist page mapped...

2016-03-19 Thread Paul Durrant
... for the lifetime of the domain. If Xen is to make use of the APIC assist enlightenment then a persistent mapping needs to be kept, rather than the temporary one which is currently used only to initialize the page content. This patch also adds a comment block at the top of the source with info

[Xen-devel] [PATCH 3/6] xentrace: P2M lookup suport for ARM platform

2016-03-19 Thread Benjamin Sanda
From: bensanda Modified p2m_lookup() to provide support for xentrace on the ARM platform. Added check for DOMID_XEN which skips PFN to MFN translation. xentrace sends a MFN dirrectly when requesting DOMID_XEN, so no translation is needed. Also sets page memory type, p2m_type_t, to p2m_ram_rw t

Re: [Xen-devel] [PATCH v11]xen: sched: convert RTDS from time to event driven model

2016-03-19 Thread Jan Beulich
>>> On 18.03.16 at 05:09, wrote: > Great job! However, we still have 1 mile in the 100-mile journey. :-D > > I applied the patch on staging and tried some test cases. One of them > is as follows: > > I tried to create a cpupool and then migrate a VM to the new cpupool; > However, the system trig

Re: [Xen-devel] Frequent reports about Xen unstable hanging on ARM boots

2016-03-19 Thread Paul Sujkov
Thanks Lars, we're not using 4.7-unstable at the moment, but we'll check this asap. ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

[Xen-devel] [PATCH v6 00/22] Prepare UEFI and ACPI tables for Dom0 on ARM64

2016-03-19 Thread Shannon Zhao
From: Shannon Zhao These patches are Part 4 (and last part) of the previous patch set I sent which adds ACPI support for arm64 on Xen[1]. Split them as an individual set for convenient reviewing. These patches create UEFI and ACPI tables which are mapped to Dom0's space and add other preparation

Re: [Xen-devel] [PATCH v6 01/22] arm/acpi: Estimate memory required for acpi/efi tables

2016-03-19 Thread Julien Grall
Hi Shannon, On 17/03/16 09:40, Shannon Zhao wrote: diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index 83676e4..4e20499 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -12,6 +12,8 @@ #include #include #include +#include +#include

[Xen-devel] [PATCH] x86/hvm/viridian: fix the TLB flush hypercall

2016-03-19 Thread Paul Durrant
Commit b38d426a "flush remote tlbs by hypercall" add support to allow Windows to request flush of remote TLB via hypercall rather than IPI. Unfortunately it seems that this code was broken in a couple of ways: 1) The allocation of the per-vcpu flush mask is gated on whether the domain has virid

[Xen-devel] [PATCH v2 1/2] xsm: only define XSM_MAGIC in xsm.h

2016-03-19 Thread Doug Goldstein
Rather than have XSM_MAGIC set in the global xen/config.h and set in xsm.h if it's unset, just set it once in xsm.h since its only used in files that already include xsm.h Signed-off-by: Doug Goldstein --- CC: Daniel De Graaf --- xen/include/xen/config.h | 1 - xen/include/xsm/xsm.h| 7

Re: [Xen-devel] [PATCH v5 21/22] xen/arm: Add a hypercall for device mmio mapping

2016-03-19 Thread Shannon Zhao
On 2016/3/16 18:04, Jan Beulich wrote: On 16.03.16 at 10:48, wrote: >> On 2016/3/4 18:29, Jan Beulich wrote: > --- a/xen/arch/arm/mm.c > +++ b/xen/arch/arm/mm.c > @@ -1138,6 +1138,9 @@ int xenmem_add_to_physmap_one( > rcu_unlock_domain(od); > break; >>>

Re: [Xen-devel] [PATCH v11 13/27] tools/libx{l, c}: add postcopy/suspend callback to restore side

2016-03-19 Thread Changlong Xie
On 03/05/2016 01:05 AM, Ian Jackson wrote: Changlong Xie writes ("[PATCH v11 13/27] tools/libx{l,c}: add postcopy/suspend callback to restore side"): From: Wen Congyang Secondary(restore side) is running under COLO, we also need postcopy/suspend callbacks. This patch does not provide an imp

[Xen-devel] Outreachy 2016

2016-03-19 Thread Paulina Szubarczyk
​Hi Roger, I am interested in working on the project "QEMU xen-blkback performance analysis and improvements". I am enrolled at ​ ​ master ​ ​ program in the field Computer Science at Warsaw University of Technology(Poland), The Faculty of Electronics and Information Technology. I would like to

Re: [Xen-devel] [PATCH v2 0/2] usb, xen: add pvUSB backend

2016-03-19 Thread Juergen Gross
On 18/03/16 13:52, Gerd Hoffmann wrote: > On Do, 2016-03-10 at 16:19 +0100, Juergen Gross wrote: >> This series adds a Xen pvUSB backend driver to qemu. USB devices >> connected to the host can be passed through to a Xen guest. The >> devices are specified via Xenstore. Access to the devices is don

[Xen-devel] [PATCH v6 07/22] arm/acpi: Prepare XSDT table for Dom0

2016-03-19 Thread Shannon Zhao
From: Shannon Zhao Copy and modify XSDT table before passing it to Dom0. Repalce the entry value of the copied table. Add a new entry for STAO table as well. And keep entry value of other reused tables unchanged. Signed-off-by: Shannon Zhao Acked-by: Stefano Stabellini --- xen/arch/arm/domain

Re: [Xen-devel] [PATCH v7 for Xen 4.7 3/4] libxl: enable per-VCPU parameter settings for RTDS scheduler

2016-03-19 Thread Dario Faggioli
On Wed, 2016-03-16 at 11:47 -0500, Chong Li wrote: > Add libxl_vcpu_sched_params_get/set and sched_rtds_vcpu_get/set > functions to support per-VCPU settings. > Hey, Good job indeed, Chong, this is much better. Now, I appreciate that Wei already Acked this, but nevertheless, I have some comments

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

2016-03-19 Thread Jan Beulich
>>> On 18.03.16 at 12:29, wrote: > osstest service owner writes ("[xen-4.3-testing test] 86445: regressions - > trouble: blocked/broken/fail/pass"): >> flight 86445 xen-4.3-testing real [real] >> http://logs.test-lab.xenproject.org/osstest/logs/86445/ >> >> Regressions :-( >> >> Tests which di

[Xen-devel] [xen-4.6-testing test] 86551: regressions - FAIL

2016-03-19 Thread osstest service owner
flight 86551 xen-4.6-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/86551/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-freebsd10-amd64 10 guest-startfail REGR. vs. 85893 Regressions which

Re: [Xen-devel] [libvirt] [PATCH V2 0/4] Extend to a tristate

2016-03-19 Thread Jim Fehlig
Ping V2 :-). FYI, Joao has {Reviewed,Tested}-by the series. Thanks! Regards, Jim On 03/07/2016 09:02 PM, Jim Fehlig wrote: > On 02/29/2016 09:00 PM, Jim Fehlig wrote: >> An expanded V2 of >> >> https://www.redhat.com/archives/libvir-list/2016-February/msg00140.html >> >> In V2, the feature is e

[Xen-devel] [PATCH] blktap2: Invalid logic detecting unaligned buffers in vhd_write_block

2016-03-19 Thread Ross Philipson
It seems the logic is meant to detect sector unaligned buffers for block writes. The NOTing of the logic instead masks off any unaligned bits and also would cause the function to always fail. It seems the function is not used in any of the tools so that is probably why the problem is not seen. In t

Re: [Xen-devel] [PATCH v3 22/28] tools/libxc: Modify bitmap operations to take void pointers

2016-03-19 Thread Wei Liu
On Tue, Mar 15, 2016 at 03:35:18PM +, Andrew Cooper wrote: > The type of the pointer to a bitmap is not interesting; it does not affect the > representation of the block of bits being pointed to. > > Make the libxc functions consistent with those in Xen, so they can work just > as well with 'u

[Xen-devel] [PATCH v6 02/17] xen/grant-table: Move xlated_setup_gnttab_pages to common place

2016-03-19 Thread Shannon Zhao
From: Shannon Zhao Move xlated_setup_gnttab_pages to common place, so it can be reused by ARM to setup grant table. Rename it to xen_xlate_map_ballooned_pages. Signed-off-by: Shannon Zhao Reviewed-by: Stefano Stabellini --- arch/x86/xen/grant-table.c | 57 +---

[Xen-devel] FROZEN transitions hotplug notifier

2016-03-19 Thread Anna-Maria Gleixner
Hi, the hotplug notifieres in the following files don't handle the corresponding FROZEN transitions: arch/arm/xen/enlighten.c arch/x86/xen/enlighten.c drivers/xen/events/events_fifo.c Is there a reason for it? Anna-Maria ___ Xen-dev

Re: [Xen-devel] [PATCH v3 2/2] x86/hvm/viridian: Enable APIC assist enlightenment

2016-03-19 Thread Wei Liu
On Wed, Mar 16, 2016 at 05:44:12PM +, Paul Durrant wrote: > This patch adds code to enable the APIC assist enlightenment which, > under certain conditions, means that the guest can avoid an EOI of > the local APIC and thereby avoid a VMEXIT. > > Use of the enlightenment by the hypervisor is un

[Xen-devel] [PATCH v7 0/2] VT-d Device-TLB flush issue

2016-03-19 Thread Quan Xu
1. Reduce spin timeout to 1ms, which can be boot-time changed with 'vtd_qi_timeout'. For example: multiboot /boot/xen.gz ... vtd_qi_timeout=100 ... 2. Fix vt-d Device-TLB flush timeout issue. If Device-TLB flush timed out, we would hide the target ATS device and crash the doma

[Xen-devel] [distros-debian-stretch test] 44260: tolerable trouble: blocked/broken

2016-03-19 Thread Platform Team regression test user
flight 44260 distros-debian-stretch real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/44260/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): build-armhf-pvops 3 host-install(3) broken like 44244 build-armhf

Re: [Xen-devel] List of projects for 4.7

2016-03-19 Thread Olaf Hering
On Fri, Mar 18, Wei Liu wrote: > Today is that last posting day for new features. And we are two weeks > away from the anticipated freeze date. What about features which got posted weeks ago already, namely pvscsi? I should probably rebase ontop of pvusb, but the beef remains the same. Olaf ___

Re: [Xen-devel] [PATCH] x86: put kexec_reloc in its own section

2016-03-19 Thread Andrew Cooper
On 17/03/16 16:17, Jan Beulich wrote: > Since it wants to be page aligned, this alignment would force pointless > alignment of .text in the intermediate built_in.o file(s), needlessly > growing the overall text and binary size. > > Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper _

[Xen-devel] [PATCH v6 05/17] xen: memory : Add new XENMAPSPACE type XENMAPSPACE_dev_mmio

2016-03-19 Thread Shannon Zhao
From: Shannon Zhao Add a new type of Xen map space for Dom0 to map device's MMIO region. Signed-off-by: Shannon Zhao --- include/xen/interface/memory.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/xen/interface/memory.h b/include/xen/interface/memory.h index 2ecfe4f..9aa8988 100

Re: [Xen-devel] [PATCH v6 22/22] xen/arm64: Add ACPI support

2016-03-19 Thread Jan Beulich
>>> On 17.03.16 at 14:10, wrote: > > On 2016/3/17 19:31, Jan Beulich wrote: > On 17.03.16 at 12:03, wrote: >>> > On 2016/3/17 18:52, Jan Beulich wrote: >>> > On 17.03.16 at 10:41, wrote: >> >>> > --- a/xen/include/asm-arm/config.h >> >>> > +++ b/xen/include/asm-arm/config.h

Re: [Xen-devel] [PATCH v7 2/2] VT-d: Fix vt-d Device-TLB flush timeout issue

2016-03-19 Thread Tian, Kevin
> From: Xu, Quan > Sent: Thursday, March 17, 2016 3:13 PM > diff --git a/xen/drivers/passthrough/vtd/qinval.c > b/xen/drivers/passthrough/vtd/qinval.c > index 37a15fb..2a5c638 100644 > --- a/xen/drivers/passthrough/vtd/qinval.c > +++ b/xen/drivers/passthrough/vtd/qinval.c > @@ -233,6 +233,57 @@ in

Re: [Xen-devel] [PATCH v5 2/2] x86/hvm/viridian: Enable APIC assist enlightenment

2016-03-19 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 17 March 2016 16:43 > To: Paul Durrant > Cc: Andrew Cooper; Wei Liu; Ian Jackson; Stefano Stabellini; xen- > de...@lists.xenproject.org; Keir (Xen.org) > Subject: Re: [PATCH v5 2/2] x86/hvm/viridian: Enable APIC ass

Re: [Xen-devel] [PATCH v7 2/2] VT-d: Fix vt-d Device-TLB flush timeout issue

2016-03-19 Thread Xu, Quan
On March 18, 2016 7:19pm, wrote: > >>> On 17.03.16 at 08:12, wrote: > > --- a/xen/drivers/passthrough/vtd/qinval.c > > +++ b/xen/drivers/passthrough/vtd/qinval.c > > @@ -233,6 +233,57 @@ int qinval_device_iotlb(struct iommu *iommu, > > return 0; > > } > > > > +static void dev_invalidate_iot

Re: [Xen-devel] [PATCH 1/6] Flask: Support for ARM xentrace

2016-03-19 Thread Julien Grall
(+ Daniel De Graaf maintainer of the XSM/Flask code) On 16/03/16 20:51, Benjamin Sanda wrote: From: bensanda Modified to provide support for xentrace on the ARM platform. Added flask credential to allow dom0 dom_xen mapping and write access for trace buffers. Signed-off-by: Benjamin Sanda -

Re: [Xen-devel] [PATCH 2/2] IOMMU/MMU: Adjust low level functions for VT-d Device-TLB flush error.

2016-03-19 Thread George Dunlap
On Thu, Mar 17, 2016 at 6:54 AM, Quan Xu wrote: > Current code would be panic(), when VT-d Device-TLB flush timed out. > the panic() is going to be eliminated, so we must check all kinds of > error and all the way up the call trees. > > Signed-off-by: Quan Xu > > CC: Jun Nakajima > CC: Kevin Tia

Re: [Xen-devel] [PATCH v6 19/22] hvm/params: Add a new delivery type for event-channel in HVM_PARAM_CALLBACK_IRQ

2016-03-19 Thread Jan Beulich
>>> On 17.03.16 at 12:56, wrote: > > On 2016/3/17 19:29, Jan Beulich wrote: > On 17.03.16 at 12:04, wrote: >>> On 2016/3/17 18:42, Jan Beulich wrote: >>> On 17.03.16 at 10:41, wrote: >> --- a/xen/include/public/hvm/params.h >> +++ b/xen/include/public/hvm/params.h >> @@ -49

[Xen-devel] [PATCH v7 1/2] VT-d: Reduce spin timeout to 1ms, which can be boot-time changed

2016-03-19 Thread Quan Xu
Signed-off-by: Quan Xu --- docs/misc/xen-command-line.markdown | 7 +++ xen/drivers/passthrough/vtd/qinval.c | 19 +++ 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/docs/misc/xen-command-line.markdown b/docs/misc/xen-command-line.markdown index ca77e3b..38

[Xen-devel] [PATCH v6 12/22] arm/acpi: Prepare EFI memory descriptor for Dom0

2016-03-19 Thread Shannon Zhao
From: Shannon Zhao Create a few EFI memory descriptors to tell Dom0 the RAM region information, ACPI table regions and EFI tables reserved resions. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- v6: remove acpi_diabled check --- xen/arch/arm/domain_build.c | 2 ++ xen/arch/arm/ef

Re: [Xen-devel] [PATCH v5 2/2] x86/hvm/viridian: Enable APIC assist enlightenment

2016-03-19 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 18 March 2016 10:25 > To: Paul Durrant > Cc: Andrew Cooper; Ian Jackson; Stefano Stabellini; Wei Liu; xen- > de...@lists.xenproject.org; Keir (Xen.org) > Subject: RE: [PATCH v5 2/2] x86/hvm/viridian: Enable APIC ass

Re: [Xen-devel] [SeaBIOS] Xen PV block device support in Seabios

2016-03-19 Thread Shannon Zhao
On 2016/3/16 20:22, Ian Campbell wrote: > On Wed, 2016-03-16 at 20:13 +0800, Shannon Zhao wrote: >> > >> > On 2016/3/16 19:20, Ian Campbell wrote: >>> > > >>> > > (nb, my citrix.com email is no longer valid) >>> > > On Wed, 2016-03-16 at 11:33 +0800, Shannon Zhao wrote: > > > > > > >

[Xen-devel] [PATCH 1/8] tools/hotplug: Add a "dummy" hotplug script for testing

2016-03-19 Thread George Dunlap
From: George Dunlap Testing the hotplug external script path at the moment involves actually setting up one of the alternate datapaths (blktap, iscsi, &c). Simplify testing by making a script which does a simple loopback, but still has a target that can't be used directly. To use: script=block

Re: [Xen-devel] [PATCH v3 08/28] xen/x86: Annotate VM applicability in featureset

2016-03-19 Thread Jan Beulich
>>> On 15.03.16 at 16:35, wrote: > v3: > * Rebase over the new namespaceing changes. > * Expand commit message. > * Correct PSE36 to being a HAP-only feature. As Tim has pointed out on IRC, this may need revisiting. > +XEN_CPUFEATURE(MCE, 0*32+ 7) /*A Machine Check Architecture */

Re: [Xen-devel] [PATCH v6 for Xen 4.7 1/4] xen: enable per-VCPU parameter settings for RTDS scheduler

2016-03-19 Thread Dario Faggioli
On Wed, 2016-03-16 at 09:46 -0500, Chong Li wrote: > On Wed, Mar 16, 2016 at 3:23 AM, Dario Faggioli > wrote: > >  > > I continue to think that it could be useful to have this logged, > > but > > I'm leaning toward just killing it for now (and maybe finding > > another > > way to check and warn ab

Re: [Xen-devel] [PATCH] docs: update FLASK cmd line instructions

2016-03-19 Thread Doug Goldstein
On 3/15/16 3:43 PM, Konrad Rzeszutek Wilk wrote: > On Tue, Mar 15, 2016 at 03:40:19PM -0500, Doug Goldstein wrote: >> On 3/15/16 3:24 PM, Konrad Rzeszutek Wilk wrote: >>> On Mon, Mar 14, 2016 at 07:37:39PM -0500, Doug Goldstein wrote: The command line instructions for FLASK include a note on h

Re: [Xen-devel] [PATCH 2/3] libxl: add domain config parameter to force start of qemu

2016-03-19 Thread George Dunlap
On Thu, Mar 10, 2016 at 3:00 PM, Juergen Gross wrote: > Today the device model (qemu) is started for a pv domain only in case > a device requiring qemu is specified in the domain configuration > (qdisk, vfb, channel). If there is no such device the device model > isn't started and hence it is poss

Re: [Xen-devel] Xen 4.6 --with-ovmf, on UEFI Dom0 host up/running, but logging repeated "d1v0 Over-allocation for domain" ?

2016-03-19 Thread PGNet Dev
In Dom0: xenstore-ls -f /local/domain/$guest_domid and paste it here. xl list NameID Mem VCPUs State Time(s) Domain-0 0 4096 1 r- 111.3 test-template1 2049

[Xen-devel] [PATCH 2/2] IOMMU/MMU: Adjust low level functions for VT-d Device-TLB flush error.

2016-03-19 Thread Quan Xu
Current code would be panic(), when VT-d Device-TLB flush timed out. the panic() is going to be eliminated, so we must check all kinds of error and all the way up the call trees. Signed-off-by: Quan Xu CC: Jun Nakajima CC: Kevin Tian CC: George Dunlap CC: Keir Fraser CC: Jan Beulich CC: And

[Xen-devel] [PATCH 08/16] xen: sched: prepare a .switch_sched hook for Credit2

2016-03-19 Thread Dario Faggioli
RTDS is basically identical to Credit2, as far as scheduler lock (re)mapping is concerned. Therefore, the same analisys and considerations expressed for the previous patch ("xen: sched: prepare a .switch_sched hook for Credit2"), applies to it to. This patch, therefore, introduces the switch_sched

Re: [Xen-devel] rcu_sched self-detected stall on CPU on kernel 4.4.5 in PV DomU

2016-03-19 Thread Steven Haigh
On 19/03/2016 8:40 AM, Steven Haigh wrote: > Hi all, > > So I'd just like to give this a prod. I'm still getting DomU's randomly > go to 100% CPU usage using kernel 4.4.6 now. It seems running 4.4.6 as > the DomU does not induce these problems. Sorry - slight correction. Running 4.4.6 as the Dom0

[Xen-devel] [linux-mingo-tip-master test] 86535: regressions - FAIL

2016-03-19 Thread osstest service owner
flight 86535 linux-mingo-tip-master real [real] http://logs.test-lab.xenproject.org/osstest/logs/86535/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-rumpuserxen6 xen-build fail REGR. vs. 60684 test-amd64

Re: [Xen-devel] Frequent reports about Xen unstable hanging on ARM boots

2016-03-19 Thread Юрій Коноваленко
Hi, Lars! We've just verified current master (Xen 4.7-unstable) on our DRA7 setup. Everything works fine, issue is not reproduced. There are a lot of strange things in this setup: 1. It seems like there are problems with UART driver detection in Xen. It is because of incorrect command line: (XEN)

Re: [Xen-devel] [PATCH v10]xen: sched: convert RTDS from time to event driven model

2016-03-19 Thread Dario Faggioli
On Thu, 2016-03-17 at 00:17 -0400, Tianyang Chen wrote: > The current RTDS code has several problems: >  - The scheduler, although the algorithm is event driven by >    nature, follows a time driven model (is invoked periodically!), >    making the code looks unnatural;                      ^look

Re: [Xen-devel] [PATCH v9]xen: sched: convert RTDS from time to event driven model

2016-03-19 Thread Dario Faggioli
On Wed, 2016-03-16 at 10:20 -0400, Meng Xu wrote: > As to the comment, I will suggest: > > /* >  * RTDS_was_depleted: Is a vcpus budget depleted? > >  * + Set in burn_budget() when a vcpus budget turns to zero > >  * + Checked and cleared in repl_handler() to replenish the budget > >  */ > > W

Re: [Xen-devel] [PATCH 4/5] x86/time: refactor read_platform_stime()

2016-03-19 Thread Andrew Cooper
On 17/03/16 16:12, Joao Martins wrote: > To fetch the last read from the clocksource which was used to > calculate system_time. In the case of clocksource=tsc we will > use it to set tsc_timestamp. > > Signed-off-by: Joao Martins Again, just minor style issues. Reviewed-by Andrew Cooper > ---

Re: [Xen-devel] [PATCH 2/2] x86/mtrr: Refactor PAT initialization code

2016-03-19 Thread Luis R. Rodriguez
On Mar 17, 2016 2:04 PM, "Toshi Kani" wrote: > > On Wed, 2016-03-16 at 00:29 +0100, Luis R. Rodriguez wrote: > > On Tue, Mar 15, 2016 at 05:48:44PM -0600, Toshi Kani wrote: > > > On Tue, 2016-03-15 at 01:15 +0100, Luis R. Rodriguez wrote: > > > > On Fri, Mar 11, 2016 at 06:16:36PM -0700, Toshi Kan

[Xen-devel] [V4] x86/xsaves: calculate the xstate_comp_offsets base on xstate_bv

2016-03-19 Thread Shuai Ruan
Previous patch using all available features calculate xstate_comp_offsets. This is wrong.This patch fix this bug by calculating the xstate_comp_offset based on xstate_bv of current guest. Also, the xstate_comp_offset should take alignment into consideration. Signed-off-by: Shuai Ruan Reported-by:

Re: [Xen-devel] [PATCH 1/2] IOMMU/MMU: Adjust top level functions for VT-d Device-TLB flush error.

2016-03-19 Thread Jan Beulich
>>> On 17.03.16 at 07:54, wrote: > @@ -53,11 +55,21 @@ static int device_power_down(void) > > ioapic_suspend(); > > -iommu_suspend(); > +err = iommu_suspend(); > +if ( err ) > +goto iommu_suspend_error; > > lapic_suspend(); > > return 0; > + > +iommu_susp

[Xen-devel] [PATCH v2 2/2] x86/hvm/viridian: Enable APIC assist enlightenment

2016-03-19 Thread Paul Durrant
This patch adds code to enable the APIC assist enlightenment which, under certain conditions, means that the guest can avoid an EOI of the local APIC and thereby avoid a VMEXIT. Use of the enlightenment by the hypervisor is under control of the toolstack, and is added to the default set. Signed-o

[Xen-devel] [PATCH v2] x86/hvm/viridian: fix the TLB flush hypercall

2016-03-19 Thread Paul Durrant
Commit b38d426a "flush remote tlbs by hypercall" add support to allow Windows to request flush of remote TLB via hypercall rather than IPI. Unfortunately it seems that this code was broken in a couple of ways: 1) The allocation of the per-vcpu ipi mask is gated on whether the domain has viridia

Re: [Xen-devel] [PATCH v3 28/28] tools/libxc: Calculate xstate cpuid leaf from guest information

2016-03-19 Thread Wei Liu
On Tue, Mar 15, 2016 at 03:35:24PM +, Andrew Cooper wrote: > It is unsafe to generate the guests xstate leaves from host information, as it > prevents the differences between hosts from being hidden. > > Signed-off-by: Andrew Cooper Acked-by: Wei Liu ___

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

2016-03-19 Thread osstest service owner
flight 86490 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/86490/ 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 v4 12/34] xen/xsplice: Hypervisor implementation of XEN_XSPLICE_op

2016-03-19 Thread Julien Grall
Hi Konrad, On 15/03/2016 17:56, Konrad Rzeszutek Wilk wrote: diff --git a/xen/common/Kconfig b/xen/common/Kconfig index 8fbc46d..dbe9ccc 100644 --- a/xen/common/Kconfig +++ b/xen/common/Kconfig @@ -168,4 +168,15 @@ config SCHED_DEFAULT endmenu +# Enable/Disable xsplice support +config XSPLIC

[Xen-devel] [PATCH v2] xen/x86: Remap text/data/bss with appropriate permissions

2016-03-19 Thread Andrew Cooper
c/s cf39362 "x86: use 2M superpages for text/data/bss mappings" served two purposes; to map the primary code and data with appropriate pagetable permissions (rather than unilaterally RWX), and to reduce the TLB pressure. The extra alignment exposed a SYSLinux issue, and was partly reverted by c/s

Re: [Xen-devel] [PATCH v11 08/27] libxc/migration: Specification update for DIRTY_PFN_LIST records

2016-03-19 Thread Changlong Xie
On 03/05/2016 12:53 AM, Ian Jackson wrote: Changlong Xie writes ("[PATCH v11 08/27] libxc/migration: Specification update for DIRTY_PFN_LIST records"): From: Wen Congyang Used by secondary to send it's dirty bitmap to primary under COLO. Again, I think this will want a review from Andrew Co

Re: [Xen-devel] [PATCH 6/8] libxl: Allow local access for block devices with hotplug scripts

2016-03-19 Thread Ian Jackson
George Dunlap writes ("[PATCH 6/8] libxl: Allow local access for block devices with hotplug scripts"): > pygrub and qemuu need to be able to access a VM's disks locally in > order to be able to pull out the kernel and provide emulated disk > access, respectively. This can be done either by access

Re: [Xen-devel] [PATCH v5 19/22] hvm/params: Add a new delivery type for event-channel in HVM_PARAM_CALLBACK_IRQ

2016-03-19 Thread Konrad Rzeszutek Wilk
On Wed, Mar 16, 2016 at 04:34:19PM +, Julien Grall wrote: > Hi Konrad, > > On 04/03/2016 21:19, Konrad Rzeszutek Wilk wrote: > >Anyhow what I am wondering if there are some semantincs when it comes to PPI > >and it being able to 'mask' an vector until it exits or such? If so > >you should docu

[Xen-devel] [PATCH v4 1/2] x86/hvm/viridian: keep APIC assist page mapped...

2016-03-19 Thread Paul Durrant
... for the lifetime of the domain. If Xen is to make use of the APIC assist enlightenment then a persistent mapping needs to be kept, rather than the temporary one which is currently used only to initialize the page content. This patch also adds a comment block at the top of the source with info

[Xen-devel] [PATCH] xen/x86: Remap text/data/bss with appropriate permissions

2016-03-19 Thread Andrew Cooper
c/s cf39362 "x86: use 2M superpages for text/data/bss mappings" served two purposes; to map the primary code and data with appropriate pagetable permissions (rather than unilaterally RWX), and to reduce the TLB pressure. The extra alignment exposed a SYSLinux issue, and was partly reverted by c/s

[Xen-devel] [PATCH 1/6] Flask: Support for ARM xentrace

2016-03-19 Thread Benjamin Sanda
From: bensanda Modified to provide support for xentrace on the ARM platform. Added flask credential to allow dom0 dom_xen mapping and write access for trace buffers. Signed-off-by: Benjamin Sanda --- tools/flask/policy/policy/modules/xen/xen.te | 2 ++ 1 file changed, 2 insertions(+) diff --

Re: [Xen-devel] [PATCH 04/16] xen: sched: implement .init_pdata in all schedulers

2016-03-19 Thread Meng Xu
On Fri, Mar 18, 2016 at 3:04 PM, Dario Faggioli wrote: > by borrowing some of the code of .alloc_pdata, i.e., > the bits that perform initializations, leaving only > actual allocations in there, when any, which is the > case for Credit1 and RTDS. I didn't follow the commit log. I think the reason

[Xen-devel] [PATCH 0/6] Enhance PAT init to fix Xorg crashes

2016-03-19 Thread Toshi Kani
A Xorg failure on qemu32 was reported as a regression caused by 'commit 9cd25aac1f44 ("x86/mm/pat: Emulate PAT when it is disabled")'. [1] This patch-set fixes the regression. Negative effects of this regression were two failures in Xorg on qemu32 env, which were triggered by the fact that its vir

Re: [Xen-devel] [PATCH v11]xen: sched: convert RTDS from time to event driven model

2016-03-19 Thread Chen, Tianyang
On 03/17/2016 02:27 PM, Dario Faggioli wrote: Finally, when waking up a vcpu, it is now enough to tickle the various CPUs appropriately, like all other schedulers also do. Signed-off-by: Tianyang Chen Signed-off-by: Meng Xu Signed-off-by: Dagaen Golomb You seem to have taken care of all m

Re: [Xen-devel] [SeaBIOS] Xen PV block device support in Seabios

2016-03-19 Thread Ian Campbell
(nb, my citrix.com email is no longer valid) On Wed, 2016-03-16 at 11:33 +0800, Shannon Zhao wrote: > Hi, > > I noticed there are some efforts to add Xen PV block device support in > Seabios in a GSoC project and there is a wiki page [1] for it. I found > some patches [2] to add Xenstore R/W suppo

[Xen-devel] [PATCH v6 14/22] arm/acpi: Create min DT stub for Dom0

2016-03-19 Thread Shannon Zhao
From: Shannon Zhao Create a DT for Dom0 for ACPI-case only. DT contains minimal required informations such as Dom0 bootargs, initrd, efi description table and address of uefi memory table. Also port the document of this device tree bindings from Linux. Signed-off-by: Naresh Bhat Signed-off-by:

Re: [Xen-devel] [PATCH v4 04/14] firmware/makefile: install BIOS blob ...

2016-03-19 Thread Doug Goldstein
On 3/14/16 12:55 PM, Anthony PERARD wrote: > ... into the firmware directory, along with hvmloader. > > Signed-off-by: Anthony PERARD > --- > Change in V4: > - remove install of acpi dsdt table > > Change in V3: > - do not check if ROMs file exist before installing, they should exist > - change

<    1   2   3   4   5   6   >