Re: [Xen-devel] [PATCH] libxc: correct error message in xc_sr_common.c

2017-08-10 Thread Wei Liu
On Thu, Aug 10, 2017 at 01:24:27PM +0200, Juergen Gross wrote: > When the record length for sending the p2m frames in a migration > stream is too large, the issued error message is not very helpful: > > xc: Record (0x0003, x86 PV P2M frames) length 0x8 exceeds max > (0x80): Internal

Re: [Xen-devel] [PATCH] xsm/flask: Fix build following "xsm: correct AVC lookups for two sysctls"

2017-08-10 Thread Andrew Cooper
On 10/08/17 15:09, Daniel De Graaf wrote: > On 08/10/2017 09:17 AM, Andrew Cooper wrote: >> avc_current_has_perm() takes 4 arguments, not 3. Spotted by a Travis >> randconfig run which actually turned XSM on. >> >> Signed-off-by: Andrew Cooper > > Whoops, looks like I

Re: [Xen-devel] [RFC PATCH v1 2/7] iommu/arm: ipmmu-vmsa: Add Xen changes for main driver

2017-08-10 Thread Julien Grall
Hi, On 10/08/17 15:27, Oleksandr Tyshchenko wrote: On Tue, Aug 8, 2017 at 2:34 PM, Julien Grall wrote: On 26/07/17 16:09, Oleksandr Tyshchenko wrote: @@ -355,6 +557,10 @@ static struct hw_register *root_pgtable[IPMMU_CTX_MAX] = { static bool ipmmu_is_root(struct

Re: [Xen-devel] [PATCH 00/25 v7] SBSA UART emulation support in Xen

2017-08-10 Thread Wei Liu
On Thu, Aug 10, 2017 at 03:26:07PM +0100, Julien Grall wrote: > > > On 09/08/17 11:58, Bhupinder Thakur wrote: > > Hi Julien, > > Hi Bhupinder, > > > Thanks for the testing. > > > > On 8 August 2017 at 21:29, Julien Grall wrote: > > > Hi Bhupinder, > > > > > > I gave

Re: [Xen-devel] [PATCH 46/52] xen: carve out a generic parsing function from _cmdline_parse()

2017-08-10 Thread Wei Liu
On Wed, Aug 09, 2017 at 09:07:00AM +0200, Juergen Gross wrote: > In order to support generic parameter parsing carve out the parser from > _cmdline_parse(). As this generic function might be called after boot > remove the __init annotations from all called sub-functions. > > Cc: Andrew Cooper

Re: [Xen-devel] [Bug] 4.12 kernel dom0 always reboot on xen 4.9 efi

2017-08-10 Thread Jan Beulich
>>> On 10.08.17 at 13:09, wrote: > On my SKL/KBL machine, upstream 4.12 kernel dom0 couldn't boot up using > xen.efi which is xen 4.9 > > > (1) Upstream 4.11 kernel doesn't have such issue. > > (2) Upstream 4.12 kernel on my native uefi machine could boot up.

Re: [Xen-devel] [PATCH 3/3] x86/vsmp: remove vsmp paravirt support

2017-08-10 Thread Shai Fultheim (s...@scalemp.com)
NACK. This is needed and used by thousands of installations. Shai Fultheim | M +1 (408) 480-1612 | E s...@scalemp.com This email message and any attachments to it are ScaleMP confidential information. -Original Message- From:

Re: [Xen-devel] [PATCH 3/3] x86/vsmp: remove vsmp paravirt support

2017-08-10 Thread Juergen Gross
On 10/08/17 17:28, Shai Fultheim (s...@scalemp.com) wrote: > NACK. This is needed and used by thousands of installations. Okay, thanks for reacting so fast. Will drop the patch. Juergen > > > > Shai Fultheim | M +1 (408) 480-1612 | E

Re: [Xen-devel] [PATCH 4/7] arm: smccc: handle SMCs according to SMCCC

2017-08-10 Thread Julien Grall
On 10/08/17 16:33, Volodymyr Babchuk wrote: Hi Julien, On 09.08.17 13:10, Julien Grall wrote: Hi Volodymyr, CC "THE REST" maintainers to get an opinion on the public headers. On 08/08/17 21:08, Volodymyr Babchuk wrote: SMCCC (SMC Call Convention) describes how to handle both HVCs and

Re: [Xen-devel] [PATCH 39/52] xen: check parameter validity when parsing command line

2017-08-10 Thread Juergen Gross
On 10/08/17 15:32, Jan Beulich wrote: On 10.08.17 at 15:24, wrote: >> @@ -176,7 +200,8 @@ int __init parse_bool(const char *s) >> !strcmp("on", s) || >> !strcmp("true", s) || >> !strcmp("enable", s) || >> - !strcmp("1", s) ) >> +

Re: [Xen-devel] [PATCH 5/5] xen: RCU: avoid busy waiting until the end of grace period.

2017-08-10 Thread Dario Faggioli
On Wed, 2017-08-09 at 19:34 +0200, Dario Faggioli wrote: > On Mon, 2017-08-07 at 02:54 -0600, Jan Beulich wrote: > > > > > Dario Faggioli 07/27/17 10:01 AM > > > +/* > > > + * Timer for making sure the CPU where a callback is queued does > > > + * periodically poke

Re: [Xen-devel] [RFC PATCH v2 01/22] ARM: vGIC: introduce and initialize pending_irq lock

2017-08-10 Thread Julien Grall
Hi Andre, On 21/07/17 20:59, Andre Przywara wrote: Currently we protect the pending_irq structure with the corresponding VGIC VCPU lock. There are problems in certain corner cases (for instance if an IRQ is migrating), so let's introduce a per-IRQ lock, which will protect the consistency of

[Xen-devel] [xen-unstable test] 112544: tolerable trouble: blocked/broken/fail/pass - PUSHED

2017-08-10 Thread osstest service owner
flight 112544 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/112544/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-arm64-arm64-libvirt-xsm 1 build-check(1) blocked n/a test-arm64-arm64-xl 1

Re: [Xen-devel] [PATCH] xsm/flask: Fix build following "xsm: correct AVC lookups for two sysctls"

2017-08-10 Thread Andrew Cooper
On 10/08/17 14:17, Andrew Cooper wrote: > avc_current_has_perm() takes 4 arguments, not 3. Spotted by a Travis > randconfig run which actually turned XSM on. Sorry - I intended to add this link to the commit message. ~Andrew https://travis-ci.org/xen-project/xen/jobs/263063220 > >

Re: [Xen-devel] [PATCH 39/52] xen: check parameter validity when parsing command line

2017-08-10 Thread Wei Liu
On Thu, Aug 10, 2017 at 03:24:05PM +0200, Juergen Gross wrote: > On 10/08/17 15:02, Wei Liu wrote: > > On Wed, Aug 09, 2017 at 09:06:53AM +0200, Juergen Gross wrote: > >> Where possible check validity of parameters in _cmdline_parse() and > >> issue a warning message in case of an error detected.

Re: [Xen-devel] [RFC PATCH v2 01/22] ARM: vGIC: introduce and initialize pending_irq lock

2017-08-10 Thread Julien Grall
Hi, On 21/07/17 20:59, Andre Przywara wrote: Currently we protect the pending_irq structure with the corresponding VGIC VCPU lock. There are problems in certain corner cases (for instance if an IRQ is migrating), so let's introduce a per-IRQ lock, which will protect the consistency of this

[Xen-devel] [PATCH] xsm/flask: Fix build following "xsm: correct AVC lookups for two sysctls"

2017-08-10 Thread Andrew Cooper
avc_current_has_perm() takes 4 arguments, not 3. Spotted by a Travis randconfig run which actually turned XSM on. Signed-off-by: Andrew Cooper --- CC: Daniel De Graaf --- xen/xsm/flask/hooks.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[Xen-devel] [PATCH] xen: remove struct domain and vcpu declarations from types.h

2017-08-10 Thread Wei Liu
They don't belong there. Removing them causes build error in compat.h. Add a struct domain declaration there because including sched.h doesn't work. Signed-off-by: Wei Liu --- Cc: Andrew Cooper Cc: George Dunlap Cc:

Re: [Xen-devel] [PATCH 39/52] xen: check parameter validity when parsing command line

2017-08-10 Thread Juergen Gross
On 10/08/17 15:02, Wei Liu wrote: > On Wed, Aug 09, 2017 at 09:06:53AM +0200, Juergen Gross wrote: >> Where possible check validity of parameters in _cmdline_parse() and >> issue a warning message in case of an error detected. >> >> Cc: Andrew Cooper >> Cc: George

Re: [Xen-devel] [RFC PATCH v1 2/7] iommu/arm: ipmmu-vmsa: Add Xen changes for main driver

2017-08-10 Thread Oleksandr Tyshchenko
Hi, Julien On Tue, Aug 8, 2017 at 2:34 PM, Julien Grall wrote: > Hi, > > On 26/07/17 16:09, Oleksandr Tyshchenko wrote: >> >> From: Oleksandr Tyshchenko >> >> Modify the Linux IPMMU driver to be functional inside Xen. >> All devices within a

Re: [Xen-devel] [PATCH 39/52] xen: check parameter validity when parsing command line

2017-08-10 Thread Jan Beulich
>>> On 10.08.17 at 15:24, wrote: > @@ -176,7 +200,8 @@ int __init parse_bool(const char *s) > !strcmp("on", s) || > !strcmp("true", s) || > !strcmp("enable", s) || > - !strcmp("1", s) ) > + !strcmp("1", s) || > + !strcmp("",

[Xen-devel] Xen Grant table frames for granting access permissions

2017-08-10 Thread Waseem, Amna
Hello All, I am struggling with fixing the allocation of pages to some known physical pages used for mapping and granting access between guests. I want to fix the allocation of pages i.e. their frame numbers to be be mapped to fixed physical pages. I only want to do this for pages shared

[Xen-devel] Xen Grant table frames for granting access permissions

2017-08-10 Thread Waseem, Amna
Hello All, I am struggling with fixing the allocation of pages to some known physical pages used for mapping and granting access between guests. I want to fix the allocation of pages i.e. their frame numbers to be be mapped to fixed physical pages. I only want to do this for pages shared

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

2017-08-10 Thread osstest service owner
flight 112543 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/112543/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-win7-amd64 16 guest-localmigrate/x10 fail REGR. vs. 112456 Tests

[Xen-devel] [ovmf test] 112547: regressions - FAIL

2017-08-10 Thread osstest service owner
flight 112547 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/112547/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-xsm6 xen-buildfail REGR. vs. 112539 build-i386

Re: [Xen-devel] [PATCH 00/25 v7] SBSA UART emulation support in Xen

2017-08-10 Thread Julien Grall
Hi, On 10/08/17 14:01, Wei Liu wrote: On Thu, Aug 10, 2017 at 01:40:07PM +0100, Julien Grall wrote: Hi Wei, On 10/08/17 12:40, Wei Liu wrote: On Thu, Aug 10, 2017 at 01:29:04PM +0530, Bhupinder Thakur wrote: Hi Wei, On 9 August 2017 at 16:33, Wei Liu wrote: On Wed,

Re: [Xen-devel] [PATCH v3 00/13] introduce the Xen PV Calls frontend

2017-08-10 Thread Boris Ostrovsky
On 07/31/2017 06:57 PM, Stefano Stabellini wrote: > Hi all, > > this series introduces the frontend for the newly introduced PV Calls > procotol. > > PV Calls is a paravirtualized protocol that allows the implementation of > a set of POSIX functions in a different domain. The PV Calls frontend >

Re: [Xen-devel] [PATCH 00/25 v7] SBSA UART emulation support in Xen

2017-08-10 Thread Wei Liu
On Thu, Aug 10, 2017 at 03:31:57PM +0100, Julien Grall wrote: > Hi, > > On 10/08/17 14:01, Wei Liu wrote: > > On Thu, Aug 10, 2017 at 01:40:07PM +0100, Julien Grall wrote: > > > Hi Wei, > > > > > > On 10/08/17 12:40, Wei Liu wrote: > > > > On Thu, Aug 10, 2017 at 01:29:04PM +0530, Bhupinder

Re: [Xen-devel] [PATCH 00/25 v7] SBSA UART emulation support in Xen

2017-08-10 Thread Julien Grall
On 10/08/17 17:00, Wei Liu wrote: On Thu, Aug 10, 2017 at 03:26:07PM +0100, Julien Grall wrote: On 09/08/17 11:58, Bhupinder Thakur wrote: Hi Julien, Hi Bhupinder, Thanks for the testing. On 8 August 2017 at 21:29, Julien Grall wrote: Hi Bhupinder, I gave

[Xen-devel] Ping: [PATCH] x86emul: correct VEX.W handling for non-64-bit VPINSRD

2017-08-10 Thread Jan Beulich
>>> On 10.07.17 at 09:24, wrote: > Going though the XED commits from the last couple of months made me > notice that VPINSRD, other than VPEXTRD, does not clear VEX.W for non- > 64-bit modes, leading to an insertion of stray 32-bits of zero in case > the original instruction

[Xen-devel] Ping: [PATCH v3] x86/HVM: don't #GP/#SS on wrapping virt->linear translations

2017-08-10 Thread Jan Beulich
>>> On 10.07.17 at 12:39, wrote: > Real hardware wraps silently in most cases, so we should behave the > same. Also split real and VM86 mode handling, as the latter really > ought to have limit checks applied. > > Signed-off-by: Jan Beulich > --- > v3:

[Xen-devel] [PATCH] IOMMU/PCI: properly annotate setup_one_hwdom_device()

2017-08-10 Thread Jan Beulich
Its sole caller is __hwdom_init, so it can be such itself, too. Signed-off-by: Jan Beulich --- a/xen/drivers/passthrough/pci.c +++ b/xen/drivers/passthrough/pci.c @@ -1026,8 +1026,8 @@ struct setup_hwdom { int (*handler)(u8 devfn, struct pci_dev *); }; -static void

Re: [Xen-devel] [PATCH 4/7] arm: smccc: handle SMCs according to SMCCC

2017-08-10 Thread Jan Beulich
>>> On 09.08.17 at 23:39, wrote: > On 09.08.17 14:58, Jan Beulich wrote: > On 09.08.17 at 12:10, wrote: >>> On 08/08/17 21:08, Volodymyr Babchuk wrote: +#ifndef __XEN_PUBLIC_ARCH_ARM_SMC_H__ +#define __XEN_PUBLIC_ARCH_ARM_SMC_H__

Re: [Xen-devel] [PATCH] common/domain_page: Drop domain_mmap_cache infrastructure

2017-08-10 Thread Jan Beulich
>>> On 09.08.17 at 20:21, wrote: > This infrastructure is used exclusively by the x86 do_mmu_update() hypercall. > Mapping and unmapping domain pages is probably not the slow part of that > function, but even with an opencoded caching implementation, Bloat-o-meter >

[Xen-devel] [ovmf test] 112545: regressions - FAIL

2017-08-10 Thread osstest service owner
flight 112545 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/112545/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-xsm6 xen-buildfail REGR. vs. 112539 build-i386

Re: [Xen-devel] [PATCH] x86/HVM: fix boundary check in hvmemul_insn_fetch() (again)

2017-08-10 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 10 August 2017 08:28 > To: xen-devel > Cc: Andrew Cooper ; Paul Durrant > > Subject: [PATCH] x86/HVM: fix boundary check in

Re: [Xen-devel] [PATCH] xen-blkfront: use a right index when checking requests

2017-08-10 Thread Roger Pau Monne
On Wed, Aug 09, 2017 at 03:31:40PM -0700, Munehisa Kamata wrote: > Since commit d05d7f40791c ("Merge branch 'for-4.8/core' of > git://git.kernel.dk/linux-block") and 3fc9d690936f ("Merge branch > 'for-4.8/drivers' of git://git.kernel.dk/linux-block"), blkfront_resume() > has been using an index

[Xen-devel] [PATCH] x86/HVM: fix boundary check in hvmemul_insn_fetch() (again)

2017-08-10 Thread Jan Beulich
Commit 5a992b670b ("x86/hvm: Fix boundary check in hvmemul_insn_fetch()") went a little too far in its correction to commit 0943a03037 ("x86/hvm: Fixes to hvmemul_insn_fetch()"): Keep the start offset check, but restore the original end offset one. Signed-off-by: Jan Beulich

Re: [Xen-devel] [PATCH] x86/mm: make various hotplug related functions static

2017-08-10 Thread Andrew Cooper
On 10/08/2017 08:27, Jan Beulich wrote: > Signed-off-by: Jan Beulich Acked-by: Andrew Cooper ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH] IOMMU/PCI: properly annotate setup_one_hwdom_device()

2017-08-10 Thread Andrew Cooper
On 10/08/2017 08:25, Jan Beulich wrote: > Its sole caller is __hwdom_init, so it can be such itself, too. > > Signed-off-by: Jan Beulich Acked-by: Andrew Cooper ___ Xen-devel mailing list

[Xen-devel] Xen Backend for sound sharing for arm

2017-08-10 Thread ajmalmalib4u
Hi, I need to do sound sharing in RCar H3.I am currently using Xen 4.8.0. I tried to patch the guest kernel(v 4.6.0) using the patch series [[RESEND1,01/12] ALSA: vsnd: Introduce Xen para-virtualized sound frontend driver] to add the support for Xen para-virtualized sound frontend driver which was

Re: [Xen-devel] [PATCH v2 0/3] Qemu: Add Xen vIOMMU interrupt remapping function support

2017-08-10 Thread Paolo Bonzini
On 09/08/2017 22:51, Lan Tianyu wrote: > This patchset is to deal with MSI interrupt remapping request when guest > updates MSI registers. > > Chao Gao (3): > i386/msi: Correct mask of destination ID in MSI address > xen-pt: bind/unbind interrupt remapping format MSI > msi: Handle

Re: [Xen-devel] [PATCH v2 0/3] Qemu: Add Xen vIOMMU interrupt remapping function support

2017-08-10 Thread Lan Tianyu
On 2017年08月10日 17:04, Paolo Bonzini wrote: > On 09/08/2017 22:51, Lan Tianyu wrote: >> This patchset is to deal with MSI interrupt remapping request when guest >> updates MSI registers. >> >> Chao Gao (3): >> i386/msi: Correct mask of destination ID in MSI address >> xen-pt: bind/unbind

Re: [Xen-devel] [PATCH RESEND1 00/12] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-10 Thread Oleksandr Andrushchenko
Hi, thank you very much for valuable comments and your time! On 08/10/2017 06:14 AM, Takashi Sakamoto wrote: Hi, On Aug 7 2017 21:22, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko This patch series adds support for Xen [1] para-virtualized

Re: [Xen-devel] [PATCH] IOMMU/PCI: properly annotate setup_one_hwdom_device()

2017-08-10 Thread Roger Pau Monné
On Thu, Aug 10, 2017 at 01:25:35AM -0600, Jan Beulich wrote: > Its sole caller is __hwdom_init, so it can be such itself, too. > > Signed-off-by: Jan Beulich Reviewed-by: Roger Pau Monné Had the same patch in my queue, but you beat it to me. Thanks,

[Xen-devel] [PATCH] x86/mm: make various hotplug related functions static

2017-08-10 Thread Jan Beulich
Signed-off-by: Jan Beulich --- a/xen/arch/x86/x86_64/mm.c +++ b/xen/arch/x86/x86_64/mm.c @@ -106,7 +106,7 @@ struct mem_hotadd_info unsigned long cur; }; -int hotadd_mem_valid(unsigned long pfn, struct mem_hotadd_info *info) +static int hotadd_mem_valid(unsigned long

Re: [Xen-devel] [PATCH 00/25 v7] SBSA UART emulation support in Xen

2017-08-10 Thread Bhupinder Thakur
Hi Wei, On 9 August 2017 at 16:33, Wei Liu wrote: > On Wed, Aug 09, 2017 at 04:28:14PM +0530, Bhupinder Thakur wrote: >> Hi Julien, >> >> Thanks for the testing. >> >> On 8 August 2017 at 21:29, Julien Grall wrote: >> > Hi Bhupinder, >> > >> > I gave

Re: [Xen-devel] [PATCH 0/4] ARM: ACPI: ITS: Add ITS Support for ACPI hardware domain

2017-08-10 Thread Julien Grall
On 08/10/2017 02:00 PM, Manish Jaggi wrote: HI Julien, On 8/10/2017 5:43 PM, Julien Grall wrote: On 10/08/17 13:00, Manish Jaggi wrote: Hi Julien, On 8/10/2017 4:58 PM, Julien Grall wrote: On 10/08/17 12:21, Manish Jaggi wrote: Hi Julien, On 6/21/2017 6:53 PM, Julien Grall wrote:

Re: [Xen-devel] [PATCH] xen: remove struct domain and vcpu declarations from types.h

2017-08-10 Thread Jan Beulich
>>> On 10.08.17 at 15:24, wrote: > They don't belong there. Removing them causes build error in compat.h. > Add a struct domain declaration there because including sched.h > doesn't work. > > Signed-off-by: Wei Liu Acked-by: Jan Beulich

Re: [Xen-devel] [PATCH] xsm/flask: Fix build following "xsm: correct AVC lookups for two sysctls"

2017-08-10 Thread Daniel De Graaf
On 08/10/2017 09:17 AM, Andrew Cooper wrote: avc_current_has_perm() takes 4 arguments, not 3. Spotted by a Travis randconfig run which actually turned XSM on. Signed-off-by: Andrew Cooper Whoops, looks like I sent the non-build-tested patch by accident. Thanks for

[Xen-devel] [xen-unstable-smoke test] 112554: tolerable trouble: broken/pass - PUSHED

2017-08-10 Thread osstest service owner
flight 112554 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/112554/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-arm64-arm64-xl-xsm 1 build-check(1) blocked n/a build-arm64-pvops 2

Re: [Xen-devel] [PATCH 4/7] arm: smccc: handle SMCs according to SMCCC

2017-08-10 Thread Volodymyr Babchuk
Hi Julien, On 09.08.17 13:10, Julien Grall wrote: Hi Volodymyr, CC "THE REST" maintainers to get an opinion on the public headers. On 08/08/17 21:08, Volodymyr Babchuk wrote: SMCCC (SMC Call Convention) describes how to handle both HVCs and SMCs. SMCCC states that both HVC and SMC are valid

[Xen-devel] [ovmf test] 112558: regressions - FAIL

2017-08-10 Thread osstest service owner
flight 112558 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/112558/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-xsm6 xen-buildfail REGR. vs. 112539 build-i386

Re: [Xen-devel] [PATCH 52/52] xen: make some console related parameters settable at runtime

2017-08-10 Thread Wei Liu
On Wed, Aug 09, 2017 at 09:07:06AM +0200, Juergen Gross wrote: > Support modifying conswitch, console_timestamps, loglvl and > guest_loglvl at runtime. > > Cc: Andrew Cooper > Cc: George Dunlap > Cc: Ian Jackson

Re: [Xen-devel] Xen-unstable / Qemu-upstream: QMP server: Unsupported bus. Bus doesn't have property 'acpi-pcihp-bsel' set

2017-08-10 Thread Anthony PERARD
On Thu, Aug 10, 2017 at 03:00:56PM +0100, Anthony PERARD wrote: > On Wed, Aug 09, 2017 at 06:34:43PM +0200, Sander Eikelenboom wrote: > > L.S., > > > > It seems the xen qemu-upstream tree got updated from qemu upstream last > > week. > > Unfortunately a change breaks pci-passthrough for HVM's:

Re: [Xen-devel] [PATCH v4 9/9] vpci/msix: add MSI-X handlers

2017-08-10 Thread Roger Pau Monné
On Wed, Aug 02, 2017 at 09:07:54AM -0600, Jan Beulich wrote: > >>> Roger Pau Monne 06/30/17 5:01 PM >>> > >Note that accesses to the Table Offset, Table BIR, PBA Offset and PBA > >BIR are not trapped by Xen at the moment. > > They're mandated r/o by the spec anyway. > >

Re: [Xen-devel] [PATCH 47/52] xen: add basic support for runtime parameter changing

2017-08-10 Thread Juergen Gross
On 10/08/17 18:17, Wei Liu wrote: > On Wed, Aug 09, 2017 at 09:07:01AM +0200, Juergen Gross wrote: >> Add the needed infrastructure for runtime parameter changing similar >> to that used at boot time via cmdline. We are using the same parsing >> functions as for cmdline parsing, but with a

Re: [Xen-devel] [PATCH 00/25 v7] SBSA UART emulation support in Xen

2017-08-10 Thread Julien Grall
On 10/08/17 17:38, Wei Liu wrote: On Thu, Aug 10, 2017 at 05:11:52PM +0100, Julien Grall wrote: On 10/08/17 17:00, Wei Liu wrote: On Thu, Aug 10, 2017 at 03:26:07PM +0100, Julien Grall wrote: On 09/08/17 11:58, Bhupinder Thakur wrote: Hi Julien, Hi Bhupinder, Thanks for the

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

2017-08-10 Thread osstest service owner
flight 112552 xtf real [real] http://logs.test-lab.xenproject.org/osstest/logs/112552/ Perfect :-) All tests in this flight passed as required version targeted for testing: xtf 11ae3010a30c89a6aef762dd03727a5b49e9d8d8 baseline version: xtf

Re: [Xen-devel] [PATCH 47/52] xen: add basic support for runtime parameter changing

2017-08-10 Thread Wei Liu
On Wed, Aug 09, 2017 at 09:07:01AM +0200, Juergen Gross wrote: > Add the needed infrastructure for runtime parameter changing similar > to that used at boot time via cmdline. We are using the same parsing > functions as for cmdline parsing, but with a different array of > parameter definitions. >

Re: [Xen-devel] [PATCH 1/3] paravirt,xen: remove xen_patch()

2017-08-10 Thread Josh Poimboeuf
On Thu, Aug 10, 2017 at 02:52:52PM +0200, Juergen Gross wrote: > Xen's paravirt patch function xen_patch() does some special casing for > irq_ops functions to apply relocations when those functions can be > patched inline instead of calls. > > Unfortunately none of the special case function

Re: [Xen-devel] [PATCH 51/52] xl: add new xl command set-parameters

2017-08-10 Thread Wei Liu
On Wed, Aug 09, 2017 at 09:07:05AM +0200, Juergen Gross wrote: > Add a new xl command "set-parameters" to set hypervisor parameters at > runtime similar to boot time parameters via command line. > > Cc: Ian Jackson > Cc: Wei Liu > Signed-off-by:

Re: [Xen-devel] [PATCH 1/3] paravirt,xen: remove xen_patch()

2017-08-10 Thread Peter Zijlstra
On Thu, Aug 10, 2017 at 06:24:53PM +0200, Peter Zijlstra wrote: > -ENTRY(xen_irq_enable_direct) > - FRAME_BEGIN > - /* Unmask events */ > - movb $0, PER_CPU_VAR(xen_vcpu_info) + XEN_vcpu_info_mask > - > - /* > - * Preempt here doesn't matter because that will deal with any > -

Re: [Xen-devel] [PATCH 50/52] libxl: add libxl_set_parameters() function

2017-08-10 Thread Wei Liu
On Wed, Aug 09, 2017 at 09:07:04AM +0200, Juergen Gross wrote: > Add a new libxl function to set hypervisor parameters at runtime > similar to boot time parameters via command line. > > Cc: Ian Jackson > Cc: Wei Liu > Signed-off-by: Juergen Gross

[Xen-devel] [PATCH v2] xen: remove struct domain and vcpu declarations from types.h

2017-08-10 Thread Wei Liu
They don't belong there. Removing them causes build errors in several places. Add the forward declarations in those places. Signed-off-by: Wei Liu --- Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson

[Xen-devel] [RFC v2 07/23] x86: relocate_kernel - Adapt assembly for PIE support

2017-08-10 Thread Thomas Garnier
Change the assembly code to use only relative references of symbols for the kernel to be PIE compatible. Position Independent Executable (PIE) support will allow to extended the KASLR randomization range below the -2G memory limit. Signed-off-by: Thomas Garnier ---

[Xen-devel] [RFC v2 12/23] x86/boot/64: Adapt assembly for PIE support

2017-08-10 Thread Thomas Garnier
Change the assembly code to use only relative references of symbols for the kernel to be PIE compatible. Early at boot, the kernel is mapped at a temporary address while preparing the page table. To know the changes needed for the page table with KASLR, the boot code calculate the difference

[Xen-devel] [RFC v2 04/23] x86: Add macro to get symbol address for PIE support

2017-08-10 Thread Thomas Garnier
Add a new _ASM_GET_PTR macro to fetch a symbol address. It will be used to replace "_ASM_MOV $, %dst" code construct that are not compatible with PIE. Signed-off-by: Thomas Garnier --- arch/x86/include/asm/asm.h | 13 + 1 file changed, 13 insertions(+) diff

[Xen-devel] [RFC v2 23/23] x86/kaslr: Add option to extend KASLR range from 1GB to 3GB

2017-08-10 Thread Thomas Garnier
Add a new CONFIG_RANDOMIZE_BASE_LARGE option to benefit from PIE support. It increases the KASLR range from 1GB to 3GB. The new range stars at 0x just above the EFI memory region. This option is off by default. The boot code is adapted to create the appropriate page table spanning

[Xen-devel] [RFC v2 15/23] x86/boot/64: Use _text in a global for PIE support

2017-08-10 Thread Thomas Garnier
By default PIE generated code create only relative references so _text points to the temporary virtual address. Instead use a global variable so the relocation is done as expected. Position Independent Executable (PIE) support will allow to extended the KASLR randomization range below the -2G

[Xen-devel] [RFC v2 18/23] x86/relocs: Handle DYN relocations for PIE support

2017-08-10 Thread Thomas Garnier
Change the relocation tool to correctly handle DYN/PIE kernel where the relocation table does not reference symbols and percpu support is not needed. Also add support for R_X86_64_RELATIVE relocations that can be handled like a 64-bit relocation due to the usage of -Bsymbolic. Position

[Xen-devel] [RFC v2 20/23] x86/pie: Add option to build the kernel as PIE for x86_64

2017-08-10 Thread Thomas Garnier
Add the CONFIG_X86_PIE option which builds the kernel as a Position Independent Executable (PIE). The kernel is currently build with the mcmodel=kernel option which forces it to stay on the top 2G of the virtual address space. With PIE, the kernel will be able to move below the -2G limit

Re: [Xen-devel] Xen-unstable / Qemu-upstream: QMP server: Unsupported bus. Bus doesn't have property 'acpi-pcihp-bsel' set

2017-08-10 Thread Sander Eikelenboom
On 10/08/17 18:45, Anthony PERARD wrote: > On Thu, Aug 10, 2017 at 03:00:56PM +0100, Anthony PERARD wrote: >> On Wed, Aug 09, 2017 at 06:34:43PM +0200, Sander Eikelenboom wrote: >>> L.S., >>> >>> It seems the xen qemu-upstream tree got updated from qemu upstream last >>> week. >>> Unfortunately

Re: [Xen-devel] [PATCH 1/3] paravirt,xen: remove xen_patch()

2017-08-10 Thread Peter Zijlstra
On Thu, Aug 10, 2017 at 02:52:52PM +0200, Juergen Gross wrote: > Xen's paravirt patch function xen_patch() does some special casing for > irq_ops functions to apply relocations when those functions can be > patched inline instead of calls. > > Unfortunately none of the special case function

Re: [Xen-devel] [RFC PATCH v2 03/22] ARM: vGIC: move gic_raise_inflight_irq() into vgic_vcpu_inject_irq()

2017-08-10 Thread Julien Grall
Hi Andre, On 21/07/17 20:59, Andre Przywara wrote: Currently there is a gic_raise_inflight_irq(), which serves the very special purpose of handling a newly injected interrupt while an older one is still handled. This has only one user, in vgic_vcpu_inject_irq(). Now with the introduction of

Re: [Xen-devel] [PATCH 49/52] libxc: add function to set hypervisor parameters

2017-08-10 Thread Wei Liu
On Wed, Aug 09, 2017 at 09:07:03AM +0200, Juergen Gross wrote: > Add a new libxc function to set hypervisor parameters at runtime > similar to boot time parameters via command line. > > Cc: Ian Jackson > Cc: Wei Liu > Signed-off-by: Juergen Gross

Re: [Xen-devel] [PATCH 00/25 v7] SBSA UART emulation support in Xen

2017-08-10 Thread Wei Liu
On Thu, Aug 10, 2017 at 05:11:52PM +0100, Julien Grall wrote: > > > On 10/08/17 17:00, Wei Liu wrote: > > On Thu, Aug 10, 2017 at 03:26:07PM +0100, Julien Grall wrote: > > > > > > > > > On 09/08/17 11:58, Bhupinder Thakur wrote: > > > > Hi Julien, > > > > > > Hi Bhupinder, > > > > > > >

Re: [Xen-devel] [PATCH 00/52] Support for modifying parameters at runtime

2017-08-10 Thread Wei Liu
On Wed, Aug 09, 2017 at 09:06:14AM +0200, Juergen Gross wrote: > Currently parameters of the hypervisor (e.g. console log level) can be > set via boot command line. Instead of having to reboot the system in > case another setting is desired, being able to modify many of those > parameters at

Re: [Xen-devel] [PATCH 1/3] paravirt,xen: remove xen_patch()

2017-08-10 Thread Juergen Gross
On 10/08/17 18:29, Peter Zijlstra wrote: > On Thu, Aug 10, 2017 at 06:24:53PM +0200, Peter Zijlstra wrote: >> -ENTRY(xen_irq_enable_direct) >> -FRAME_BEGIN >> -/* Unmask events */ >> -movb $0, PER_CPU_VAR(xen_vcpu_info) + XEN_vcpu_info_mask >> - >> -/* >> - * Preempt here

Re: [Xen-devel] [PATCH 50/52] libxl: add libxl_set_parameters() function

2017-08-10 Thread Juergen Gross
On 10/08/17 18:28, Wei Liu wrote: > On Wed, Aug 09, 2017 at 09:07:04AM +0200, Juergen Gross wrote: >> Add a new libxl function to set hypervisor parameters at runtime >> similar to boot time parameters via command line. >> >> Cc: Ian Jackson >> Cc: Wei Liu

Re: [Xen-devel] [PATCH 4/7] arm: smccc: handle SMCs according to SMCCC

2017-08-10 Thread Volodymyr Babchuk
On 10.08.17 19:11, Julien Grall wrote: On 10/08/17 16:33, Volodymyr Babchuk wrote: Hi Julien, On 09.08.17 13:10, Julien Grall wrote: Hi Volodymyr, CC "THE REST" maintainers to get an opinion on the public headers. On 08/08/17 21:08, Volodymyr Babchuk wrote: SMCCC (SMC Call Convention)

Re: [Xen-devel] [PATCH 4/7] arm: smccc: handle SMCs according to SMCCC

2017-08-10 Thread Volodymyr Babchuk
Hi, On 10.08.17 21:18, Julien Grall wrote: Hi, On 10/08/17 18:40, Volodymyr Babchuk wrote: On 10.08.17 19:11, Julien Grall wrote: On 10/08/17 16:33, Volodymyr Babchuk wrote: Hi Julien, On 09.08.17 13:10, Julien Grall wrote: Hi Volodymyr, CC "THE REST" maintainers to get an opinion on

[Xen-devel] [ovmf test] 112563: regressions - FAIL

2017-08-10 Thread osstest service owner
flight 112563 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/112563/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-xsm6 xen-buildfail REGR. vs. 112539 build-i386

Re: [Xen-devel] [PATCH 4/7] arm: smccc: handle SMCs according to SMCCC

2017-08-10 Thread Julien Grall
On 10/08/2017 21:09, Volodymyr Babchuk wrote: Hi, On 10.08.17 21:18, Julien Grall wrote: Hi, On 10/08/17 18:40, Volodymyr Babchuk wrote: On 10.08.17 19:11, Julien Grall wrote: On 10/08/17 16:33, Volodymyr Babchuk wrote: Hi Julien, On 09.08.17 13:10, Julien Grall wrote: Hi

Re: [Xen-devel] Renaming p9 to p9s in libxl idl

2017-08-10 Thread Jim Fehlig
On 08/08/2017 09:09 AM, Wei Liu wrote: Ian and Stefano Oleksandr discovered that the p9fs array in libxl_domain_config is name p9 instead of p9s. This causes problem for his work to rework device framework. Given that p9fs was added only during last release and the only known external

[Xen-devel] [xen-unstable baseline-only test] 71960: regressions - trouble: blocked/broken/fail/pass

2017-08-10 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 71960 xen-unstable real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/71960/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-examine 10

[Xen-devel] Building XenGT for Intel embedded board

2017-08-10 Thread Monisha Barooah
Hi Everyone, I am currently exploring on bringing up XenGT for an Intel embedded board. I came across this document relating to bringing up XenGT for the Sandy Bridge/Ivy Bridge/Haswell platform

Re: [Xen-devel] [PATCH] xen: remove struct domain and vcpu declarations from types.h

2017-08-10 Thread Wei Liu
On Thu, Aug 10, 2017 at 02:24:04PM +0100, Wei Liu wrote: > They don't belong there. Removing them causes build error in compat.h. > Add a struct domain declaration there because including sched.h > doesn't work. > > Signed-off-by: Wei Liu Unfortunately this version is

[Xen-devel] [RFC v2 14/23] x86/paravirt: Adapt assembly for PIE support

2017-08-10 Thread Thomas Garnier
if PIE is enabled, switch the paravirt assembly constraints to be compatible. The %c/i constrains generate smaller code so is kept by default. Position Independent Executable (PIE) support will allow to extended the KASLR randomization range below the -2G memory limit. Signed-off-by: Thomas

[Xen-devel] [RFC v2 01/23] x86/crypto: Adapt assembly for PIE support

2017-08-10 Thread Thomas Garnier
Change the assembly code to use only relative references of symbols for the kernel to be PIE compatible. Position Independent Executable (PIE) support will allow to extended the KASLR randomization range below the -2G memory limit. Signed-off-by: Thomas Garnier ---

[Xen-devel] [RFC v2 13/23] x86/power/64: Adapt assembly for PIE support

2017-08-10 Thread Thomas Garnier
Change the assembly code to use only relative references of symbols for the kernel to be PIE compatible. Position Independent Executable (PIE) support will allow to extended the KASLR randomization range below the -2G memory limit. Signed-off-by: Thomas Garnier ---

[Xen-devel] [RFC v2 08/23] x86/entry/64: Adapt assembly for PIE support

2017-08-10 Thread Thomas Garnier
Change the assembly code to use only relative references of symbols for the kernel to be PIE compatible. Position Independent Executable (PIE) support will allow to extended the KASLR randomization range below the -2G memory limit. Signed-off-by: Thomas Garnier ---

[Xen-devel] [RFC v2 16/23] x86/percpu: Adapt percpu for PIE support

2017-08-10 Thread Thomas Garnier
Perpcu uses a clever design where the .percu ELF section has a virtual address of zero and the relocation code avoid relocating specific symbols. It makes the code simple and easily adaptable with or without SMP support. This design is incompatible with PIE because generated code always try to

[Xen-devel] [RFC v2 22/23] x86/module: Add support for mcmodel large and PLTs

2017-08-10 Thread Thomas Garnier
With PIE support and KASLR extended range, the modules may be further away from the kernel than before breaking mcmodel=kernel expectations. Add an option to build modules with mcmodel=large. The modules generated code will make no assumptions on placement in memory. Despite this option, modules

[Xen-devel] [RFC v2 11/23] x86/acpi: Adapt assembly for PIE support

2017-08-10 Thread Thomas Garnier
Change the assembly code to use only relative references of symbols for the kernel to be PIE compatible. Position Independent Executable (PIE) support will allow to extended the KASLR randomization range below the -2G memory limit. Signed-off-by: Thomas Garnier ---

[Xen-devel] [RFC v2 17/23] compiler: Option to default to hidden symbols

2017-08-10 Thread Thomas Garnier
Provide an option to default visibility to hidden except for key symbols. This option is disabled by default and will be used by x86_64 PIE support to remove errors between compilation units. Signed-off-by: Thomas Garnier --- arch/x86/boot/boot.h | 2 +-

[Xen-devel] [RFC v2 21/23] x86/relocs: Add option to generate 64-bit relocations

2017-08-10 Thread Thomas Garnier
The x86 relocation tool generates a list of 32-bit signed integers. There was no need to use 64-bit integers because all addresses where above the 2G top of the memory. This change add a large-reloc option to generate 64-bit unsigned integers. It can be used when the kernel plan to go below the

[Xen-devel] x86: PIE support and option to extend KASLR randomization

2017-08-10 Thread Thomas Garnier
Changes: - v2: - Add support for global stack cookie while compiler default to fs without mcmodel=kernel - Change patch 7 to correctly jump out of the identity mapping on kexec load preserve. These patches make the changes necessary to build the kernel as Position Independent

[Xen-devel] [RFC v2 06/23] kvm: Adapt assembly for PIE support

2017-08-10 Thread Thomas Garnier
Change the assembly code to use only relative references of symbols for the kernel to be PIE compatible. The new __ASM_GET_PTR_PRE macro is used to get the address of a symbol on both 32 and 64-bit with PIE support. Position Independent Executable (PIE) support will allow to extended the KASLR

[Xen-devel] [RFC v2 05/23] xen: Adapt assembly for PIE support

2017-08-10 Thread Thomas Garnier
Change the assembly code to use the new _ASM_GET_PTR macro which get a symbol reference while being PIE compatible. Modify the RELOC macro that was using an assignment generating a non-relative reference. Position Independent Executable (PIE) support will allow to extended the KASLR randomization

  1   2   >