[Xen-devel] [xen-unstable-smoke test] 113118: trouble: broken/pass

2017-09-06 Thread osstest service owner
flight 113118 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/113118/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken

[Xen-devel] [xen-unstable-smoke test] 113116: trouble: broken/pass

2017-09-06 Thread osstest service owner
flight 113116 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/113116/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken

[Xen-devel] [ovmf baseline-only test] 72070: all pass

2017-09-06 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 72070 ovmf real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/72070/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf b80a4097393c90d041b299ef628e6104612a2586 baseline

[Xen-devel] [xen-4.8-testing test] 113075: regressions - trouble: blocked/broken/fail/pass

2017-09-06 Thread osstest service owner
flight 113075 xen-4.8-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/113075/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken build-arm64-xsm

Re: [Xen-devel] [PATCH] x86: introduce and use setup_force_cpu_cap()

2017-09-06 Thread Sarah Newman
On 09/05/2017 06:22 AM, Jan Beulich wrote: > For XEN_SMEP and XEN_SMAP to not be cleared while bringing up APs we'd > need to clone the respective hack used for CPUID_FAULTING. Introduce an > inverse of setup_clear_cpu_cap() instead, but let clearing of features > overrule forced setting of them.

[Xen-devel] [xen-unstable-smoke test] 113111: trouble: broken/pass

2017-09-06 Thread osstest service owner
flight 113111 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/113111/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken

[Xen-devel] [ovmf test] 113078: all pass - PUSHED

2017-09-06 Thread osstest service owner
flight 113078 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/113078/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf b80a4097393c90d041b299ef628e6104612a2586 baseline version: ovmf

[Xen-devel] [qemu-mainline test] 113073: trouble: blocked/broken/fail/pass

2017-09-06 Thread osstest service owner
flight 113073 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/113073/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken build-arm64-pvops

[Xen-devel] [xtf test] 113077: all pass - PUSHED

2017-09-06 Thread osstest service owner
flight 113077 xtf real [real] http://logs.test-lab.xenproject.org/osstest/logs/113077/ Perfect :-) All tests in this flight passed as required version targeted for testing: xtf 7001ab0503fe91e4962ab270efc88d12412e3cb7 baseline version: xtf

[Xen-devel] [xen-unstable-smoke test] 113108: trouble: broken/pass

2017-09-06 Thread osstest service owner
flight 113108 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/113108/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken

Re: [Xen-devel] [xen-unstable-smoke test] 112957: regressions - trouble: broken/fail/pass

2017-09-06 Thread Dario Faggioli
On Wed, 2017-09-06 at 12:29 -0700, Stefano Stabellini wrote: > On Wed, 6 Sep 2017, Dario Faggioli wrote: > > > > Or, in general, make sense out of the fact that the stack pointer > > register changes in such a way that, when we get back in > > do_softirq(), > > what's in the stack in the place

[Xen-devel] [linux-3.18 test] 113072: trouble: blocked/broken/fail/pass

2017-09-06 Thread osstest service owner
flight 113072 linux-3.18 real [real] http://logs.test-lab.xenproject.org/osstest/logs/113072/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken build-arm64-pvops

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

2017-09-06 Thread osstest service owner
flight 113070 linux-next real [real] http://logs.test-lab.xenproject.org/osstest/logs/113070/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken build-arm64-xsm

[Xen-devel] [xen-unstable-smoke test] 113102: trouble: broken/pass

2017-09-06 Thread osstest service owner
flight 113102 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/113102/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken

[Xen-devel] [ovmf bisection] complete build-amd64-xsm

2017-09-06 Thread osstest service owner
branch xen-unstable xenbranch xen-unstable job build-amd64-xsm testid xen-build Tree: ovmf https://github.com/tianocore/edk2.git Tree: qemu git://xenbits.xen.org/qemu-xen-traditional.git Tree: qemuu git://xenbits.xen.org/qemu-xen.git Tree: xen git://xenbits.xen.org/xen.git *** Found and

Re: [Xen-devel] [xen-unstable-smoke test] 112957: regressions - trouble: broken/fail/pass

2017-09-06 Thread Stefano Stabellini
On Wed, 6 Sep 2017, Dario Faggioli wrote: > On Tue, 2017-09-05 at 15:06 -0700, Stefano Stabellini wrote: > > On Tue, 5 Sep 2017, Dario Faggioli wrote: > > > > > > Re-checking things now, I actually do see that context_switch() on > > > ARM > > > is not 'terminal'. It call schedule_tail(), which

Re: [Xen-devel] [stage1-xen PATCH v1 09/10] build/fedora: Add `RUNNING_STAGE1_XEN.md`

2017-09-06 Thread Stefano Stabellini
On Sun, 27 Aug 2017, Rajiv Ranganath wrote: > Signed-off-by: Rajiv Ranganath This is very detailed, good stuff. I have one question below: > + > +## Booting into Xen > + > +Build and install Xen and stage1-xen. Please see >

[Xen-devel] [linux-linus test] 113067: regressions - trouble: blocked/broken/fail/pass

