Re: [Xen-devel] [PATCH 4/9] x86/vvmx: Remove unnecessary VMX operand reads

2017-11-02 Thread Tian, Kevin
> From: Euan Harris [mailto:euan.har...@citrix.com] > Sent: Friday, October 27, 2017 1:03 AM > > * vpid is never used in nvmx_handle_invept() so there is no point in >reading it. I think you meant nvmx_handle_invvpid > > * vmptrst's operand is the memory address to which to write the VMCS

Re: [Xen-devel] [PATCH 0/9] x86/vvmx: Read instruction operands correctly on VM exit

2017-11-02 Thread Tian, Kevin
> From: Andrew Cooper [mailto:andrew.coop...@citrix.com] > Sent: Friday, October 27, 2017 1:59 AM > > On 26/10/17 18:03, Euan Harris wrote: > > decode_vmx_inst() does not read instruction operands correctly on VM > exit: > > > > * It incorrectly uses vmx_inst_info's address_size field to calculat

[Xen-devel] USB Passthrough: Incorrect device detected in Domain U

2017-11-02 Thread Rakesh Awanti
Hello, I'm trying USB passthrough on x86 and ARM platforms. I've taken the USB frontend and backend code from When I passthrough a certain USB device it shows up in the device list of Dom-u, I've verified this with "xl usb-list Dom-u". When I switch to Dom-u, this USB device does not show up i

Re: [Xen-devel] USB Passthrough: Incorrect device detected in Domain U

2017-11-02 Thread Juergen Gross
On 02/11/17 07:57, Rakesh Awanti wrote: > Hello, > > I'm trying USB passthrough on x86 and ARM platforms. I've taken the USB > frontend and backend code from So from where? Juergen ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen

Re: [Xen-devel] USB Passthrough: Incorrect device detected in Domain U

2017-11-02 Thread Rakesh Awanti
>> Hello, >> >> I'm trying USB passthrough on x86 and ARM platforms. I've taken the USB >> frontend and backend code from >So from where? https://lists.xen.org/archives/html/xen-devel/2015-02/msg03245.html Apologies for the missing link. From: Juergen Gross S

Re: [Xen-devel] [RFC] ARM: New (Xen) VGIC design document

2017-11-02 Thread Christoffer Dall
On Wed, Nov 1, 2017 at 10:15 AM, Andre Przywara wrote: > Hi, > > On 01/11/17 04:31, Christoffer Dall wrote: >> On Wed, Nov 1, 2017 at 9:58 AM, Stefano Stabellini >> wrote: >> >> [] > > Christoffer, many thanks for answering this! > I think we have a lot of assumptions about the whole VGIC lif

Re: [Xen-devel] [RFC] ARM: New (Xen) VGIC design document

2017-11-02 Thread Christoffer Dall
On Wed, Nov 1, 2017 at 10:54 PM, Stefano Stabellini wrote: [...] > >> > The suggestion of using this model in Xen was made in the past already. >> > I always objected for the reason that we don't actually know how many >> > LRs the hardware provides, potentially very many, and it is expensive >>

[Xen-devel] [xen-unstable test] 115471: regressions - FAIL

2017-11-02 Thread osstest service owner
flight 115471 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/115471/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-ws16-amd64 17 guest-stopfail REGR. vs. 114644 test-amd64-amd64-x

[Xen-devel] d0v0 Unhandled general protection fault with 4.9.x on brand new hardware

2017-11-02 Thread Francesco De Francesco
Hi everyone, I need to address an issue that prevents me from running Xen on new hardware. It's an HPE DL360 Gen10 with double Xeon Silver 4108 CPU and 256GB ECC DDR4 RDIMM. It happens with both CentOS6 and CentOS7. When I try to boot with Xen kernel 4.9.58-29.el6, I get the following error at bo

Re: [Xen-devel] [PATCH v3 for-next 4/4] xen: Convert __page_to_mfn and __mfn_to_page to use typesafe MFN

2017-11-02 Thread Tim Deegan
At 14:03 + on 01 Nov (1509544996), Julien Grall wrote: > Most of the users of page_to_mfn and mfn_to_page are either overriding > the macros to make them work with mfn_t or use mfn_x/_mfn because the > rest of the function use mfn_t. > > So make __page_to_mfn and __mfn_to_page return mfn_t by

[Xen-devel] [qemu-mainline test] 115477: regressions - FAIL

2017-11-02 Thread osstest service owner
flight 115477 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/115477/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i3866 xen-buildfail REGR. vs. 114507 build-amd64-xsm

Re: [Xen-devel] Commit moratorium to staging

2017-11-02 Thread Roger Pau Monné
On Wed, Nov 01, 2017 at 04:17:10PM +, Roger Pau Monné wrote: > On Wed, Nov 01, 2017 at 02:07:48PM +, Ian Jackson wrote: > > * Affected hosts differ from unaffected hosts according to cpuid. > > Roger has repro'd the bug on an unaffected host by masking out > > certain cpuid bits. There

[Xen-devel] [distros-debian-wheezy test] 72404: all pass

2017-11-02 Thread Platform Team regression test user
flight 72404 distros-debian-wheezy real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/72404/ Perfect :-) All tests in this flight passed as required baseline version: flight 72354 jobs: build-amd64 pass build-armh

[Xen-devel] [PATCH v2 3/5] xen: add grant interface version dependent constants to gnttab_ops

