Re: [Xen-devel] [PATCH] Revert "swiotlb: remove SWIOTLB_MAP_ERROR"

2019-03-05 Thread Arnd Bergmann
On Tue, Mar 5, 2019 at 12:56 AM Robin Murphy wrote: > On 2019-03-04 7:59 pm, Arnd Bergmann wrote: > > This reverts commit b907e20508d0 ("swiotlb: remove SWIOTLB_MAP_ERROR"), > > which > > introduced an overflow warning in configurations that have a larger > > dma_addr_t than phys_addr_t: > > > >

Re: [Xen-devel] [PATCH] xen: avoid link error on ARM

2019-03-05 Thread Arnd Bergmann
On Tue, Mar 5, 2019 at 7:39 AM Juergen Gross wrote: > > Can we avoid that ifdef in the Makefile? > > I'd rather have an architecture independant builtin driver added which > is always included for CONFIG_XEN. This would allow to move redundant > stuff from arch/*/xen/ into it (e.g. xen_vcpu_id).

Re: [Xen-devel] standalone PCI passthrough emulator

2019-03-05 Thread Paul Durrant
> -Original Message- > From: Tian, Kevin [mailto:kevin.t...@intel.com] > Sent: 05 March 2019 02:45 > To: Paul Durrant ; xen-devel > (xen-devel@lists.xenproject.org) de...@lists.xenproject.org> > Subject: RE: standalone PCI passthrough emulator > > > From: Paul Durrant [mailto:paul.durr..

[Xen-devel] [qemu-mainline test] 133576: tolerable FAIL - PUSHED

2019-03-05 Thread osstest service owner
flight 133576 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/133576/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-xl-qemuu-ws16-amd64 17 guest-stopfail like 133552 test-armhf-armhf-libvirt 14 sav

Re: [Xen-devel] [PATCH] xen: avoid link error on ARM

2019-03-05 Thread Juergen Gross
On 05/03/2019 09:34, Arnd Bergmann wrote: > On Tue, Mar 5, 2019 at 7:39 AM Juergen Gross wrote: > >> >> Can we avoid that ifdef in the Makefile? >> >> I'd rather have an architecture independant builtin driver added which >> is always included for CONFIG_XEN. This would allow to move redundant >>

Re: [Xen-devel] Xen ARM GPU passthrough without IOMMU

2019-03-05 Thread Julien Grall
Hi, On 3/5/19 1:55 AM, jinchen wrote: > Hi, Hello, > I’m using the NXP i.mx8qxp men board and want to create an Android domu on Xen, > but this board doesn’t have IOMMU. Does anyone knows that can I passthrough GPU without IOMMU on it? Device DMA-capable passthroug

Re: [Xen-devel] [PATCH] xen: avoid link error on ARM

2019-03-05 Thread Arnd Bergmann
On Tue, Mar 5, 2019 at 10:05 AM Juergen Gross wrote: > > On 05/03/2019 09:34, Arnd Bergmann wrote: > > On Tue, Mar 5, 2019 at 7:39 AM Juergen Gross wrote: > > > >> > >> Can we avoid that ifdef in the Makefile? > >> > >> I'd rather have an architecture independant builtin driver added which > >> i

Re: [Xen-devel] [PATCH] Revert "swiotlb: remove SWIOTLB_MAP_ERROR"

2019-03-05 Thread Julien Grall
Hi Robin, On 3/4/19 11:56 PM, Robin Murphy wrote: On 2019-03-04 7:59 pm, Arnd Bergmann wrote: This reverts commit b907e20508d0 ("swiotlb: remove SWIOTLB_MAP_ERROR"), which introduced an overflow warning in configurations that have a larger dma_addr_t than phys_addr_t: In file included from in

Re: [Xen-devel] [PATCH] Revert "swiotlb: remove SWIOTLB_MAP_ERROR"

2019-03-05 Thread Julien Grall
Hi Arnd, On 3/5/19 8:16 AM, Arnd Bergmann wrote: On Tue, Mar 5, 2019 at 12:56 AM Robin Murphy wrote: On 2019-03-04 7:59 pm, Arnd Bergmann wrote: This reverts commit b907e20508d0 ("swiotlb: remove SWIOTLB_MAP_ERROR"), which introduced an overflow warning in configurations that have a larger dm

Re: [Xen-devel] [PATCH RFC-for-4.12] tools/xen-foreign: Update python scripts to be Py3 compatible

2019-03-05 Thread Wei Liu
On Mon, Mar 04, 2019 at 06:31:48PM +, Andrew Cooper wrote: > The issues are: > * dict.has_key() was completely removed in Py3 > * dict.keys() is an iterable rather than list in Py3, so .sort() doesn't > work. > * list.sort(cmp=) was deprecated in Py2.4 and removed in Py3. Replace it >w

Re: [Xen-devel] [PATCH RFC-for-4.12] tools/xen-foreign: Update python scripts to be Py3 compatible

2019-03-05 Thread Anthony PERARD
On Mon, Mar 04, 2019 at 07:00:11PM +, George Dunlap wrote: > checking for PyArg_ParseTuple in -lpython... no > configure: error: Unable to find a suitable python development library > configure: error: ./configure failed for tools > > Note the error with the VERSION above; that results in look

Re: [Xen-devel] [PATCH v2] xen/ACPI: Switch to bitmap_zalloc()

2019-03-05 Thread Juergen Gross
On 04/03/2019 10:31, Andy Shevchenko wrote: > Switch to bitmap_zalloc() to show clearly what we are allocating. > Besides that it returns pointer of bitmap type instead of opaque void *. > > Signed-off-by: Andy Shevchenko Pushed to xen/tip.git for-linus-5.1a Juergen __

Re: [Xen-devel] [PATCH] [RESEND] [v3] xen: remove pre-xen3 fallback handlers

2019-03-05 Thread Juergen Gross
On 04/03/2019 21:52, Arnd Bergmann wrote: > The legacy hypercall handlers were originally added with > a comment explaining that "copying the argument structures in > HYPERVISOR_event_channel_op() and HYPERVISOR_physdev_op() into the local > variable is sufficiently safe" and only made sure to not

Re: [Xen-devel] [PATCH RFC-for-4.12] tools/xen-foreign: Update python scripts to be Py3 compatible

2019-03-05 Thread Juergen Gross
On 04/03/2019 20:00, George Dunlap wrote: > On 3/4/19 6:31 PM, Andrew Cooper wrote: >> The issues are: >> * dict.has_key() was completely removed in Py3 >> * dict.keys() is an iterable rather than list in Py3, so .sort() doesn't >> work. >> * list.sort(cmp=) was deprecated in Py2.4 and removed

[Xen-devel] [distros-debian-snapshot test] 83704: trouble: blocked/broken

2019-03-05 Thread Platform Team regression test user
flight 83704 distros-debian-snapshot real [real] http://osstest.xensource.com/osstest/logs/83704/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf-pvopsbroken build-i386

Re: [Xen-devel] [PATCH RFC-for-4.12] tools/xen-foreign: Update python scripts to be Py3 compatible

2019-03-05 Thread Wei Liu
On Tue, Mar 05, 2019 at 12:41:53PM +0100, Juergen Gross wrote: > On 04/03/2019 20:00, George Dunlap wrote: > > On 3/4/19 6:31 PM, Andrew Cooper wrote: > >> The issues are: > >> * dict.has_key() was completely removed in Py3 > >> * dict.keys() is an iterable rather than list in Py3, so .sort() doe

Re: [Xen-devel] [PATCH RFC-for-4.12] tools/xen-foreign: Update python scripts to be Py3 compatible

2019-03-05 Thread George Dunlap
On 3/5/19 12:04 PM, Wei Liu wrote: > On Tue, Mar 05, 2019 at 12:41:53PM +0100, Juergen Gross wrote: >> On 04/03/2019 20:00, George Dunlap wrote: >>> On 3/4/19 6:31 PM, Andrew Cooper wrote: The issues are: * dict.has_key() was completely removed in Py3 * dict.keys() is an iterable r

[Xen-devel] Xen Security Advisory 291 v2 - x86/PV: page type reference counting issue with failed IOMMU update

2019-03-05 Thread Xen . org security team
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Xen Security Advisory XSA-291 version 2 x86/PV: page type reference counting issue with failed IOMMU update UPDATES IN VERSION 2 Metadata updated to remove dependency on XSA-

[Xen-devel] Xen Security Advisory 285 v2 - race with pass-through device hotplug

2019-03-05 Thread Xen . org security team
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Xen Security Advisory XSA-285 version 2 race with pass-through device hotplug UPDATES IN VERSION 2 Metadata updated to remove dependency on XSA-283. Public re

[Xen-devel] Xen Security Advisory 292 v2 - x86: insufficient TLB flushing when using PCID

2019-03-05 Thread Xen . org security team
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Xen Security Advisory XSA-292 version 2 x86: insufficient TLB flushing when using PCID UPDATES IN VERSION 2 Metadata updated to remove dependency on XSA-283. Publi

[Xen-devel] Xen Security Advisory 287 v2 - x86: steal_page violates page_struct access discipline

2019-03-05 Thread Xen . org security team
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Xen Security Advisory XSA-287 version 2 x86: steal_page violates page_struct access discipline UPDATES IN VERSION 2 Metadata updated to remove dependency on XSA-283.

[Xen-devel] Xen Security Advisory 288 v2 - x86: Inconsistent PV IOMMU discipline

2019-03-05 Thread Xen . org security team
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Xen Security Advisory XSA-288 version 2 x86: Inconsistent PV IOMMU discipline UPDATES IN VERSION 2 Metadata updated to remove dependency on XSA-283. 4.7 backp

[Xen-devel] Xen Security Advisory 290 v2 - missing preemption in x86 PV page table unvalidation

2019-03-05 Thread Xen . org security team
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Xen Security Advisory XSA-290 version 2 missing preemption in x86 PV page table unvalidation UPDATES IN VERSION 2 Metadata updated to remove dependency on XSA-283. Pu

[Xen-devel] Xen Security Advisory 284 v2 - grant table transfer issues on large hosts

2019-03-05 Thread Xen . org security team
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Xen Security Advisory XSA-284 version 2 grant table transfer issues on large hosts UPDATES IN VERSION 2 Metadata updated to remove dependency on XSA-283. Public

Re: [Xen-devel] [PATCH L1TF v8 9/9] common/grant_table: block speculative out-of-bound accesses

2019-03-05 Thread Jan Beulich
>>> On 04.03.19 at 09:15, wrote: > On 2/28/19 11:00, Jan Beulich wrote: > On 27.02.19 at 14:01, wrote: >>> On 2/25/19 17:46, Jan Beulich wrote: I would really like to ask that I (or someone else) don't need to go through and list remaining version checks again - after all I had

[Xen-devel] Xen Security Advisory 294 v2 - x86 shadow: Insufficient TLB flushing when using PCID

2019-03-05 Thread Xen . org security team
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Xen Security Advisory XSA-294 version 2 x86 shadow: Insufficient TLB flushing when using PCID UPDATES IN VERSION 2 Public release. ISSUE DESCRIPTION =

Re: [Xen-devel] [PATCH RFC-for-4.12] tools/xen-foreign: Update python scripts to be Py3 compatible

2019-03-05 Thread Juergen Gross
On 05/03/2019 13:19, George Dunlap wrote: > On 3/5/19 12:04 PM, Wei Liu wrote: >> On Tue, Mar 05, 2019 at 12:41:53PM +0100, Juergen Gross wrote: >>> On 04/03/2019 20:00, George Dunlap wrote: On 3/4/19 6:31 PM, Andrew Cooper wrote: > The issues are: > * dict.has_key() was completely re

Re: [Xen-devel] [PATCH RFC-for-4.12] tools/xen-foreign: Update python scripts to be Py3 compatible

2019-03-05 Thread George Dunlap
On 3/5/19 12:30 PM, Juergen Gross wrote: > On 05/03/2019 13:19, George Dunlap wrote: >> On 3/5/19 12:04 PM, Wei Liu wrote: >>> On Tue, Mar 05, 2019 at 12:41:53PM +0100, Juergen Gross wrote: On 04/03/2019 20:00, George Dunlap wrote: > On 3/4/19 6:31 PM, Andrew Cooper wrote: >> The issue

Re: [Xen-devel] [PATCH RFC-for-4.12] tools/xen-foreign: Update python scripts to be Py3 compatible

2019-03-05 Thread George Dunlap
On 3/5/19 12:31 PM, George Dunlap wrote: > On 3/5/19 12:30 PM, Juergen Gross wrote: >> On 05/03/2019 13:19, George Dunlap wrote: >>> On 3/5/19 12:04 PM, Wei Liu wrote: On Tue, Mar 05, 2019 at 12:41:53PM +0100, Juergen Gross wrote: > On 04/03/2019 20:00, George Dunlap wrote: >> On 3/4/1

Re: [Xen-devel] [PATCH RFC-for-4.12] tools/xen-foreign: Update python scripts to be Py3 compatible

2019-03-05 Thread Juergen Gross
On 05/03/2019 13:33, George Dunlap wrote: > On 3/5/19 12:31 PM, George Dunlap wrote: >> On 3/5/19 12:30 PM, Juergen Gross wrote: >>> On 05/03/2019 13:19, George Dunlap wrote: On 3/5/19 12:04 PM, Wei Liu wrote: > On Tue, Mar 05, 2019 at 12:41:53PM +0100, Juergen Gross wrote: >> On 04/03

[Xen-devel] [PATCH for-4.12] README: Document python2 dependency

2019-03-05 Thread George Dunlap
Much of the tools and configure makefile actually have a python2 dependency; specify this. It also assumes that `python` points to `python2`; document how to work around this on systems where this is false. Also update second version requirement listed to match the first. Signed-off-by: George D

Re: [Xen-devel] [PATCH for-4.12] README: Document python2 dependency

2019-03-05 Thread Wei Liu
On Tue, Mar 05, 2019 at 12:48:52PM +, George Dunlap wrote: > Much of the tools and configure makefile actually have a python2 > dependency; specify this. It also assumes that `python` points to `python2`; > document how to work around this on systems where this is false. > > Also update secon

Re: [Xen-devel] [PATCH for-4.12] README: Document python2 dependency

2019-03-05 Thread Juergen Gross
On 05/03/2019 13:48, George Dunlap wrote: > Much of the tools and configure makefile actually have a python2 > dependency; specify this. It also assumes that `python` points to `python2`; > document how to work around this on systems where this is false. > > Also update second version requirement

Re: [Xen-devel] [PATCH for-4.12 RFC] xen/console: Handle NUL character in buffer sent via CONSOLEIO_write

2019-03-05 Thread Juergen Gross
On 27/02/2019 11:45, Julien Grall wrote: > (+ Juergen Gross as RM) > > I forgot to CC Juergen for this. > > On 2/26/19 11:03 PM, Julien Grall wrote: >> After upgrading Debian to Buster, I started noticing console mangling >> when using zsh. This is happenning because output sent by zsh to the >>

[Xen-devel] [PATCH 1/2 for-4.12] xen: introduce VCPUOP_register_runstate_phys_memory_area hypercall

2019-03-05 Thread Andrii Anisov
From: Andrii Anisov The hypercall employs the same vcpu_register_runstate_memory_area structure for the interface, but requires registered area to not cross a page boundary. Signed-off-by: Andrii Anisov --- xen/arch/arm/domain.c | 39 ++--- xen/arch/x86/domain.c

[Xen-devel] [PATCH 2/2 for-4.12] xen: implement VCPUOP_register_runstate_phys_memory_area

2019-03-05 Thread Andrii Anisov
From: Andrii Anisov VCPUOP_register_runstate_phys_memory_area is implemented via runstate area mapping. Signed-off-by: Andrii Anisov --- xen/arch/arm/domain.c| 22 ++- xen/arch/x86/domain.c| 34 ++-- xen/common/domain.c | 92

[Xen-devel] [PATCH 0/2 for-4.12] Introduce runstate area registration with phys address

2019-03-05 Thread Andrii Anisov
From: Andrii Anisov Following discussion [1] it is introduced and implemented a runstate registration interface which uses guest's phys address instead of a virtual one. The new hypercall employes the same data structures as a predecessor, but expects the vcpu_runstate_info structure to not cross

Re: [Xen-devel] [PATCH 0/2 for-4.12] Introduce runstate area registration with phys address

2019-03-05 Thread Juergen Gross
On 05/03/2019 14:14, Andrii Anisov wrote: > From: Andrii Anisov > > Following discussion [1] it is introduced and implemented a runstate > registration interface which uses guest's phys address instead of a virtual > one. > The new hypercall employes the same data structures as a predecessor, bu

[Xen-devel] [PATCH 0/3] today's XSAs assorted 4.12 candidate follow-up

2019-03-05 Thread Jan Beulich
At least patch 1 is a clear candidate for 4.12; the others are less clear, but I wanted to put them on the table nevertheless. The patches are grouped together just because of the XSA relationship; they don't depend on one another. 1: x86/mm: fix #GP(0) in switch_cr3_cr4() 2: IOMMU/x86: make page

[Xen-devel] [PATCH 1/3] x86/mm: fix #GP(0) in switch_cr3_cr4()

2019-03-05 Thread Jan Beulich
With "pcid=no-xpti" and opposite XPTI settings in two 64-bit PV domains (achievable with one of "xpti=no-dom0" or "xpti=no-domu"), switching from a PCID-disabled to a PCID-enabled 64-bit PV domain fails to set CR4.PCIDE in time, as CR4.PGE would not be set in either (see pv_guest_cr4_to_real_cr4(),

[Xen-devel] [PATCH 2/3] IOMMU/x86: make page type checks consistent when mapping pages

2019-03-05 Thread Jan Beulich
There are currently three more or less different checks: - _get_page_type() adjusts the IOMMU mappings according to the new type alone, - arch_iommu_populate_page_table() wants just the type to be PGT_writable_page, - iommu_hwdom_init() additionally permits all other types with a type refcoun

Re: [Xen-devel] Xen ARM GPU passthrough without IOMMU

2019-03-05 Thread Andrii Anisov
Hello, On 05.03.19 11:15, Julien Grall wrote: I am not familiar with Android running in guest. CCing some people that may know. Running Android in DomU is a pretty long story. And the initial thread topic is GPU passthrough without IOMMU. So, Jinchen, could you please describe in details the

Re: [Xen-devel] [PATCH 1/3] x86/mm: fix #GP(0) in switch_cr3_cr4()

2019-03-05 Thread Juergen Gross
On 05/03/2019 14:25, Jan Beulich wrote: > With "pcid=no-xpti" and opposite XPTI settings in two 64-bit PV domains > (achievable with one of "xpti=no-dom0" or "xpti=no-domu"), switching > from a PCID-disabled to a PCID-enabled 64-bit PV domain fails to set > CR4.PCIDE in time, as CR4.PGE would not b

[Xen-devel] [PATCH 3/3] memory: restrict XENMEM_remove_from_physmap to translated guests

2019-03-05 Thread Jan Beulich
The commit re-introducing it (14eb3b41d0 ["xen: reinstate previously unused XENMEM_remove_from_physmap hypercall"]) as well as the one having originally introduced it (d818f3cb7c ["hvm: Use main memory for video memory"]) and the one then purging it again (78c3097e4f ["Remove unused XENMEM_remove_f

[Xen-devel] [PATCH] [v2] xen: avoid link error on ARM

2019-03-05 Thread Arnd Bergmann
Building the privcmd code as a loadable module on ARM, we get a link error due to the private cache management functions: ERROR: "__sync_icache_dcache" [drivers/xen/xen-privcmd.ko] undefined! Move the code into a new file that is always built in when Xen is enabled, as suggested by Juergen Gross.

Re: [Xen-devel] [PATCH 0/2 for-4.12] Introduce runstate area registration with phys address

2019-03-05 Thread Andrii Anisov
Hello Juergen, On 05.03.19 15:20, Juergen Gross wrote: No new features for 4.12. This series will have to wait until 4.13. This is rather a complex fix for [1]. [1] https://lists.xenproject.org/archives/html/xen-devel/2019-01/msg02379.html -- Sincerely, Andrii Anisov. __

Re: [Xen-devel] [PATCH] [v2] xen: avoid link error on ARM

2019-03-05 Thread Juergen Gross
On 05/03/2019 14:30, Arnd Bergmann wrote: > Building the privcmd code as a loadable module on ARM, we get > a link error due to the private cache management functions: > > ERROR: "__sync_icache_dcache" [drivers/xen/xen-privcmd.ko] undefined! > > Move the code into a new file that is always built

Re: [Xen-devel] Xen ARM GPU passthrough without IOMMU

2019-03-05 Thread Jinch
> 在 2019年3月5日,下午9:26,Andrii Anisov 写道: > > Hello, > > On 05.03.19 11:15, Julien Grall wrote: >> I am not familiar with Android running in guest. CCing some people that may >> know. > Running Android in DomU is a pretty long story. And the initial thread topic > is GPU passthrough without IOM

Re: [Xen-devel] [PATCH 0/2 for-4.12] Introduce runstate area registration with phys address

2019-03-05 Thread Julien Grall
On 3/5/19 1:32 PM, Andrii Anisov wrote: Hello Juergen, Hi, On 05.03.19 15:20, Juergen Gross wrote: No new features for 4.12. This series will have to wait until 4.13. This is rather a complex fix for [1]. I will back Juergen here. As I said in that thread, I don't consider it as a criti

Re: [Xen-devel] [PATCH] [v2] xen: avoid link error on ARM

2019-03-05 Thread Boris Ostrovsky
On 3/5/19 8:30 AM, Arnd Bergmann wrote: > > diff --git a/drivers/xen/privcmd.c b/drivers/xen/privcmd.c > index b24ddac1604b..290b6aca7e1d 100644 > --- a/drivers/xen/privcmd.c > +++ b/drivers/xen/privcmd.c > @@ -723,26 +723,6 @@ static long privcmd_ioctl_restrict(struct file *file, > void __user

Re: [Xen-devel] [PATCH 0/2 for-4.12] Introduce runstate area registration with phys address

2019-03-05 Thread Juergen Gross
On 05/03/2019 14:32, Andrii Anisov wrote: > Hello Juergen, > > On 05.03.19 15:20, Juergen Gross wrote: >> No new features for 4.12. This series will have to wait until 4.13. > > This is rather a complex fix for [1]. > > [1] > https://lists.xenproject.org/archives/html/xen-devel/2019-01/msg02379.

Re: [Xen-devel] [PATCH 0/2 for-4.12] Introduce runstate area registration with phys address

2019-03-05 Thread Andrii Anisov
On 05.03.19 15:44, Juergen Gross wrote: On 05/03/2019 14:32, Andrii Anisov wrote: Hello Juergen, On 05.03.19 15:20, Juergen Gross wrote: No new features for 4.12. This series will have to wait until 4.13. This is rather a complex fix for [1]. [1] https://lists.xenproject.org/archives/html

Re: [Xen-devel] [PATCH 2/3] IOMMU/x86: make page type checks consistent when mapping pages

2019-03-05 Thread Juergen Gross
On 05/03/2019 14:26, Jan Beulich wrote: > There are currently three more or less different checks: > - _get_page_type() adjusts the IOMMU mappings according to the new type > alone, > - arch_iommu_populate_page_table() wants just the type to be > PGT_writable_page, > - iommu_hwdom_init() additi

Re: [Xen-devel] [PATCH 3/3] memory: restrict XENMEM_remove_from_physmap to translated guests

2019-03-05 Thread Juergen Gross
On 05/03/2019 14:28, Jan Beulich wrote: > The commit re-introducing it (14eb3b41d0 ["xen: reinstate previously > unused XENMEM_remove_from_physmap hypercall"]) as well as the one having > originally introduced it (d818f3cb7c ["hvm: Use main memory for video > memory"]) and the one then purging it a

Re: [Xen-devel] [PATCH 0/2 for-4.12] Introduce runstate area registration with phys address

2019-03-05 Thread Julien Grall
Hi, On 3/5/19 1:14 PM, Andrii Anisov wrote: The interface is implemented in a way vcpu_runstate_info structure is mapped to the hypervisor on the hypercall processing and is directly accessed during its updates. I had some concern about this solution in [1] that have not been addressed nor ev

Re: [Xen-devel] [PATCH 1/3] x86/mm: fix #GP(0) in switch_cr3_cr4()

2019-03-05 Thread Andrew Cooper
On 05/03/2019 13:25, Jan Beulich wrote: > With "pcid=no-xpti" and opposite XPTI settings in two 64-bit PV domains > (achievable with one of "xpti=no-dom0" or "xpti=no-domu"), switching > from a PCID-disabled to a PCID-enabled 64-bit PV domain fails to set > CR4.PCIDE in time, as CR4.PGE would not b

Re: [Xen-devel] [PATCH for-4.12 RFC] xen/console: Handle NUL character in buffer sent via CONSOLEIO_write

2019-03-05 Thread Julien Grall
Hi Juergen, On 3/5/19 12:57 PM, Juergen Gross wrote: On 27/02/2019 11:45, Julien Grall wrote: (+ Juergen Gross as RM) I forgot to CC Juergen for this. On 2/26/19 11:03 PM, Julien Grall wrote: After upgrading Debian to Buster, I started noticing console mangling when using zsh. This is happen

Re: [Xen-devel] [PATCH 0/2 for-4.12] Introduce runstate area registration with phys address

2019-03-05 Thread Andrii Anisov
Hello Julien, On 05.03.19 15:39, Julien Grall wrote: This is just an annoyance in debug build because of the number of message printed. It is not an annoyance, but inaccurate runstate info passed (actually not passed) to KPTI enabled guests. Debug build only makes the problem visible. -- Si

Re: [Xen-devel] [PATCH for-4.12 RFC] xen/console: Handle NUL character in buffer sent via CONSOLEIO_write

2019-03-05 Thread Juergen Gross
On 05/03/2019 15:08, Julien Grall wrote: > Hi Juergen, > > On 3/5/19 12:57 PM, Juergen Gross wrote: >> On 27/02/2019 11:45, Julien Grall wrote: >>> (+ Juergen Gross as RM) >>> >>> I forgot to CC Juergen for this. >>> >>> On 2/26/19 11:03 PM, Julien Grall wrote: After upgrading Debian to Buste

[Xen-devel] Unable to copy the kernel in the hwdom memory

2019-03-05 Thread Bean Huo (beanhuo)
Hi, I just try to enable xen 4.12 on my one platform, but got this error. And if I choose 4.8 version Xen. It works, doesn't have this. If there is someone can give me some deep debugging tip, that will be very appreciative. Thanks (XEN) P2M: 40-bit IPA with 40-bit PA and 8-bit VMID (XEN) P2M

Re: [Xen-devel] [PATCH 0/2 for-4.12] Introduce runstate area registration with phys address

2019-03-05 Thread Julien Grall
Hi, On 3/5/19 2:11 PM, Andrii Anisov wrote: Hello Julien, On 05.03.19 15:39, Julien Grall wrote: This is just an annoyance in debug build because of the number of message printed. It is not an annoyance, but inaccurate runstate info passed (actually not passed) to KPTI enabled guests. The run

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

2019-03-05 Thread osstest service owner
flight 133592 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/133592/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt 13 migrate-support-checkfail never pass test-arm64-arm64-xl-xsm 1

[Xen-devel] ovmf fails to compile in 4.12-rc4

2019-03-05 Thread Olaf Hering
OVMF does not build itself with -fPIC, as a result it fails to compile with recent toolchains. Luckily ovmf.git#master has changes for BaseTools/Source/C/Makefiles/header.makefile to recognize EXTRA_OPTFLAGS, which can be used as vehicle to pass the required CFLAGS. What are the options to upgra

Re: [Xen-devel] [PATCH] [v2] xen: avoid link error on ARM

2019-03-05 Thread Juergen Gross
On 05/03/2019 14:43, Boris Ostrovsky wrote: > On 3/5/19 8:30 AM, Arnd Bergmann wrote: >> >> diff --git a/drivers/xen/privcmd.c b/drivers/xen/privcmd.c >> index b24ddac1604b..290b6aca7e1d 100644 >> --- a/drivers/xen/privcmd.c >> +++ b/drivers/xen/privcmd.c >> @@ -723,26 +723,6 @@ static long privc

Re: [Xen-devel] [PATCH 2/3] IOMMU/x86: make page type checks consistent when mapping pages

2019-03-05 Thread Jan Beulich
>>> On 05.03.19 at 14:50, wrote: > On 05/03/2019 14:26, Jan Beulich wrote: >> There are currently three more or less different checks: >> - _get_page_type() adjusts the IOMMU mappings according to the new type >> alone, >> - arch_iommu_populate_page_table() wants just the type to be >> PGT_wri

Re: [Xen-devel] [PATCH 3/3] memory: restrict XENMEM_remove_from_physmap to translated guests

2019-03-05 Thread Jan Beulich
>>> On 05.03.19 at 14:53, wrote: > On 05/03/2019 14:28, Jan Beulich wrote: >> The commit re-introducing it (14eb3b41d0 ["xen: reinstate previously >> unused XENMEM_remove_from_physmap hypercall"]) as well as the one having >> originally introduced it (d818f3cb7c ["hvm: Use main memory for video >>

Re: [Xen-devel] [PATCH 2/3] IOMMU/x86: make page type checks consistent when mapping pages

2019-03-05 Thread Juergen Gross
On 05/03/2019 16:21, Jan Beulich wrote: On 05.03.19 at 14:50, wrote: >> On 05/03/2019 14:26, Jan Beulich wrote: >>> There are currently three more or less different checks: >>> - _get_page_type() adjusts the IOMMU mappings according to the new type >>> alone, >>> - arch_iommu_populate_page_

Re: [Xen-devel] [PATCH for-4.12 RFC] xen/console: Handle NUL character in buffer sent via CONSOLEIO_write

2019-03-05 Thread Julien Grall
Hi Juergen, On 3/5/19 2:12 PM, Juergen Gross wrote: On 05/03/2019 15:08, Julien Grall wrote: Hi Juergen, On 3/5/19 12:57 PM, Juergen Gross wrote: On 27/02/2019 11:45, Julien Grall wrote: (+ Juergen Gross as RM) I forgot to CC Juergen for this. On 2/26/19 11:03 PM, Julien Grall wrote: Afte

[Xen-devel] [PATCH] tools/libfsimage: Add `XEN' to environment variable name

2019-03-05 Thread Ian Jackson
This library, which is private to Xen and was properly namespaced in 1a814711881beb17f073f5f57e27e5bd4da1b956 tools/libfsimage: Add `xen' to .h names and principal .so name honours an environment variable to override the directory where shared objects (ie filesystem plugins) are to be loaded fr

Re: [Xen-devel] [PATCH for-4.12] tools/libfsimage: Add `XEN' to environment variable name

2019-03-05 Thread Ian Jackson
Ian Jackson writes ("[PATCH] tools/libfsimage: Add `XEN' to environment variable name"): > This library, which is private to Xen and was properly namespaced in > 1a814711881beb17f073f5f57e27e5bd4da1b956 > tools/libfsimage: Add `xen' to .h names and principal .so name > honours an environment v

Re: [Xen-devel] [PATCH] tools/libfsimage: Add `XEN' to environment variable name

2019-03-05 Thread Anthony PERARD
On Tue, Mar 05, 2019 at 03:37:30PM +, Ian Jackson wrote: > This library, which is private to Xen and was properly namespaced in > 1a814711881beb17f073f5f57e27e5bd4da1b956 > tools/libfsimage: Add `xen' to .h names and principal .so name > honours an environment variable to override the direc

Re: [Xen-devel] [PATCH] tools/libfsimage: Add `XEN' to environment variable name

2019-03-05 Thread Wei Liu
On Tue, Mar 05, 2019 at 03:37:30PM +, Ian Jackson wrote: > This library, which is private to Xen and was properly namespaced in > 1a814711881beb17f073f5f57e27e5bd4da1b956 > tools/libfsimage: Add `xen' to .h names and principal .so name > honours an environment variable to override the direc

[Xen-devel] [qemu-mainline baseline-only test] 83705: trouble: blocked/broken

2019-03-05 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 83705 qemu-mainline real [real] http://osstest.xensource.com/osstest/logs/83705/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64

Re: [Xen-devel] [PATCH] tools/libfsimage: Add `XEN' to environment variable name

2019-03-05 Thread Juergen Gross
On 05/03/2019 16:37, Ian Jackson wrote: > This library, which is private to Xen and was properly namespaced in > 1a814711881beb17f073f5f57e27e5bd4da1b956 > tools/libfsimage: Add `xen' to .h names and principal .so name > honours an environment variable to override the directory where > shared o

Re: [Xen-devel] [PATCH] tools/libfsimage: Add `XEN' to environment variable name

2019-03-05 Thread Ian Jackson
Juergen Gross writes ("Re: [PATCH] tools/libfsimage: Add `XEN' to environment variable name"): > Release-acked-by: Juergen Gross Thanks all, pushed. Ian. ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/l

Re: [Xen-devel] [PATCH L1TF v9 7/7] common/grant_table: block speculative out-of-bound accesses

2019-03-05 Thread Jan Beulich
>>> On 27.02.19 at 17:13, wrote: > Speculative execution is not blocked in case one of the following > properties is true: > - path cannot be triggered by the guest > - path does not return to the guest > - path does not result in an out-of-bound access > - path cannot be executed repeatedly >

[Xen-devel] [PATCH for-next RFC 3/4] pygrub: convert python files with 2to3

2019-03-05 Thread Wei Liu
Signed-off-by: Wei Liu --- Not sure this works with python 2.4, but it should work with 2.7 since the changes look more or less in the same vein as the changes in libxl. The conversion of the import is interesting. This definitely needs some testing. --- tools/pygrub/src/ExtLinuxConf.py | 16 +++

[Xen-devel] [PATCH for-next RFC 1/4] build/m4: make python_devel.m4 work with both python 2 and 3

2019-03-05 Thread Wei Liu
Do the following: 1. Change the form of "print". 2. Check for ABI flags -- this is complicated because it is only introduced in 3.2. 3. Fix library name in AC_CHECK_LIB. 4. Remove other-libs in AC_CHECK_LIB. Signed-off-by: Wei Liu --- I doubt the non python-pkg branch works, because the paths

[Xen-devel] [PATCH for-next RFC 0/4] tools: Python 3 compatibility

2019-03-05 Thread Wei Liu
This series makes tools build with Python 3. Compile test only with 2.7 and 3.5 thus far, hence the RFC. This should be able to give people some idea what sort of work is involved. You will also need Andrew's "tools/xen-foreign: Update python scripts to be Py3 compatible". Wei. Wei Liu (4): b

[Xen-devel] [PATCH for-next RFC 2/4] libxl: make python scripts work with python 2 and 3

2019-03-05 Thread Wei Liu
All scripts are transformed by 2to3. The only addition is "from __future__ import print_function" so that print("BLAH", file=sys.stderr) can work. https://python-future.org/compatible_idioms.html Tested with 2.7 and 3.5. Signed-off-by: Wei Liu --- I don't have environment to test 2.4 -- it is

[Xen-devel] [PATCH for-next RFC 4/4] pygrub: make it build with python 3

2019-03-05 Thread Wei Liu
With the help of two porting guides and cpython source code: 1. Use PyUnicode to replace PyString counterparts. 2. Use PyVarObject_HEAD_INIT and provide compatibility for 2.5 and earlier. 3. Remove usage of Py_FindMethod. 4. Use new module initialisation routine. For #3, Py_FindMethod was remo

Re: [Xen-devel] [PATCH for-4.12 RFC] xen/console: Handle NUL character in buffer sent via CONSOLEIO_write

2019-03-05 Thread Juergen Gross
On 05/03/2019 16:28, Julien Grall wrote: > Hi Juergen, > > On 3/5/19 2:12 PM, Juergen Gross wrote: >> On 05/03/2019 15:08, Julien Grall wrote: >>> Hi Juergen, >>> >>> On 3/5/19 12:57 PM, Juergen Gross wrote: On 27/02/2019 11:45, Julien Grall wrote: > (+ Juergen Gross as RM) > > I

[Xen-devel] 4.12 Ping: [PATCH] x86/cpuid: add missing PCLMULQDQ dependency

2019-03-05 Thread Jan Beulich
>>> On 22.02.19 at 17:10, wrote: > Since we can't seem to be able to settle our discussion for the wider > adjustment previously posted, let's at least add the missing dependency > for 4.12. I'm not convinced though that attaching it to SSE is correct. > > Signed-off-by: Jan Beulich Andrew gave

Re: [Xen-devel] [PATCH] [v2] xen: avoid link error on ARM

2019-03-05 Thread Arnd Bergmann
On Tue, Mar 5, 2019 at 3:57 PM Juergen Gross wrote: > On 05/03/2019 14:43, Boris Ostrovsky wrote: > > On 3/5/19 8:30 AM, Arnd Bergmann wrote: > >> @@ -809,15 +789,7 @@ static long privcmd_ioctl_mmap_resource(struct file > >> *file, void __user *udata) > >> goto out; > >> > >> i

Re: [Xen-devel] XEN on R-CAR H3

2019-03-05 Thread Amit Tomer
Hi, > The proper command is: > > mkimage -A arm64 -C none -T kernel -a 0x7808 -e 0x7808 -n "XEN" > -d xen/xen xen-uImage Yeah but it didn't boot it up :( [ 16.991035] => setenv ipaddr 10.105.2.28;setenv serverip 10.105.2.27;ping 10.105.2.27 [ 18.791456] ravb Waiting for PHY auto nego

Re: [Xen-devel] [PATCH] [v2] xen: avoid link error on ARM

2019-03-05 Thread Juergen Gross
On 05/03/2019 17:49, Arnd Bergmann wrote: > On Tue, Mar 5, 2019 at 3:57 PM Juergen Gross wrote: >> On 05/03/2019 14:43, Boris Ostrovsky wrote: >>> On 3/5/19 8:30 AM, Arnd Bergmann wrote: > @@ -809,15 +789,7 @@ static long privcmd_ioctl_mmap_resource(struct file *file, void __user *udat

Re: [Xen-devel] [PATCH for-4.12 RFC] xen/console: Handle NUL character in buffer sent via CONSOLEIO_write

2019-03-05 Thread Julien Grall
Hi Juergen, On 3/5/19 4:44 PM, Juergen Gross wrote: On 05/03/2019 16:28, Julien Grall wrote: Hi Juergen, On 3/5/19 2:12 PM, Juergen Gross wrote: On 05/03/2019 15:08, Julien Grall wrote: Hi Juergen, On 3/5/19 12:57 PM, Juergen Gross wrote: On 27/02/2019 11:45, Julien Grall wrote: (+ Juerge

Re: [Xen-devel] 4.12 Ping: [PATCH] x86/cpuid: add missing PCLMULQDQ dependency

2019-03-05 Thread Juergen Gross
On 05/03/2019 17:46, Jan Beulich wrote: On 22.02.19 at 17:10, wrote: >> Since we can't seem to be able to settle our discussion for the wider >> adjustment previously posted, let's at least add the missing dependency >> for 4.12. I'm not convinced though that attaching it to SSE is correct. >

Re: [Xen-devel] [PATCH] tools/xenstore: Do not abort xenstore-ls if a node disappears while iterating

2019-03-05 Thread Wei Liu
On Mon, Mar 04, 2019 at 04:59:42PM +, David Woodhouse wrote: > On Mon, 2019-03-04 at 15:46 +, Wei Liu wrote: [...] > > Also you mentioned "a node disappears", I thought that was the case you > > cared about, hence my suggestion. > > That's my primary use case, yes. Obviously we should make

Re: [Xen-devel] [PATCH] tools/xenstore: Do not abort xenstore-ls if a node disappears while iterating

2019-03-05 Thread Juergen Gross
On 05/03/2019 18:02, Wei Liu wrote: > On Mon, Mar 04, 2019 at 04:59:42PM +, David Woodhouse wrote: >> On Mon, 2019-03-04 at 15:46 +, Wei Liu wrote: > [...] >>> Also you mentioned "a node disappears", I thought that was the case you >>> cared about, hence my suggestion. >> >> That's my prima

Re: [Xen-devel] [PATCH 1/3] mwait-idle: add support for using halt

2019-03-05 Thread Wei Liu
On Wed, Feb 27, 2019 at 06:23:35PM +, Woods, Brian wrote: > On 2/27/19 7:47 AM, Wei Liu wrote: > > On Mon, Feb 25, 2019 at 08:23:58PM +, Woods, Brian wrote: > >> Some AMD processors can use a mixture of mwait and halt for accessing > >> various c-states. In preparation for adding support f

Re: [Xen-devel] [PATCH] tools/xenstore: Do not abort xenstore-ls if a node disappears while iterating

2019-03-05 Thread Wei Liu
On Tue, Mar 05, 2019 at 06:09:27PM +0100, Juergen Gross wrote: > On 05/03/2019 18:02, Wei Liu wrote: > > On Mon, Mar 04, 2019 at 04:59:42PM +, David Woodhouse wrote: > >> On Mon, 2019-03-04 at 15:46 +, Wei Liu wrote: > > [...] > >>> Also you mentioned "a node disappears", I thought that was

Re: [Xen-devel] [PATCH for-next RFC 2/4] libxl: make python scripts work with python 2 and 3

2019-03-05 Thread Andrew Cooper
On 05/03/2019 16:42, Wei Liu wrote: > All scripts are transformed by 2to3. > > The only addition is "from __future__ import print_function" so that > print("BLAH", file=sys.stderr) can work. > > https://python-future.org/compatible_idioms.html > > Tested with 2.7 and 3.5. > > Signed-off-by: Wei Liu

Re: [Xen-devel] [PATCH for-next RFC 4/4] pygrub: make it build with python 3

2019-03-05 Thread Andrew Cooper
On 05/03/2019 16:42, Wei Liu wrote: > With the help of two porting guides and cpython source code: > > 1. Use PyUnicode to replace PyString counterparts. > 2. Use PyVarObject_HEAD_INIT and provide compatibility for 2.5 and >earlier. > 3. Remove usage of Py_FindMethod. > 4. Use new module initia

Re: [Xen-devel] [PATCH for-next RFC 4/4] pygrub: make it build with python 3

2019-03-05 Thread Wei Liu
On Tue, Mar 05, 2019 at 05:42:07PM +, Andrew Cooper wrote: > On 05/03/2019 16:42, Wei Liu wrote: > > With the help of two porting guides and cpython source code: > > > > 1. Use PyUnicode to replace PyString counterparts. > > 2. Use PyVarObject_HEAD_INIT and provide compatibility for 2.5 and > >

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

2019-03-05 Thread osstest service owner
flight 133577 linux-3.18 real [real] http://logs.test-lab.xenproject.org/osstest/logs/133577/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-examine 8 reboot fail REGR. vs. 128858 test-amd64-amd64-xl-

Re: [Xen-devel] [PATCH for-next RFC 3/4] pygrub: convert python files with 2to3

2019-03-05 Thread Andrew Cooper
On 05/03/2019 16:42, Wei Liu wrote: > Signed-off-by: Wei Liu > --- > Not sure this works with python 2.4, but it should work with 2.7 since > the changes look more or less in the same vein as the changes in > libxl. > > The conversion of the import is interesting. This definitely needs > some test

Re: [Xen-devel] XEN on R-CAR H3

2019-03-05 Thread Oleksandr
On 05.03.19 18:50, Amit Tomer wrote: Hi, Hi, Amit The proper command is: mkimage -A arm64 -C none -T kernel -a 0x7808 -e 0x7808 -n "XEN" -d xen/xen xen-uImage Yeah but it didn't boot it up :( Have you tried to enable early_prink? AFAIR, I tested that branch (ipmmu_v2) before

Re: [Xen-devel] XEN on R-CAR H3

2019-03-05 Thread Amit Tomer
Hi, > Have you tried to enable early_prink? Yes, this is how we compiled it. make dist-xen XEN_TARGET_ARCH=arm64 debug=y CROSS_COMPILE=aarch64-linux-gnu- CONFIG_EARLY_PRINTK_salvator=scif,0xe6e88000 -j16 > AFAIR, I tested that branch (ipmmu_v2) before submitting RFC patch > series [1] and it was

[Xen-devel] [xen-4.9-testing test] 133578: regressions - FAIL

2019-03-05 Thread osstest service owner
flight 133578 xen-4.9-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/133578/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-libvirt-pair 22 guest-migrate/src_host/dst_host fail REGR. vs. 132889 test-am

  1   2   >