2017-09-06 Thread osstest service owner
flight 113067 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/113067/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken build-arm64-xsm

Re: [Xen-devel] [stage1-xen PATCH v1 10/10] BUILDING.md: Add Fedora instructions

2017-09-06 Thread Stefano Stabellini
On Sun, 27 Aug 2017, Rajiv Ranganath wrote: > Signed-off-by: Rajiv Ranganath Reviewed-by: Stefano Stabellini > --- > BUILDING.md | 96 > --- > 1 file changed, 91 insertions(+), 5

Re: [Xen-devel] [stage1-xen PATCH v1 07/10] .circleci/config.yml: Add

2017-09-06 Thread Stefano Stabellini
On Sun, 27 Aug 2017, Rajiv Ranganath wrote: > From: Rajiv M Ranganath > > Signed-off-by: Rajiv Ranganath Reviewed-by: Stefano Stabellini > --- > .circleci/config.yml | 21 + > 1 file

Re: [Xen-devel] [stage1-xen PATCH v1 04/10] build/fedora: Add `run` and `components/*` scripts

2017-09-06 Thread Stefano Stabellini
On Sun, 27 Aug 2017, Rajiv Ranganath wrote: > From: Rajiv M Ranganath > > Signed-off-by: Rajiv Ranganath > --- > build/fedora/components/qemu | 50 > build/fedora/components/rkt | 58 >

Re: [Xen-devel] [stage1-xen PATCH v1 08/10] README.md: Add CircleCI badge

2017-09-06 Thread Stefano Stabellini
On Sun, 27 Aug 2017, Rajiv Ranganath wrote: > From: Rajiv M Ranganath > > Signed-off-by: Rajiv Ranganath Reviewed-by: Stefano Stabellini > --- > README.md |2 ++ > 1 file changed, 2 insertions(+) > >

Re: [Xen-devel] [stage1-xen PATCH v1 01/10] .gitignore: Add

2017-09-06 Thread Stefano Stabellini
On Sun, 27 Aug 2017, Rajiv Ranganath wrote: > From: Rajiv M Ranganath > > Signed-off-by: Rajiv Ranganath Reviewed-by: Stefano Stabellini > --- > .gitignore |2 ++ > 1 file changed, 2 insertions(+) >

Re: [Xen-devel] [stage1-xen PATCH v1 02/10] build/fedora: Add `buildroot-README.md`

2017-09-06 Thread Stefano Stabellini
On Sun, 27 Aug 2017, Rajiv Ranganath wrote: > From: Rajiv M Ranganath > > Signed-off-by: Rajiv Ranganath Reviewed-by: Stefano Stabellini > --- > build/fedora/buildroot-README.md | 50 >

Re: [Xen-devel] [stage1-xen PATCH v1 03/10] build/fedora: Add `buildroot-Dockerfile`

2017-09-06 Thread Stefano Stabellini
On Sun, 27 Aug 2017, Rajiv Ranganath wrote: > From: Rajiv M Ranganath > > Signed-off-by: Rajiv Ranganath Reviewed-by: Stefano Stabellini > --- > build/fedora/buildroot-Dockerfile | 113 >

Re: [Xen-devel] [stage1-xen PATCH v1 06/10] build/fedora: Add `xen-unstable-runit/*` scripts