2017-11-02 Thread Juergen Gross
Instead of having multiple variables with constants like grant_table_version or grefs_per_grant_frame add those to struct gnttab_ops and access them just via the gnttab_interface pointer. Signed-off-by: Juergen Gross Reviewed-by: Boris Ostrovsky --- drivers/xen/grant-table.c | 73 ++

[Xen-devel] [PATCH v2 1/5] xen: re-introduce support for grant v2 interface

2017-11-02 Thread Juergen Gross
The grant v2 support was removed from the kernel with commit 438b33c7145ca8a5131a30c36d8f59bce119a19a ("xen/grant-table: remove support for V2 tables") as the higher memory footprint of v2 grants resulted in less grants being possible for a kernel compared to the v1 grant interface. As machines wi

[Xen-devel] [PATCH v2 0/5] xen: grant table interface v2 support

2017-11-02 Thread Juergen Gross
In order to support Linux to run as a pv guest on machines with huge memory (>16TB) or as a hvm guest with more than 16TB of memory the kernel has to support grant table interface v2, as v1 is limited to 32 bit frame numbers. This series re-adds that support (it has been removed in 2015) and restr

[Xen-devel] [PATCH v2 2/5] xen: limit grant v2 interface to the v1 functionality

2017-11-02 Thread Juergen Gross
As there is currently no user for sub-page grants or transient grants remove that functionality. This at once makes it possible to switch from grant v2 to grant v1 without restrictions, as there is no loss of functionality other than the limited frame number width related to the switch. Signed-off

[Xen-devel] [PATCH v2 5/5] xen: select grant interface version

2017-11-02 Thread Juergen Gross
Grant v2 will be needed in cases where a frame number in the grant table can exceed 32 bits. For PV guests this is a host feature, while for HVM guests this is a guest feature. So select grant v2 in case frame numbers can be larger than 32 bits and grant v1 else. For testing purposes add a way to

[Xen-devel] [PATCH v2 4/5] xen: update arch/x86/include/asm/xen/cpuid.h

2017-11-02 Thread Juergen Gross
Update arch/x86/include/asm/xen/cpuid.h from the Xen tree to get newest definitions. Signed-off-by: Juergen Gross --- arch/x86/include/asm/xen/cpuid.h | 42 ++-- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/arch/x86/include/asm/xen/cpuid.h b

Re: [Xen-devel] Commit moratorium to staging

2017-11-02 Thread Paul Durrant
> -Original Message- > From: Roger Pau Monne > Sent: 02 November 2017 09:15 > To: Roger Pau Monne > Cc: Ian Jackson ; Lars Kurth > ; Wei Liu ; Julien Grall > ; Paul Durrant ; > committ...@xenproject.org; xen-devel > Subject: Re: [Xen-devel] Commit moratorium to staging > > On Wed, Nov 01

Re: [Xen-devel] [PATCH v2] xen: support priv-mapping in an HVM tools domain

2017-11-02 Thread Paul Durrant
> -Original Message- > From: Boris Ostrovsky [mailto:boris.ostrov...@oracle.com] > Sent: 01 November 2017 18:19 > To: Juergen Gross ; Paul Durrant > ; x...@kernel.org; xen- > de...@lists.xenproject.org; linux-ker...@vger.kernel.org > Cc: Thomas Gleixner ; Ingo Molnar > ; H. Peter Anvin > S

Re: [Xen-devel] d0v0 Unhandled general protection fault with 4.9.x on brand new hardware

2017-11-02 Thread Juergen Gross
On 02/11/17 08:56, Francesco De Francesco wrote: > Hi everyone, > > I need to address an issue that prevents me from running Xen on new > hardware. It's an HPE DL360 Gen10 with double Xeon Silver 4108 CPU and > 256GB ECC DDR4 RDIMM. It happens with both CentOS6 and CentOS7. > > When I try to boot

Re: [Xen-devel] Commit moratorium to staging

2017-11-02 Thread Roger Pau Monné
On Thu, Nov 02, 2017 at 09:20:10AM +, Paul Durrant wrote: > > -Original Message- > > From: Roger Pau Monne > > Sent: 02 November 2017 09:15 > > To: Roger Pau Monne > > Cc: Ian Jackson ; Lars Kurth > > ; Wei Liu ; Julien Grall > > ; Paul Durrant ; > > committ...@xenproject.org; xen-deve

Re: [Xen-devel] [RFC] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-11-02 Thread Takashi Sakamoto
On Oct 30 2017 15:33, Oleksandr Andrushchenko wrote: This is an attempt to summarize previous discussions on Xen para-virtual sound driver. A first attempt has been made to upstream the driver [1] which brought number of fundamental questions, one of the biggest ones was that the frontend driv

Re: [Xen-devel] d0v0 Unhandled general protection fault with 4.9.x on brand new hardware

2017-11-02 Thread Francesco De Francesco
do I have to run addr2line on my vmlinux image? 2017-11-02 10:31 GMT+01:00 Juergen Gross : > On 02/11/17 08:56, Francesco De Francesco wrote: > > Hi everyone, > > > > I need to address an issue that prevents me from running Xen on new > > hardware. It's an HPE DL360 Gen10 with double Xeon Silver

Re: [Xen-devel] [RFC] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-11-02 Thread Oleksandr Andrushchenko
On 11/02/2017 11:44 AM, Takashi Sakamoto wrote: On Oct 30 2017 15:33, Oleksandr Andrushchenko wrote: This is an attempt to summarize previous discussions on Xen para-virtual sound driver. A first attempt has been made to upstream the driver [1] which brought number of fundamental questions, o