2017-09-06 Thread Stefano Stabellini
On Sun, 27 Aug 2017, Rajiv Ranganath wrote: > From: Rajiv M Ranganath > > Signed-off-by: Rajiv Ranganath The series is much better now thank you. One question: why did you write your own init scripts rather than reusing xencommons (with

[Xen-devel] [xen-unstable-smoke test] 113097: regressions - trouble: broken/fail/pass

2017-09-06 Thread osstest service owner
flight 113097 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/113097/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken test-arm64-arm64-xl-xsm

Re: [Xen-devel] Regarding changing memory for DOM0

2017-09-06 Thread Stefano Stabellini
On Wed, 30 Aug 2017, George John wrote: > Hai all, > Sorry for the delay >  First of all Thank you very much for the quick reply. >    I tried the same with MMC root .It boot up successfully but after typing > xl list I am getting following errors > > libxl: error: libxl.c:662:libxl_list_domain:

[Xen-devel] [PATCH v3 2/2] paravirt, xen: correct xen_nopvspin case

2017-09-06 Thread Juergen Gross
With the boot parameter "xen_nopvspin" specified a Xen guest should not make use of paravirt spinlocks, but behave as if running on bare metal. This is not true, however, as the qspinlock code will fall back to a test-and-set scheme when it is detecting a hypervisor. In order to avoid this

[Xen-devel] [PATCH v3 0/2] guard virt_spin_lock() with a static key

2017-09-06 Thread Juergen Gross
With virt_spin_lock() being guarded by a static key the bare metal case can be optimized by patching the call away completely. In case a kernel running as a guest it can decide whether to use paravitualized spinlocks, the current fallback to the unfair test-and-set scheme, or to mimic the bare

[Xen-devel] [PATCH v3 1/2] paravirt/locks: use new static key for controlling call of virt_spin_lock()

2017-09-06 Thread Juergen Gross
There are cases where a guest tries to switch spinlocks to bare metal behavior (e.g. by setting "xen_nopvspin" boot parameter). Today this has the downside of falling back to unfair test and set scheme for qspinlocks due to virt_spin_lock() detecting the virtualized environment. Add a static key

Re: [Xen-devel] [PATCH v2 1/2] paravirt/locks: use new static key for controlling call of virt_spin_lock()

2017-09-06 Thread Juergen Gross
On 06/09/17 18:13, Waiman Long wrote: > On 09/06/2017 12:04 PM, Peter Zijlstra wrote: >> On Wed, Sep 06, 2017 at 11:49:49AM -0400, Waiman Long wrote: #define virt_spin_lock virt_spin_lock static inline bool virt_spin_lock(struct qspinlock *lock) { + if

Re: [Xen-devel] [PATCH 22/27 v8] xen/arm: vpl011: Add support for vuart console in xenconsole

2017-09-06 Thread Bhupinder Thakur
On 5 September 2017 at 15:01, Wei Liu wrote: > On Mon, Sep 04, 2017 at 09:58:07PM +0530, Bhupinder Thakur wrote: >> Hi Jan, >> >> >> On 28 August 2017 at 14:41, Jan Beulich wrote: >> On 28.08.17 at 10:56, wrote: >> >> ---

Re: [Xen-devel] [PATCH v3 6/6] xen: try to prevent idle timer from firing too often.

2017-09-06 Thread Dario Faggioli
On Tue, 2017-08-29 at 17:30 +0100, George Dunlap wrote: > On 08/18/2017 07:04 PM, Dario Faggioli wrote: > > > > What we're trying to avoid is one of those idle CPUs to > > wake up, only to discover that the grace period is still > > running, and that it hence could have be slept longer > >

[Xen-devel] [xen-unstable-smoke test] 113092: trouble: broken/fail/pass

2017-09-06 Thread osstest service owner
flight 113092 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/113092/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken

Re: [Xen-devel] [PATCH v2 1/2] paravirt/locks: use new static key for controlling call of virt_spin_lock()

2017-09-06 Thread Waiman Long
On 09/06/2017 12:04 PM, Peter Zijlstra wrote: > On Wed, Sep 06, 2017 at 11:49:49AM -0400, Waiman Long wrote: >>> #define virt_spin_lock virt_spin_lock >>> static inline bool virt_spin_lock(struct qspinlock *lock) >>> { >>> + if (!static_branch_likely(_spin_lock_key)) >>> + return

Re: [Xen-devel] [PATCH v2 1/2] paravirt/locks: use new static key for controlling call of virt_spin_lock()

2017-09-06 Thread Peter Zijlstra
On Wed, Sep 06, 2017 at 11:49:49AM -0400, Waiman Long wrote: > > #define virt_spin_lock virt_spin_lock > > static inline bool virt_spin_lock(struct qspinlock *lock) > > { > > + if (!static_branch_likely(_spin_lock_key)) > > + return false; > > if

Re: [Xen-devel] [PATCH v3 5/8] xen: double default grant frame limit for huge hosts

2017-09-06 Thread Wei Liu
On Wed, Sep 06, 2017 at 02:46:50PM +0200, Juergen Gross wrote: > In case a system has memory above the 16TB boundary double the default > grant frame number limit per domain. This ensures a pv domain can still > establish the same number of grants even if it is required to use > version 2 grants

Re: [Xen-devel] [PATCH v3 4/8] xen: make grant resource limits per domain

2017-09-06 Thread Wei Liu
On Wed, Sep 06, 2017 at 02:46:49PM +0200, Juergen Gross wrote: > Instead of using the same global resource limits of grant tables (max. > number of grant frames, max. number of maptrack frames) for all domains > make these limits per domain. This will allow setting individual limits > in the

Re: [Xen-devel] [PATCH v4 13/13] libxl: make pci and usb setdefault function generic

2017-09-06 Thread Oleksandr Grytsov
On Tue, Sep 5, 2017 at 4:06 PM, Wei Liu wrote: > On Tue, Jul 18, 2017 at 05:25:30PM +0300, Oleksandr Grytsov wrote: >> From: Oleksandr Grytsov >> >> Due to changes in device framework setdefault function >> should have same format. Otherwise

Re: [Xen-devel] [PATCH v2 1/2] paravirt/locks: use new static key for controlling call of virt_spin_lock()

2017-09-06 Thread Waiman Long
On 09/06/2017 11:29 AM, Juergen Gross wrote: > There are cases where a guest tries to switch spinlocks to bare metal > behavior (e.g. by setting "xen_nopvspin" boot parameter). Today this > has the downside of falling back to unfair test and set scheme for > qspinlocks due to virt_spin_lock()

Re: [Xen-devel] [PATCH v2 2/2] paravirt, xen: correct xen_nopvspin case

2017-09-06 Thread Waiman Long
On 09/06/2017 11:29 AM, Juergen Gross wrote: > With the boot parameter "xen_nopvspin" specified a Xen guest should not > make use of paravirt spinlocks, but behave as if running on bare > metal. This is not true, however, as the qspinlock code will fall back > to a test-and-set scheme when it is

Re: [Xen-devel] [PATCH v10 0/3] Notify monitor when emulating an unimplemented instruction

2017-09-06 Thread Petre Ovidiu PIRCALABU
Hi Tamas, There are still some loose ends to tie up, but a soon as I will fix then I will try to upstream my patch.  Best regards, Petre On Mi, 2017-09-06 at 09:12 -0600, Tamas K Lengyel wrote: > On Wed, Sep 6, 2017 at 7:48 AM, Petre Pircalabu > wrote: > > > > This

Re: [Xen-devel] [PATCH v5 02/11] vpci: introduce basic handlers to trap accesses to the PCI config space

2017-09-06 Thread Roger Pau Monné
On Mon, Sep 04, 2017 at 09:38:11AM -0600, Jan Beulich wrote: > >>> On 14.08.17 at 16:28, wrote: > > Changes since v4: > >[...] > > * Hypervisor code: > >[...] > > - Constify the data opaque parameter of read handlers. > > Is that a good idea? Such callbacks should

[Xen-devel] [GIT PULL] xen: fixes and features for 4.14

2017-09-06 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-4.14b-rc1-tag xen: fixes and features for 4.14 It contains the following commits: - the new pvcalls backend for routing socket calls from a guest to dom0 - some cleanups of Xen code

Re: [Xen-devel] [PATCH v3 3/8] xen: delay allocation of grant table sub structures

2017-09-06 Thread Wei Liu
On Wed, Sep 06, 2017 at 05:36:54PM +0200, Juergen Gross wrote: > On 06/09/17 17:32, Wei Liu wrote: > > On Wed, Sep 06, 2017 at 05:15:46PM +0200, Juergen Gross wrote: > +grant_table_init(struct domain *d) > +{ > +struct grant_table *gt = d->grant_table; > +unsigned int

Re: [Xen-devel] [PATCH v4 10/13] libxl: change nic to use generec add function

2017-09-06 Thread Oleksandr Grytsov
On Tue, Sep 5, 2017 at 4:03 PM, Wei Liu wrote: > On Tue, Jul 18, 2017 at 05:25:27PM +0300, Oleksandr Grytsov wrote: >> From: Oleksandr Grytsov >> >> Signed-off-by: Oleksandr Grytsov >> diff --git

Re: [Xen-devel] [PATCH v3 3/8] xen: delay allocation of grant table sub structures

2017-09-06 Thread Juergen Gross
On 06/09/17 17:32, Wei Liu wrote: > On Wed, Sep 06, 2017 at 05:15:46PM +0200, Juergen Gross wrote: +grant_table_init(struct domain *d) +{ +struct grant_table *gt = d->grant_table; +unsigned int i, j; + +if ( gt->nr_grant_frames ) +return 0;

Re: [Xen-devel] [PATCH v3 3/8] xen: delay allocation of grant table sub structures

2017-09-06 Thread Wei Liu
On Wed, Sep 06, 2017 at 05:15:46PM +0200, Juergen Gross wrote: > >> +grant_table_init(struct domain *d) > >> +{ > >> +struct grant_table *gt = d->grant_table; > >> +unsigned int i, j; > >> + > >> +if ( gt->nr_grant_frames ) > >> +return 0; > >> + > > > > EBUSY here? I think we

[Xen-devel] [PATCH v3] mm: Don't scrub pages while holding heap lock in alloc_heap_pages()

2017-09-06 Thread Boris Ostrovsky
Instead, preserve PGC_need_scrub bit when setting PGC_state_inuse state while still under the lock and clear those pages later. Note that we still need to grub the lock when clearing PGC_need_scrub bit since count_info might be updated during MCE handling in mark_page_offline(). Signed-off-by:

[Xen-devel] [PATCH v2 0/2] guard virt_spin_lock() with a static key

2017-09-06 Thread Juergen Gross
With virt_spin_lock() being guarded by a static key the bare metal case can be optimized by patching the call away completely. In case a kernel running as a guest it can decide whether to use paravitualized spinlocks, the current fallback to the unfair test-and-set scheme, or to mimic the bare

[Xen-devel] [PATCH v2 1/2] paravirt/locks: use new static key for controlling call of virt_spin_lock()

2017-09-06 Thread Juergen Gross
There are cases where a guest tries to switch spinlocks to bare metal behavior (e.g. by setting "xen_nopvspin" boot parameter). Today this has the downside of falling back to unfair test and set scheme for qspinlocks due to virt_spin_lock() detecting the virtualized environment. Add a static key

[Xen-devel] [PATCH v2 2/2] paravirt, xen: correct xen_nopvspin case

2017-09-06 Thread Juergen Gross
With the boot parameter "xen_nopvspin" specified a Xen guest should not make use of paravirt spinlocks, but behave as if running on bare metal. This is not true, however, as the qspinlock code will fall back to a test-and-set scheme when it is detecting a hypervisor. In order to avoid this

Re: [Xen-devel] [PATCH v3 3/8] xen: delay allocation of grant table sub structures

2017-09-06 Thread Juergen Gross
On 06/09/17 17:11, Wei Liu wrote: > On Wed, Sep 06, 2017 at 02:46:48PM +0200, Juergen Gross wrote: >> diff --git a/xen/common/domain.c b/xen/common/domain.c >> index 5aebcf265f..11eb1778a3 100644 >> --- a/xen/common/domain.c >> +++ b/xen/common/domain.c >> @@ -363,6 +363,9 @@ struct domain

Re: [Xen-devel] [PATCH v10 0/3] Notify monitor when emulating an unimplemented instruction

2017-09-06 Thread Tamas K Lengyel
On Wed, Sep 6, 2017 at 7:48 AM, Petre Pircalabu wrote: > This patchset implements a mechanism which allows XEN to send first an event > if the emulator encountered an unsupported instruction. > The monitor application can choose to mitigate the error, for example to >

Re: [Xen-devel] [PATCH v3 3/8] xen: delay allocation of grant table sub structures

2017-09-06 Thread Wei Liu
On Wed, Sep 06, 2017 at 02:46:48PM +0200, Juergen Gross wrote: > diff --git a/xen/common/domain.c b/xen/common/domain.c > index 5aebcf265f..11eb1778a3 100644 > --- a/xen/common/domain.c > +++ b/xen/common/domain.c > @@ -363,6 +363,9 @@ struct domain *domain_create(domid_t domid, unsigned int >

Re: [Xen-devel] [PATCH] xen-blkfront: emit KOBJ_OFFLINE uevent when detaching device

2017-09-06 Thread Roger Pau Monné
On Wed, Sep 06, 2017 at 12:18:03PM +0200, Juergen Gross wrote: > On 05/09/17 09:28, Vincent Legout wrote: > > Hello, > > > > Sorry for such a long delay. I'm still interested in having this patch > > merged. > > > > I've tried to make the patch more generic and move it to xenbus as > > discussed

[Xen-devel] [xen-unstable-smoke test] 113084: trouble: broken/pass

2017-09-06 Thread osstest service owner
flight 113084 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/113084/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken

Re: [Xen-devel] [PATCH v2] xen: Emit RTC_CHANGE upon TIMEOFFSET ioreq

2017-09-06 Thread Anthony PERARD
On Wed, Aug 23, 2017 at 02:25:05PM +0100, Ross Lagerwall wrote: > When the guest writes to the RTC, Xen emulates it and broadcasts a > TIMEOFFSET ioreq. Emit an RTC_CHANGE QMP event to all QMP monitors when > this happens rather than ignoring it so that something useful can be > done with the

[Xen-devel] Xen 4.8.2 released

2017-09-06 Thread Jan Beulich
All, I am pleased to announce the release of Xen 4.8.2. This is available immediately from its git repository http://xenbits.xen.org/gitweb/?p=xen.git;a=shortlog;h=refs/heads/stable-4.8 (tag RELEASE-4.8.2) or from the XenProject download page

[Xen-devel] [ovmf bisection] complete build-amd64

2017-09-06 Thread osstest service owner
branch xen-unstable xenbranch xen-unstable job build-amd64 testid xen-build Tree: ovmf https://github.com/tianocore/edk2.git Tree: qemu git://xenbits.xen.org/qemu-xen-traditional.git Tree: qemuu git://xenbits.xen.org/qemu-xen.git Tree: xen git://xenbits.xen.org/xen.git *** Found and reproduced

Re: [Xen-devel] [PATCH v2 1/1] public/io/netif.h: add gref mapping control messages

2017-09-06 Thread Joao Martins
On 09/06/2017 02:49 PM, Paul Durrant wrote: >> -Original Message- >> From: Joao Martins [mailto:joao.m.mart...@oracle.com] >> Sent: 01 September 2017 15:51 >> To: Xen-devel >> Cc: Wei Liu ; Paul Durrant ; >> Konrad

Re: [Xen-devel] [PATCH] osstest: fix a typo in mg-repro-setup

2017-09-06 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH] osstest: fix a typo in mg-repro-setup"): > Signed-off-by: Roger Pau Monné Included in my latest push, thanks. Ian. ___ Xen-devel mailing list Xen-devel@lists.xen.org

[Xen-devel] [xen-unstable test] 113063: trouble: blocked/broken/fail/pass

2017-09-06 Thread osstest service owner
flight 113063 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/113063/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken build-arm64-pvops

Re: [Xen-devel] [PATCH v2 1/1] public/io/netif.h: add gref mapping control messages

2017-09-06 Thread Paul Durrant
> -Original Message- > From: Joao Martins [mailto:joao.m.mart...@oracle.com] > Sent: 01 September 2017 15:51 > To: Xen-devel > Cc: Wei Liu ; Paul Durrant ; > Konrad Rzeszutek Wilk ; Joao Martins

[Xen-devel] [PATCH v10 2/3] x86emul: New return code for unimplemented instruction

2017-09-06 Thread Petre Pircalabu
Enforce the distinction between an instruction not implemented by the emulator and the failure to emulate that instruction by defining a new return code, X86EMUL_UNIMPLEMENTED. This value should only be returned by the core emulator only if it fails to properly decode the current instruction's

[Xen-devel] [PATCH v10 0/3] Notify monitor when emulating an unimplemented instruction

2017-09-06 Thread Petre Pircalabu
This patchset implements a mechanism which allows XEN to send first an event if the emulator encountered an unsupported instruction. The monitor application can choose to mitigate the error, for example to singlestep the instruction using the real processor and then resume execution of the normal

[Xen-devel] [PATCH v10 3/3] x86/monitor: Notify monitor if an emulation fails.

2017-09-06 Thread Petre Pircalabu
If case of a vm_event with the emulate_flags set, if the instruction is not implemented by the emulator, the monitor should be notified instead of directly injecting a hw exception. This behavior can be used to re-execute an instruction not supported by the emulator using the real processor (e.g.

[Xen-devel] [PATCH v10 1/3] gitignore: add local vimrc files

2017-09-06 Thread Petre Pircalabu
Signed-off-by: Petre Pircalabu --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 594ffd9..8af9c02 100644 --- a/.gitignore +++ b/.gitignore @@ -27,6 +27,7 @@ cscope.in.out cscope.out cscope.po.out .config +.vimrc

Re: [Xen-devel] [PATCH v4 03/13] libxl: add vdispl device

2017-09-06 Thread Wei Liu
On Wed, Sep 06, 2017 at 04:02:23PM +0300, Oleksandr Grytsov wrote: > On Tue, Sep 5, 2017 at 4:04 PM, Wei Liu wrote: > > On Tue, Sep 05, 2017 at 01:58:53PM +0100, Ian Jackson wrote: > >> Wei Liu writes ("Re: [PATCH v4 03/13] libxl: add vdispl device"): > >> > > +rc =

[Xen-devel] [PATCH v4 3/3] Revert "ACPI: don't call acpi_pcihp_device_plug_cb on xen"

2017-09-06 Thread Anthony PERARD
This reverts commit 153eba4726dfa1bdfc31d1fe973b2a61b9035492. This patch prevents PCI passthrough hotplug on Xen. Even if the Xen tool stack prepares its own ACPI tables, we still rely on QEMU for hotplug ACPI notifications. The original issue is fixed by the two previous patch: hw/acpi: Limit

[Xen-devel] [PATCH v4 2/3] hw/acpi: Move acpi_set_pci_info to pcihp

2017-09-06 Thread Anthony PERARD
HW part of ACPI PCI hotplug in QEMU depends on ACPI_PCIHP_PROP_BSEL being set on a PCI bus that supports ACPI hotplug. It should work regardless of the source of ACPI tables (QEMU generator/legacy SeaBIOS/Xen). So move ACPI_PCIHP_PROP_BSEL initialization into HW ACPI implementation part from

[Xen-devel] [PATCH v4 0/3] Fix hotplug of PCI passthrought device on Xen

2017-09-06 Thread Anthony PERARD
Adding PCI passthrough before the guest start works fine (broken in 2.9 but now fixed), but hotplug does not work anymore. Anthony PERARD (3): hw/acpi: Limit hotplug to root bus on legacy mode hw/acpi: Move acpi_set_pci_info to pcihp Revert "ACPI: don't call acpi_pcihp_device_plug_cb on

[Xen-devel] [PATCH v4 1/3] hw/acpi: Limit hotplug to root bus on legacy mode

2017-09-06 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- New patch in V3 --- hw/acpi/pcihp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/acpi/pcihp.c b/hw/acpi/pcihp.c index c420a388ea..9db3c2eaf2 100644 --- a/hw/acpi/pcihp.c +++ b/hw/acpi/pcihp.c @@ -273,7 +273,7

Re: [Xen-devel] [PATCH 3/4] paravirt: add virt_spin_lock pvops function

2017-09-06 Thread Waiman Long
On 09/06/2017 09:06 AM, Peter Zijlstra wrote: > On Wed, Sep 06, 2017 at 08:44:09AM -0400, Waiman Long wrote: >> On 09/06/2017 03:08 AM, Peter Zijlstra wrote: >>> Guys, please trim email. >>> >>> On Tue, Sep 05, 2017 at 10:31:46AM -0400, Waiman Long wrote: For clarification, I was actually

Re: [Xen-devel] [PATCH v3 8/8] libxl: add libxl support for setting grant table resource limits

2017-09-06 Thread Paul Durrant
> -Original Message- > From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of > Juergen Gross > Sent: 06 September 2017 13:47 > To: xen-devel@lists.xen.org > Cc: Juergen Gross ; sstabell...@kernel.org; Wei Liu > ; George Dunlap

Re: [Xen-devel] [PATCH v3 7/8] libxc: add libxc support for setting grant table resource limits

2017-09-06 Thread Paul Durrant
> -Original Message- > From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of > Juergen Gross > Sent: 06 September 2017 13:47 > To: xen-devel@lists.xen.org > Cc: Juergen Gross ; sstabell...@kernel.org; Wei Liu > ; George Dunlap

Re: [Xen-devel] [PATCH v3 6/8] xen: add new domctl hypercall to set grant table resource limits

2017-09-06 Thread Paul Durrant
> -Original Message- > From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of > Juergen Gross > Sent: 06 September 2017 13:47 > To: xen-devel@lists.xen.org > Cc: Juergen Gross ; sstabell...@kernel.org; Wei Liu > ; George Dunlap

Re: [Xen-devel] [PATCH 3/4] paravirt: add virt_spin_lock pvops function

2017-09-06 Thread Peter Zijlstra
On Wed, Sep 06, 2017 at 08:44:09AM -0400, Waiman Long wrote: > On 09/06/2017 03:08 AM, Peter Zijlstra wrote: > > Guys, please trim email. > > > > On Tue, Sep 05, 2017 at 10:31:46AM -0400, Waiman Long wrote: > >> For clarification, I was actually asking if you consider just adding one > >> more

Re: [Xen-devel] [PATCH v3 3/8] xen: delay allocation of grant table sub structures

2017-09-06 Thread Paul Durrant
> -Original Message- > From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of > Juergen Gross > Sent: 06 September 2017 13:47 > To: xen-devel@lists.xen.org > Cc: Juergen Gross ; sstabell...@kernel.org; Wei Liu > ; George Dunlap

Re: [Xen-devel] [PATCH v4 03/13] libxl: add vdispl device

2017-09-06 Thread Oleksandr Grytsov
On Tue, Sep 5, 2017 at 4:04 PM, Wei Liu wrote: > On Tue, Sep 05, 2017 at 01:58:53PM +0100, Ian Jackson wrote: >> Wei Liu writes ("Re: [PATCH v4 03/13] libxl: add vdispl device"): >> > > +rc = snprintf(connector_path, 128, "%s/%d", path, >> > > info->num_connectors); >>

[Xen-devel] [xen-unstable-coverity test] 113071: all pass - PUSHED

2017-09-06 Thread osstest service owner
flight 113071 xen-unstable-coverity real [real] http://logs.test-lab.xenproject.org/osstest/logs/113071/ Perfect :-) All tests in this flight passed as required version targeted for testing: xen 6dfb43d6f2cd8ea6274d203ca00ecfc7c565f11a baseline version: xen

[Xen-devel] [PATCH v3 8/8] libxl: add libxl support for setting grant table resource limits

2017-09-06 Thread Juergen Gross
Add new domain config items for setting the limits for the maximum numbers of grant table frames and maptrack frames of a domain. Signed-off-by: Juergen Gross --- docs/man/xl.cfg.pod.5.in| 15 +++ tools/libxl/libxl.h | 6 ++ tools/libxl/libxl_dom.c

[Xen-devel] [PATCH v3 3/8] xen: delay allocation of grant table sub structures

2017-09-06 Thread Juergen Gross
Delay the allocation of the grant table sub structures in order to allow modifying parameters needed for sizing of these structures at a per domain basis. Either do it from gnttab_setup_table() or just before the domain is started the first time. Signed-off-by: Juergen Gross ---

[Xen-devel] [PATCH v3 6/8] xen: add new domctl hypercall to set grant table resource limits

2017-09-06 Thread Juergen Gross
Add a domctl hypercall to set the domain's resource limits regarding grant tables. It is accepted only as long as neither gnttab_setup_table() has been called for the domain, nor the domain has started to run. Signed-off-by: Juergen Gross --- V3: - rename *gnttbl* to *gnttab*

[Xen-devel] [PATCH v3 1/8] xen: move XENMAPSPACE_grant_table code into grant_table.c

2017-09-06 Thread Juergen Gross
The x86 and arm versions of XENMAPSPACE_grant_table handling are nearly identical. Move the code into a function in grant_table.c and add an architecture dependant hook to handle the differences. Switch to mfn_t in order to be more type safe. Signed-off-by: Juergen Gross

[Xen-devel] [PATCH v3 7/8] libxc: add libxc support for setting grant table resource limits

2017-09-06 Thread Juergen Gross
Add a new libxc function xc_domain_set_gnttbl_limits() setting the limits for the maximum numbers of grant table frames and maptrack frames of a domain. Signed-off-by: Juergen Gross --- tools/libxc/include/xenctrl.h | 14 ++ tools/libxc/xc_domain.c | 13

[Xen-devel] [PATCH v3 2/8] xen: clean up grant_table.h

2017-09-06 Thread Juergen Gross
Many definitions can be moved from xen/grant_table.h to common/grant_table.c now, as they are no longer used in other sources. Signed-off-by: Juergen Gross Reviewed-by: Paul Durrant Reviewed-by: Wei Liu ---

[Xen-devel] [PATCH v3 0/8] xen: better grant v2 support

2017-09-06 Thread Juergen Gross
Currently Linux has no support for grant v2 as this would reduce the maximum number of active grants by a factor of 2 compared to v1, because the number of possible grants are limited by the allowed number of grant frames and grant entries of v2 need twice as much bytes as those of v1.

[Xen-devel] [PATCH v3 4/8] xen: make grant resource limits per domain

2017-09-06 Thread Juergen Gross
Instead of using the same global resource limits of grant tables (max. number of grant frames, max. number of maptrack frames) for all domains make these limits per domain. This will allow setting individual limits in the future. For now initialize the per domain limits with the global values.

[Xen-devel] [PATCH v3 5/8] xen: double default grant frame limit for huge hosts

2017-09-06 Thread Juergen Gross
In case a system has memory above the 16TB boundary double the default grant frame number limit per domain. This ensures a pv domain can still establish the same number of grants even if it is required to use version 2 grants which need twice the space of v1 grants. Signed-off-by: Juergen Gross

Re: [Xen-devel] [PATCH 3/4] paravirt: add virt_spin_lock pvops function

2017-09-06 Thread Waiman Long
On 09/06/2017 03:08 AM, Peter Zijlstra wrote: > Guys, please trim email. > > On Tue, Sep 05, 2017 at 10:31:46AM -0400, Waiman Long wrote: >> For clarification, I was actually asking if you consider just adding one >> more jump label to skip it for Xen/KVM instead of making >> virt_spin_lock() a

Re: [Xen-devel] [PATCH v4 02/13] libxl: add generic functions to get and free device list

2017-09-06 Thread Oleksandr Grytsov
On Tue, Sep 5, 2017 at 2:51 PM, Wei Liu wrote: > On Tue, Jul 18, 2017 at 05:25:19PM +0300, Oleksandr Grytsov wrote: >> From: Oleksandr Grytsov >> >> Add libxl__device_list and libxl__device_list_free >> functions to handle device list using the

[Xen-devel] [xen-unstable-smoke test] 113074: trouble: broken/pass

2017-09-06 Thread osstest service owner
flight 113074 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/113074/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-arm64 broken

Re: [Xen-devel] [PATCH v9 3/3] tools/libxc: use superpages during restore of HVM guest

2017-09-06 Thread Olaf Hering
On Wed, Sep 06, Andrew Cooper wrote: > If a PVH guest has got MTRRs disabled, then it genuinely can run on an > unshattered 1G superpage at 0. Ok, the code will detect the holes and will release memory as needed. I will drop these two lines. Olaf signature.asc Description: PGP signature

Re: [Xen-devel] [PATCH v9 3/3] tools/libxc: use superpages during restore of HVM guest

2017-09-06 Thread Olaf Hering
On Wed, Sep 06, Andrew Cooper wrote: > I still fail to understand why you need the bitmaps at all? You can > calculate everything you need from the pfn list alone, which will also > let you spot the presence or absence of the VGA hole. These bitmaps track if a range has been allocated as

Re: [Xen-devel] [PATCH v9 3/3] tools/libxc: use superpages during restore of HVM guest

2017-09-06 Thread Andrew Cooper
On 06/09/17 13:17, Olaf Hering wrote: > On Wed, Sep 06, Andrew Cooper wrote: > >> On 01/09/17 17:08, Olaf Hering wrote: >>> +/* No superpage in 1st 2MB due to VGA hole */ >>> +xc_sr_set_bit(0, >x86_hvm.restore.attempted_1g); >>> +xc_sr_set_bit(0, >x86_hvm.restore.attempted_2m); >> This

Re: [Xen-devel] [PATCH v9 3/3] tools/libxc: use superpages during restore of HVM guest

2017-09-06 Thread Olaf Hering
On Wed, Sep 06, Andrew Cooper wrote: > On 01/09/17 17:08, Olaf Hering wrote: > > +/* No superpage in 1st 2MB due to VGA hole */ > > +xc_sr_set_bit(0, >x86_hvm.restore.attempted_1g); > > +xc_sr_set_bit(0, >x86_hvm.restore.attempted_2m); > This is false for PVH guests. How can I detect

Re: [Xen-devel] [PATCH v9 2/3] tools/libxc: add API for bitmap access for restore

2017-09-06 Thread Olaf Hering
On Wed, Sep 06, Andrew Cooper wrote: > On 01/09/17 17:08, Olaf Hering wrote: > > +static inline bool pfn_is_populated(struct xc_sr_context *ctx, xen_pfn_t > > pfn) > > +static inline int pfn_set_populated(struct xc_sr_context *ctx, xen_pfn_t > > pfn) > Why are these moved? They are still

Re: [Xen-devel] [PATCH v9 3/3] tools/libxc: use superpages during restore of HVM guest

2017-09-06 Thread Andrew Cooper
On 01/09/17 17:08, Olaf Hering wrote: > +/* No superpage in 1st 2MB due to VGA hole */ > +xc_sr_set_bit(0, >x86_hvm.restore.attempted_1g); > +xc_sr_set_bit(0, >x86_hvm.restore.attempted_2m); This is false for PVH guests. I still fail to understand why you need the bitmaps at all?

  1   2   >