Re: [Xen-devel] Commit moratorium to staging

2017-11-02 Thread Paul Durrant
> -Original Message- > From: Roger Pau Monne > Sent: 02 November 2017 09:42 > To: Paul Durrant > Cc: Ian Jackson ; Lars Kurth > ; Wei Liu ; Julien Grall > ; committ...@xenproject.org; xen-devel de...@lists.xenproject.org> > Subject: Re: [Xen-devel] Commit moratorium to staging > > On Thu

[Xen-devel] [PATCH 1/2] xen: Add support for initializing 16550 UART using ACPI

2017-11-02 Thread Bhupinder Thakur
Currently, Xen supports only DT based initialization of 16550 UART. This patch adds support for initializing 16550 UART using ACPI SPCR table. Signed-off-by: Bhupinder Thakur --- CC: Andrew Cooper CC: George Dunlap CC: Ian Jackson CC: Jan Beulich CC: Konrad Rzeszutek Wilk CC: Stefano Stabell

[Xen-devel] [PATCH 2/2] xen: Fix 16550 UART console for HP Moonshot (Aarch64) platform

2017-11-02 Thread Bhupinder Thakur
The console was not working on HP Moonshot (HPE Proliant Aarch64) because the UART registers were accessed as 8-bit aligned addresses. However, registers are 32-bit aligned for HP Moonshot. Since ACPI/SPCR table does not specify the register shift to be applied to the register

[Xen-devel] [libvirt test] 115476: tolerable all pass - PUSHED

2017-11-02 Thread osstest service owner
flight 115476 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/115476/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-armhf-armhf-libvirt-xsm 14 saverestore-support-checkfail like 115415 test-armhf-armhf-libvirt 14 saveresto

Re: [Xen-devel] [PATCH RFC v2] Add SUPPORT.md

2017-11-02 Thread George Dunlap
On 11/01/2017 05:10 PM, Konrad Rzeszutek Wilk wrote: > On Tue, Oct 24, 2017 at 04:22:38PM +0100, George Dunlap wrote: >> On Fri, Sep 15, 2017 at 3:51 PM, Konrad Rzeszutek Wilk >> wrote: +### Soft-reset for PV guests >>> >>> s/PV/HVM/ >> >> Is it? I thought this was for RHEL 5 PV guests to be

Re: [Xen-devel] Commit moratorium to staging

2017-11-02 Thread George Dunlap
On 11/01/2017 02:07 PM, Ian Jackson wrote: > So, investigations (mostly by Roger, and also a bit of archaeology in > the osstest db by me) have determined: > > * This bug is 100% reproducible on affected hosts. The repro is > to boot the Windows guest, save/restore it, then migrate it, > then

Re: [Xen-devel] Commit moratorium to staging

2017-11-02 Thread Ian Jackson
Roger Pau Monné writes ("Re: [Xen-devel] Commit moratorium to staging"): > Is there anyway to get that from windows in an automatic way? If not I > could test that with a Debian guest. In fact it might even be a good > thing for Linux based guest to be added to the regular migration tests > in orde

Re: [Xen-devel] [PATCH 1/2] xen: Add support for initializing 16550 UART using ACPI

2017-11-02 Thread Julien Grall
Hi Bhupinder, Please write a cover letter even if it is small when your send a series with multiple patches. On 02/11/17 10:13, Bhupinder Thakur wrote: Currently, Xen supports only DT based initialization of 16550 UART. This patch adds support for initializing 16550 UART using ACPI SPCR table

Re: [Xen-devel] [PATCH 2/2] xen: Fix 16550 UART console for HP Moonshot (Aarch64) platform

2017-11-02 Thread Julien Grall
Hi Bhupinder, On 02/11/17 10:13, Bhupinder Thakur wrote: The console was not working on HP Moonshot (HPE Proliant Aarch64) because the UART registers were accessed as 8-bit aligned addresses. However, registers are 32-bit aligned for HP Moonshot. Since ACPI/SPCR table does n

[Xen-devel] [linux-4.9 test] 115473: regressions - FAIL

2017-11-02 Thread osstest service owner
flight 115473 linux-4.9 real [real] http://logs.test-lab.xenproject.org/osstest/logs/115473/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemuu-ws16-amd64 17 guest-stop fail REGR. vs. 114814 Tests which did not s

[Xen-devel] [qemu-mainline test] 115480: regressions - FAIL

2017-11-02 Thread osstest service owner
flight 115480 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/115480/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i3866 xen-buildfail REGR. vs. 114507 build-amd64-xsm

[Xen-devel] [RFC v1] ALSA: xen-front: Add Xen para-virtualized frontend driver

2017-11-02 Thread Oleksandr Andrushchenko
Hi, all! Foreword This RFC is aimed to introduce support of para-virtualized sound frontend driver for Xen [1] and gather opinions from the relevant communities (ALSA, Xen). It implements the protocol from [2] with the following limitations:   - mute/unmute is not supported   - get/set

Re: [Xen-devel] [RFC 0/4] TEE mediator framework + OP-TEE mediator

2017-11-02 Thread Julien Grall
Hi Volodymyr, On 24/10/17 20:02, Volodymyr Babchuk wrote: If it is not safe, this means you have a whitelist solution and therefore tie Xen to a specific OP-TEE version. So if you need to use a new function you would need to upgrade Xen making the code of using new version potentially high. Yes

Re: [Xen-devel] [PATCH-tip v2 2/2] x86/xen: Deprecate xen_nopvspin

2017-11-02 Thread Waiman Long
On 11/01/2017 06:01 PM, Boris Ostrovsky wrote: > On 11/01/2017 04:58 PM, Waiman Long wrote: >> +/* TODO: To be removed in a future kernel version */ >> static __init int xen_parse_nopvspin(char *arg) >> { >> -xen_pvspin = false; >> +pr_warn("xen_nopvspin is deprecated, replace it with >>

Re: [Xen-devel] Commit moratorium to staging [and 1 more messages]

2017-11-02 Thread Ian Jackson
Julien Grall writes ("Re: Commit moratorium to staging"): > Thank you for the explanation. I agree with the force push to unblock > master (and other tree I mentioned). I will force push all the affected trees, but in a reactive way because I base each force push on a test report - so it won't be

Re: [Xen-devel] [PATCH-tip v2 2/2] x86/xen: Deprecate xen_nopvspin

2017-11-02 Thread Juergen Gross
On 02/11/17 14:25, Waiman Long wrote: > On 11/01/2017 06:01 PM, Boris Ostrovsky wrote: >> On 11/01/2017 04:58 PM, Waiman Long wrote: >>> +/* TODO: To be removed in a future kernel version */ >>> static __init int xen_parse_nopvspin(char *arg) >>> { >>> - xen_pvspin = false; >>> + pr_warn("xen

Re: [Xen-devel] Commit moratorium to staging [and 1 more messages]

2017-11-02 Thread Julien Grall
Hi Ian, On 02/11/17 13:27, Ian Jackson wrote: Julien Grall writes ("Re: Commit moratorium to staging"): Thank you for the explanation. I agree with the force push to unblock master (and other tree I mentioned). I will force push all the affected trees, but in a reactive way because I base eac

Re: [Xen-devel] linux-arm-xen branch, commit access, etc.

2017-11-02 Thread Julien Grall
Hi, On 23/10/17 22:33, Stefano Stabellini wrote: On Fri, 20 Oct 2017, Julien Grall wrote: Julien, do you think we need to keep a special linux tree around for Xen on ARM testing in OSSTest or we can start using vanilla kernel releases? I would love to get rid of it, if you

Re: [Xen-devel] [PATCH for-4.10 v2 0/5] tools/dombuilder: Fixes and improvements to grant handling

2017-11-02 Thread Julien Grall
Hi, I noticed I forgot to CC Wei and Ian for committing this patch series. On 27/10/17 14:31, Julien Grall wrote: Hi Juergen, On 25/10/17 08:08, Juergen Gross wrote: On 24/10/17 18:06, Julien Grall wrote: Hi, I think this is 4.10 material (particularly patch #5). Juergen, would it be possib

Re: [Xen-devel] [PATCH for-4.10 v2 0/5] tools/dombuilder: Fixes and improvements to grant handling

2017-11-02 Thread Julien Grall
Actually CC them... On 02/11/17 13:44, Julien Grall wrote: Hi, I noticed I forgot to CC Wei and Ian for committing this patch series. On 27/10/17 14:31, Julien Grall wrote: Hi Juergen, On 25/10/17 08:08, Juergen Gross wrote: On 24/10/17 18:06, Julien Grall wrote: Hi, I think this is 4.10

Re: [Xen-devel] [BUG] win2008 guest cannot get ip through sriov

2017-11-02 Thread Julien Grall
Hi, On 27/10/17 21:16, Stefano Stabellini wrote: On Fri, 27 Oct 2017, Julien Grall wrote: On 27/10/17 08:27, Hao, Xudong wrote: This bug exist much long time, there are many discussion last year but not a solution then. I call out it now because there is a fix in qemu upstream: commit a8036336

Re: [Xen-devel] [PATCH v4 4/5] xentrace: enable per-VCPU extratime flag for RTDS

2017-11-02 Thread Meng Xu
Hi George, On Wed, Oct 25, 2017 at 10:31 AM, Wei Liu wrote: > > On Mon, Oct 23, 2017 at 02:50:31PM -0400, Meng Xu wrote: > > On Tue, Oct 17, 2017 at 4:10 AM, Dario Faggioli wrote: > > > On Wed, 2017-10-11 at 14:02 -0400, Meng Xu wrote: > > >> Change repl_budget event output for xentrace formats

Re: [Xen-devel] [PATCH for-4.10] tools/hotplug: create XEN_LOG_DIR at runtime

2017-11-02 Thread Julien Grall
On 30/10/17 14:39, Ian Jackson wrote: Wei Liu writes ("Re: [PATCH] tools/hotplug: create XEN_LOG_DIR at runtime"): On Fri, Oct 27, 2017 at 07:52:37PM +0300, Andrii Anisov wrote: From: Andrii Anisov /var/log could be a tmpfs mount point, so create xen subfolder at runtime. Signed-off-by: An

Re: [Xen-devel] [PATCH for-4.10] common/spinlock: Improve the output from check_lock() if it trips

2017-11-02 Thread Julien Grall
Hi Andrew, On 31/10/17 10:49, Andrew Cooper wrote: If check_lock() triggers, a crash will occur. Instead of simply identifying "the irq context was different", indicate the expected and current irq context. Signed-off-by: Andrew Cooper Release-acked-by: Julien Grall Cheers, --- CC: Geor

Re: [Xen-devel] Xen 4.10.0 RC1 test result

2017-11-02 Thread Julien Grall
Hi, On 30/10/17 02:21, Hao, Xudong wrote: -Original Message- From: Jan Beulich [mailto:jbeul...@suse.com] Sent: Friday, October 27, 2017 5:19 PM To: Hao, Xudong Cc: Julien Grall ; Lars Kurth ; xen-devel@lists.xen.org Subject: Re: [Xen-devel] Xen 4.10.0 RC1 test result On 27.10.17 at

Re: [Xen-devel] [PATCH for-4.10] common/multicall: Increase debugability for bad hypercalls

2017-11-02 Thread Julien Grall
Hi Andrew, On 31/10/17 17:18, Andrew Cooper wrote: While investigating an issue (in a new codepath I'd introduced, as it turns out), leaving interrupts disabled manifested as a subsequent op in the multicall failing a check_lock() test. The codepath would have hit the ASSERT_NOT_IN_ATOMIC on th

Re: [Xen-devel] USB Passthrough: Incorrect device detected in Domain U

2017-11-02 Thread Juergen Gross
On 02/11/17 08:37, Rakesh Awanti wrote: >>> Hello, >>>  >>> I'm trying USB passthrough on x86 and ARM platforms. I've taken the USB >>> frontend and backend code from  > >>So from where? > > > https://lists.xen.org/archives/html/xen-devel/2015-02/msg03245.html The backend driver was discarded a

[Xen-devel] [linux-linus test] 115475: regressions - FAIL

2017-11-02 Thread osstest service owner
flight 115475 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/115475/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-pair18 guests-nbd-mirror/debian fail REGR. vs. 114682 test-amd64-amd64-xl

Re: [Xen-devel] [PATCH for-4.10] gdbsx: prefer privcmd character device

2017-11-02 Thread Julien Grall
Hi Wei, On 01/11/17 10:20, Wei Liu wrote: Cc Julien and change tag. I think this is safe to be applied to 4.10. I agree. Release-acked-by: Julien Grall Cheers, On Tue, Oct 31, 2017 at 01:58:07PM -0700, Elena Ufimtseva wrote: On Tue, Oct 31, 2017 at 03:25:39PM +, Wei Liu wrote: On T

Re: [Xen-devel] [PATCH v3 for-next 3/4] xen/tmem: Convert the file common/tmem_xen.c to use typesafe MFN

2017-11-02 Thread Julien Grall
Hi Konrad, On 01/11/17 18:54, Konrad Rzeszutek Wilk wrote: On Wed, Nov 01, 2017 at 02:03:15PM +, Julien Grall wrote: The file common/tmem_xen.c is now converted to use typesafe. This is requiring to override the macro page_to_mfn to make it work with mfn_t. Note that all variables converte

Re: [Xen-devel] [PATCH RFC v2] Add SUPPORT.md

2017-11-02 Thread Konrad Rzeszutek Wilk
On Thu, Nov 02, 2017 at 10:46:20AM +, George Dunlap wrote: > On 11/01/2017 05:10 PM, Konrad Rzeszutek Wilk wrote: > > On Tue, Oct 24, 2017 at 04:22:38PM +0100, George Dunlap wrote: > >> On Fri, Sep 15, 2017 at 3:51 PM, Konrad Rzeszutek Wilk > >> wrote: > +### Soft-reset for PV guests > >>

Re: [Xen-devel] [RFC] ARM: New (Xen) VGIC design document

2017-11-02 Thread Andre Przywara
Hi, On 01/11/17 21:54, Stefano Stabellini wrote: > On Wed, 1 Nov 2017, Andre Przywara wrote: >> Hi Stefano, >> >> >> On 01/11/17 01:58, Stefano Stabellini wrote: >>> On Wed, 11 Oct 2017, Andre Przywara wrote: >> >> many thanks for going through all of this! > > No problems, and thanks for your wo

Re: [Xen-devel] [PATCH for-4.10 v2 3/5] tools/dombuilder: Switch to using gfn terminology for console and xenstore rings

2017-11-02 Thread Wei Liu
On Thu, Oct 12, 2017 at 08:19:07PM +0100, Andrew Cooper wrote: > The sole use of xc_dom_translated() and xc_dom_p2m() outside of the domain > builder is for libxl_dom() to translate the console and xenstore pfns back > into useful values. PV guest pfns are only interesting to the domain builder, >

Re: [Xen-devel] [RFC 0/4] TEE mediator framework + OP-TEE mediator

2017-11-02 Thread Volodymyr Babchuk
On Thu, Nov 02, 2017 at 01:17:26PM +, Julien Grall wrote: Hi Julien, > On 24/10/17 20:02, Volodymyr Babchuk wrote: > >>If it is not safe, this means you have a whitelist solution and > >>therefore > >>tie Xen to a specific OP-TEE version. So if you need to use a new > >>func

Re: [Xen-devel] pci-passthrough loses msi-x interrupts ability after domain destroy

2017-11-02 Thread Pasi Kärkkäinen
Hi, On Fri, Sep 22, 2017 at 03:25:00PM -0400, Konrad Rzeszutek Wilk wrote: > On Fri, Sep 22, 2017 at 09:35:40AM +0200, Sander Eikelenboom wrote: > > On 22/09/17 04:09, Christopher Clark wrote: > > > On Thu, Sep 21, 2017 at 1:27 PM, Sander Eikelenboom > > > wrote: > > >> > > >> On Thu, September 2

Re: [Xen-devel] Regression PCI passthrough from 4.5.5 to 4.6.0-rc1

2017-11-02 Thread Pasi Kärkkäinen
On Thu, Aug 24, 2017 at 09:23:16AM +0100, Roger Pau Monné wrote: > On Wed, Aug 23, 2017 at 07:13:00PM +0200, Andreas Kinzler wrote: > > > > > From a brief look it looks like this would be doable, but the way > > > > these flags are being communicated is rather ugly (the values used > > > > here > >

Re: [Xen-devel] Regression PCI passthrough from 4.5.5 to 4.6.0-rc1

2017-11-02 Thread Roger Pau Monné
On Thu, Nov 02, 2017 at 07:02:49PM +0200, Pasi Kärkkäinen wrote: > On Thu, Aug 24, 2017 at 09:23:16AM +0100, Roger Pau Monné wrote: > > On Wed, Aug 23, 2017 at 07:13:00PM +0200, Andreas Kinzler wrote: > > > > > > From a brief look it looks like this would be doable, but the way > > > > > these flag

Re: [Xen-devel] Regression PCI passthrough from 4.5.5 to 4.6.0-rc1

2017-11-02 Thread Pasi Kärkkäinen
On Thu, Nov 02, 2017 at 05:11:17PM +, Roger Pau Monné wrote: > On Thu, Nov 02, 2017 at 07:02:49PM +0200, Pasi Kärkkäinen wrote: > > On Thu, Aug 24, 2017 at 09:23:16AM +0100, Roger Pau Monné wrote: > > > On Wed, Aug 23, 2017 at 07:13:00PM +0200, Andreas Kinzler wrote: > > > > > > > From a brief

[Xen-devel] [PATCH v2] hw/display/xenfb: Simulate auto-repeat key events

2017-11-02 Thread Liang Yan
New tigervnc changes the way to send long pressed key, from "down up down up ..." to "down down ... up", it only affects xen pv console mode. I send a patch to latest kernel side, but it may have a fix in qemu backend for back compatible becase guest VMs may use very old kernel. This patch inserts

Re: [Xen-devel] [PATCH v1] x86/vvmx: don't enable vmcs shadowing for nested guests

2017-11-02 Thread Andrew Cooper
On 02/11/17 04:35, Tian, Kevin wrote: >> From: Sergey Dyasli [mailto:sergey.dya...@citrix.com] >> Sent: Monday, October 23, 2017 5:33 PM >> >> Running "./xtf_runner vvmx" in L1 Xen under L0 Xen produces the >> following result on H/W with VMCS shadowing: >> >> Test: vmxon >> Failure in test

Re: [Xen-devel] [PATCH] x86/cpuid: Enable new SSE/AVX/AVX512 cpu features

2017-11-02 Thread Konrad Rzeszutek Wilk
On Thu, Nov 02, 2017 at 08:59:20AM +0800, Zhong Yang wrote: > On Wed, Nov 01, 2017 at 03:29:16PM -0400, Konrad Rzeszutek Wilk wrote: > > On Fri, Oct 27, 2017 at 10:18:04PM +0800, Yang Zhong wrote: > > > Intel IceLake cpu has added new cpu features: AVX512VBMI2/GFNI/ > > > VAES/AVX512VNNI/AVX512BITA

Re: [Xen-devel] [Qemu-devel] [PATCH v2] hw/display/xenfb: Simulate auto-repeat key events

2017-11-02 Thread Peter Maydell
On 2 November 2017 at 17:18, Liang Yan wrote: > New tigervnc changes the way to send long pressed key, > from "down up down up ..." to "down down ... up", it only > affects xen pv console mode. I send a patch to latest > kernel side, but it may have a fix in qemu backend for > back compatible beca

Re: [Xen-devel] [PATCH RFC v2] Add SUPPORT.md

2017-11-02 Thread George Dunlap
On 10/27/2017 04:09 PM, NathanStuder wrote: > > > On 10/09/2017 10:14 AM, Lars Kurth wrote: >> >>> On 27 Sep 2017, at 13:57, Robert VanVossen >>> wrote: >>> >>> >>> >>> On 9/26/2017 3:12 AM, Dario Faggioli wrote: [Cc-list modified by removing someone and adding someone else] On M

Re: [Xen-devel] [Qemu-devel] [PATCH v2] hw/display/xenfb: Simulate auto-repeat key events

2017-11-02 Thread Daniel P. Berrange
On Thu, Nov 02, 2017 at 05:26:50PM +, Peter Maydell wrote: > On 2 November 2017 at 17:18, Liang Yan wrote: > > New tigervnc changes the way to send long pressed key, > > from "down up down up ..." to "down down ... up", it only > > affects xen pv console mode. I send a patch to latest > > kern

Re: [Xen-devel] [RFC 0/4] TEE mediator framework + OP-TEE mediator

2017-11-02 Thread Julien Grall
Hi Volodymyr, On 02/11/17 16:53, Volodymyr Babchuk wrote: On Thu, Nov 02, 2017 at 01:17:26PM +, Julien Grall wrote: On 24/10/17 20:02, Volodymyr Babchuk wrote: If it is not safe, this means you have a whitelist solution and therefore tie Xen to a specific OP-TEE version. So if you need to

Re: [Xen-devel] [Qemu-devel] [PATCH v2] hw/display/xenfb: Simulate auto-repeat key events

2017-11-02 Thread Liang Yan
Thanks for the reply. On 11/2/17 1:26 PM, Peter Maydell wrote: > On 2 November 2017 at 17:18, Liang Yan wrote: >> New tigervnc changes the way to send long pressed key, >> from "down up down up ..." to "down down ... up", it only >> affects xen pv console mode. I send a patch to latest >> kernel

Re: [Xen-devel] [RFC] ARM: New (Xen) VGIC design document

2017-11-02 Thread Stefano Stabellini
On Thu, 2 Nov 2017, Andre Przywara wrote: > (CC:ing some KVM/ARM folks involved in the VGIC) > > starting with the addition of the ITS support we were seeing more and > more issues with the current implementation of our ARM Generic Interrupt > Controller (GIC) emulation, th

[Xen-devel] [PATCH RFC 2/8] public/io/netif: add directory for backend parameters

2017-11-02 Thread Joao Martins
The proposed directory provides a mechanism for tools to control the maximum feature set of the device being provisioned by backend. The parameters/features include offloading features, number of queues etc. Signed-off-by: Joao Martins --- xen/include/public/io/netif.h | 16 1 f

[Xen-devel] [PATCH RFC 4/8] libxl: add backend_features to libxl_device_nic

2017-11-02 Thread Joao Martins
Adds "backend_features" to the libxl_device_nic structure to represent a set of features to be set on the device by the admin. These backend_features is a key value store representing an array of = , which would then be translated into (backend-only permissions) xenstore entries in the form of: /

[Xen-devel] [PATCH RFC 1/8] public/io/blkif: add directory for backend parameters

2017-11-02 Thread Joao Martins
The proposed directory provides a mechanism for tools to control the maximum feature set of the device being provisioned by backends. Examples include max ring page order, persistent grants, number of queues etc. Signed-off-by: Joao Martins --- xen/include/public/io/blkif.h | 14 ++

[Xen-devel] [PATCH RFC 0/8] libxl, xl, public/io: PV backends feature control

2017-11-02 Thread Joao Martins
Hey folks, Presented herewith is an attempt to implement PV backends feature control as discussed in the list (https://lists.xen.org/archives/html/xen-devel/2017-09/msg00766.html) Given that this a simple proposal hence I thought to include all changes involved in the same patchset such that eve

[Xen-devel] [PATCH RFC 5/8] libxlu: parse disk backend features parameters

2017-11-02 Thread Joao Martins
Any option name preceded by "require-" means a backend feature to be set. This is stored in key value structure which libxl will parse and tell blkback to override the specified features. An example would be a config containing: ... vcpus = 8 disk = [ "phy:/path/to/disk,hda,w,require-multi-queue-

[Xen-devel] [PATCH RFC 6/8] xl: parse vif backend features parameters

2017-11-02 Thread Joao Martins
Any option name preceded by "require-" means a backend feature to be {un,}set. This is stored in key value structure which libxl will parse and inform netback to override the specified features. An example would be a config containing: ... vcpus = 8 vif = ["bridge=br0,require-multi-queue-max-queu

[Xen-devel] [PATCH RFC 3/8] libxl: add backend_features to libxl_device_disk

2017-11-02 Thread Joao Martins
The function libxl__device_generic_add will have an additional argument whereby it adds a second set of entries visible to the backend only. These entries will then be used for devices thus overriding backend maximum feature set with this user-defined ones. libxl_device_disk.backend_features are a

[Xen-devel] [PATCH RFC 7/8] xen-blkback: frontend feature control

2017-11-02 Thread Joao Martins
Toolstack may write values to the "require" subdirectory in the backend main directory (e.g. backend/vbd/X/Y/). Read these values and use them when announcing those to the frontend. When backend scans frontend features the values set in the require directory take precedence, hence making no signifi

[Xen-devel] [PATCH RFC 8/8] xen-netback: frontend feature control

2017-11-02 Thread Joao Martins
Toolstack may write values to the "require" subdirectory in the backend main xenstore directory (e.g. backend/vif/X/Y/). Read these values and use them when announcing those to the frontend. When backend scans frontend features the values set in the require directory take precedence, hence making n

Re: [Xen-devel] [Qemu-devel] [PATCH v2] hw/display/xenfb: Simulate auto-repeat key events

2017-11-02 Thread Liang Yan
On 11/2/17 1:40 PM, Daniel P. Berrange wrote: > On Thu, Nov 02, 2017 at 05:26:50PM +, Peter Maydell wrote: >> On 2 November 2017 at 17:18, Liang Yan wrote: >>> New tigervnc changes the way to send long pressed key, >>> from "down up down up ..." to "down down ... up", it only >>> affects xen

[Xen-devel] Xen 4.10 RC3

2017-11-02 Thread Julien Grall
Hi all, Xen 4.10 RC3 is tagged. You can check that out from xen.git: git://xenbits.xen.org/xen.git 4.10.0-rc3 For your convenience there is also a tarball at: https://downloads.xenproject.org/release/xen/4.10.0-rc3/xen-4.10.0-rc3.tar.gz And the signature is at: https://downloads.xenproject.or

Re: [Xen-devel] [PATCH 0/9] x86/vvmx: Read instruction operands correctly on VM exit

2017-11-02 Thread Andrew Cooper
On 02/11/17 07:23, Tian, Kevin wrote: >> From: Andrew Cooper [mailto:andrew.coop...@citrix.com] >> Sent: Friday, October 27, 2017 1:59 AM >> >> On 26/10/17 18:03, Euan Harris wrote: >>> decode_vmx_inst() does not read instruction operands correctly on VM >> exit: >>> * It incorrectly uses vmx_inst

[Xen-devel] [PATCH] xen: xenbus_probe_frontend: mark expected switch fall-throughs

2017-11-02 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 146562 Addresses-Coverity-ID: 146563 Signed-off-by: Gustavo A. R. Silva --- drivers/xen/xenbus/xenbus_probe_frontend.c | 2 ++ 1 file changed, 2 insertions(+) diff

[Xen-devel] [PATCH] xen/pvcalls-front: mark expected switch fall-through

2017-11-02 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Notice that in this particular case I placed the "fall through" comment on its own line, which is what GCC is expecting to find. Signed-off-by: Gustavo A. R. Silva --- drivers/xen/pvcall

[Xen-devel] [linux-3.18 test] 115479: regressions - FAIL

2017-11-02 Thread osstest service owner
flight 115479 linux-3.18 real [real] http://logs.test-lab.xenproject.org/osstest/logs/115479/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-pygrub 17 guest-localmigrate/x10 fail REGR. vs. 115289 test-armhf-armhf-xl-

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

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

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

2017-11-02 Thread osstest service owner
flight 115478 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/115478/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf-pvopsbroken build-armhf-pvops 4 host-inst

[Xen-devel] [qemu-mainline test] 115484: regressions - FAIL

2017-11-02 Thread osstest service owner
flight 115484 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/115484/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i3866 xen-buildfail REGR. vs. 114507 build-amd64-xsm

Re: [Xen-devel] [PATCH v2 1/2] VMX: fix VMCS race on context-switch paths

2017-11-02 Thread Igor Druzhinin
On 27/10/17 18:42, Igor Druzhinin wrote: > On 16/02/17 11:15, Jan Beulich wrote: >> When __context_switch() is being bypassed during original context >> switch handling, the vCPU "owning" the VMCS partially loses control of >> it: It will appear non-running to remote CPUs, and hence their attempt >

Re: [Xen-devel] [RFC 0/4] TEE mediator framework + OP-TEE mediator

2017-11-02 Thread Volodymyr Babchuk
On Thu, Nov 02, 2017 at 05:49:12PM +, Julien Grall wrote: Hi Julien, > On 02/11/17 16:53, Volodymyr Babchuk wrote: > >On Thu, Nov 02, 2017 at 01:17:26PM +, Julien Grall wrote: > >>On 24/10/17 20:02, Volodymyr Babchuk wrote: > If it is not safe, this means you have a whitelist solu

Re: [Xen-devel] [PATCH v6 1/1] xen/time: do not decrease steal time after live migration on xen

2017-11-02 Thread Boris Ostrovsky
On 11/01/2017 09:19 PM, Dongli Zhang wrote: > Hi Boris, > > I have received from l...@intel.com that the prior version of patch hit issue > during compilation with aarch64-linux-gnu-gcc. I think this patch reviewed by > you would hit the same compiling issue on arm64 (there is no issue with > x86_

Re: [Xen-devel] [PATCH RFC v2] Add SUPPORT.md

2017-11-02 Thread NathanStuder
On 11/02/2017 01:34 PM, George Dunlap wrote: > On 10/27/2017 04:09 PM, NathanStuder wrote: >> >> >> On 10/09/2017 10:14 AM, Lars Kurth wrote: >>> On 27 Sep 2017, at 13:57, Robert VanVossen wrote: On 9/26/2017 3:12 AM, Dario Faggioli wrote: > [Cc-list modified b

Re: [Xen-devel] [PATCH v2] xen: support priv-mapping in an HVM tools domain

2017-11-02 Thread Boris Ostrovsky
On 11/02/2017 05:30 AM, Paul Durrant wrote: >> -Original Message- >> From: Boris Ostrovsky [mailto:boris.ostrov...@oracle.com] >> Sent: 01 November 2017 18:19 >> To: Juergen Gross ; Paul Durrant >> ; x...@kernel.org; xen- >> de...@lists.xenproject.org; linux-ker...@vger.kernel.org >> Cc: Th

[Xen-devel] [xen-unstable-smoke test] 115497: regressions - FAIL

2017-11-02 Thread osstest service owner
flight 115497 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/115497/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-libvirt 15 guest-saverestorefail REGR. vs. 115490 test-amd64-a

[Xen-devel] [xen-unstable baseline-only test] 72405: regressions - FAIL

2017-11-02 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 72405 xen-unstable real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/72405/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qcow219 guest-start/deb

[Xen-devel] [PATCH] xen/time: Return -ENODEV from xen_get_wallclock()

2017-11-02 Thread Boris Ostrovsky
For any other error sync_cmos_clock() will reschedule itself every second or so, for no good reason. Suggested-by: Paolo Bonzini Signed-off-by: Boris Ostrovsky --- arch/x86/xen/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c i

Re: [Xen-devel] [PATCH v6 1/1] xen/time: do not decrease steal time after live migration on xen

2017-11-02 Thread Dongli Zhang
Hi Boris, On 11/03/2017 04:28 AM, Boris Ostrovsky wrote: > On 11/01/2017 09:19 PM, Dongli Zhang wrote: >> Hi Boris, >> >> I have received from l...@intel.com that the prior version of patch hit issue >> during compilation with aarch64-linux-gnu-gcc. I think this patch reviewed by >> you would hit

  1   2   >