Re: [Xen-devel] Only 1 CPU was detected

2017-09-27 Thread Juergen Gross
On 28/09/17 07:12, Hongjiang Zhang wrote: > Hi all, > >   > > I install Xen 4.8 on Ubuntu 17.04 (kernel is updated to 4.12). But I > found only 1 CPU was detected. > >   > > I thought it is caused by some BIOS settings, so I enabled x2APIC in > BIOS, unfortunately, Linux hangs during booting af

[Xen-devel] Only 1 CPU was detected

2017-09-27 Thread Hongjiang Zhang
Hi all, I install Xen 4.8 on Ubuntu 17.04 (kernel is updated to 4.12). But I found only 1 CPU was detected. I thought it is caused by some BIOS settings, so I enabled x2APIC in BIOS, unfortunately, Linux hangs during booting after printing "Loading initial ramdisk ...". I have to disable x2AP

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

2017-09-27 Thread osstest service owner
flight 113862 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/113862/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf-libvirt broken in 113840 build-armhf-libvirt 5

Re: [Xen-devel] [PATCH v2 4/5] pci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices

2017-09-27 Thread David Gibson
On Wed, Sep 27, 2017 at 04:56:34PM -0300, Eduardo Habkost wrote: > Add INTERFACE_CONVENTIONAL_PCI_DEVICE to all direct subtypes of > TYPE_PCI_DEVICE, except: > > 1) The ones that already have INTERFACE_PCIE_DEVICE set: > > * base-xhci > * e1000e > * nvme > * pvscsi > * vfio-pci > * virtio-pci > *

Re: [Xen-devel] [PATCH v4 14/15] tools: implement new generic set value interface and MBA set value command

2017-09-27 Thread Yi Sun
On 17-09-26 12:39:21, Roger Pau Monn� wrote: > On Sat, Sep 23, 2017 at 09:48:23AM +, Yi Sun wrote: > > int libxl_psr_cat_get_cbm(libxl_ctx *ctx, uint32_t domid, > > @@ -450,7 +425,32 @@ int libxl_psr_set_val(libxl_ctx *ctx, uint32_t domid, > >libxl_psr_type type, libxl_

Re: [Xen-devel] [PATCH v4 07/15] x86: implement set value flow for MBA

2017-09-27 Thread Yi Sun
On 17-09-26 10:39:31, Roger Pau Monn� wrote: > On Sat, Sep 23, 2017 at 09:48:16AM +, Yi Sun wrote: > > @@ -274,29 +277,6 @@ static enum psr_feat_type psr_type_to_feat_type(enum > > psr_type type) > > return feat_type; > > } > > > > -static bool psr_check_cbm(unsigned int cbm_len, unsig

Re: [Xen-devel] [PATCH v4 00/15] Enable Memory Bandwidth Allocation in Xen

2017-09-27 Thread Yi Sun
On 17-09-26 12:48:29, Roger Pau Monn� wrote: > On Sat, Sep 23, 2017 at 09:48:09AM +, Yi Sun wrote: > > Hi, all, > > > > We plan to bring a new PSR (Platform Shared Resource) feature called > > Intel Memory Bandwidth Allocation (MBA) to Xen. > > > > Besides the MBA enabling, we change some int

Re: [Xen-devel] [PATCH v4 02/15] Rename PSR sysctl/domctl interfaces and xsm policy to make them be general

2017-09-27 Thread Yi Sun
On 17-09-26 15:19:19, Wei Liu wrote: > On Sat, Sep 23, 2017 at 05:48:11PM +0800, Yi Sun wrote: > > This patch renames PSR sysctl/domctl interfaces and related xsm policy to > > make them be general for all resource allocation features but not only > > for CAT. Then, we can resuse the interfaces for

[Xen-devel] Building xtf on older distros

2017-09-27 Thread Glenn Enright
Hi there When building the xen testing framework on CentOS6, I see the below issue. I see similar issues with CentOS7 and other distros with older tool chains. The only one that built cleanly for me was Ubuntu 1604. Some workarounds (disabling the -W options) let it get a bit further but I h

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

2017-09-27 Thread osstest service owner
flight 113860 linux-4.9 real [real] http://logs.test-lab.xenproject.org/osstest/logs/113860/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl-xsm 7 xen-boot fail REGR. vs. 113736 test-amd64-amd64-xl-m

Re: [Xen-devel] [PATCH] xen/arm: p2m: Read *_mapped_gfn with the p2m lock taken

2017-09-27 Thread Julien Grall
Hi, Ping? Cheers, On 09/14/2017 04:39 PM, Julien Grall wrote: *_mapped_gfn are currently read before acquiring the lock. However, they may be modified by the p2m code before the lock was acquired. This means we will use the wrong values. Fix it by moving the read inside the section protected

Re: [Xen-devel] [PATCH] xen/arm: Fix the issue in cmp_mmio_handler used in find_mmio_handler

2017-09-27 Thread Julien Grall
Hi Bhupinder, Good catch! On 09/26/2017 11:45 PM, Bhupinder Thakur wrote: This function returns true/false based on whether the key value is in the range (start, start+size). However, it should check against (start, start+size-1) because start+size falls outside the range. This resulted in ret

Re: [Xen-devel] [PATCH v10 08/11] xen/arm: move arch specific grant table bits into grant_table.c

2017-09-27 Thread Julien Grall
Hi Juergen, On 09/25/2017 11:00 AM, Juergen Gross wrote: Instead of attaching the ARM specific grant table data to the domain structure add it to struct grant_table. Add the needed arch functions to the asm-*/grant_table.h includes. Signed-off-by: Juergen Gross Reviewed-by: Paul Durrant Acked

Re: [Xen-devel] [PATCH v10 01/11] xen: add function for obtaining highest possible memory address

2017-09-27 Thread Julien Grall
Hi Juergen, On 09/25/2017 11:00 AM, Juergen Gross wrote: Add a function for obtaining the highest possible physical memory address of the system. This value is influenced by: - hypervisor configuration (CONFIG_BIGMEM) - processor capability (max. addressable physical memory) - memory map at boo

Re: [Xen-devel] [PATCH v10 09/11] xen: make grant resource limits per domain

2017-09-27 Thread Julien Grall
Hi Juergen, On 09/25/2017 11:00 AM, Juergen Gross wrote: diff --git a/xen/include/asm-arm/grant_table.h b/xen/include/asm-arm/grant_table.h index 30db2d1616..bcdeada9ca 100644 --- a/xen/include/asm-arm/grant_table.h +++ b/xen/include/asm-arm/grant_table.h @@ -2,9 +2,11 @@ #define __ASM_GRANT_

Re: [Xen-devel] Guest start issue on ARM (maybe related to Credit2) [Was: Re: [xen-unstable test] 113807: regressions - FAIL]

2017-09-27 Thread Julien Grall
On 09/28/2017 12:51 AM, Julien Grall wrote: Hi Dario, On 09/26/2017 09:51 PM, Dario Faggioli wrote: On Tue, 2017-09-26 at 18:28 +0100, Julien Grall wrote: On 09/26/2017 08:33 AM, Dario Faggioli wrote: Here's the logs: http://logs.test-lab.xenproject.org/osstest/logs/113816/test-armhf- arm

Re: [Xen-devel] Guest start issue on ARM (maybe related to Credit2) [Was: Re: [xen-unstable test] 113807: regressions - FAIL]

2017-09-27 Thread Julien Grall
Hi Dario, On 09/26/2017 09:51 PM, Dario Faggioli wrote: > On Tue, 2017-09-26 at 18:28 +0100, Julien Grall wrote: >> On 09/26/2017 08:33 AM, Dario Faggioli wrote: >>> Here's the logs: >>> http://logs.test-lab.xenproject.org/osstest/logs/113816/test-armhf- >>> armhf-xl-rtds/info.html >> >> It d

Re: [Xen-devel] [Qemu-arm] [Qemu-devel] [PATCH v1 1/8] Replace all occurances of __FUNCTION__ with __func__

2017-09-27 Thread Peter Maydell
On 26 September 2017 at 06:32, Eric Blake wrote: > On 09/25/2017 07:08 PM, Alistair Francis wrote: >> diff --git a/hw/arm/nseries.c b/hw/arm/nseries.c >> index 58005b6619..32687afced 100644 >> --- a/hw/arm/nseries.c >> +++ b/hw/arm/nseries.c >> @@ -463,7 +463,7 @@ static uint32_t mipid_txrx(void *

Re: [Xen-devel] [PATCH v4 2/3] x86/xen/time: setup vcpu 0 time info page

2017-09-27 Thread Joao Martins
On 09/27/2017 11:44 PM, Boris Ostrovsky wrote: > On 09/27/2017 04:57 PM, Joao Martins wrote: >> On 09/27/2017 09:22 PM, Boris Ostrovsky wrote: >>> On 09/27/2017 11:26 AM, Joao Martins wrote: On 09/27/2017 03:40 PM, Boris Ostrovsky wrote: >> +static void xen_setup_vsyscall_time_info(void) >

Re: [Xen-devel] [Qemu-devel] [PATCH v1 1/8] Replace all occurances of __FUNCTION__ with __func__

2017-09-27 Thread Alistair Francis
On Tue, Sep 26, 2017 at 6:32 AM, Eric Blake wrote: > On 09/25/2017 07:08 PM, Alistair Francis wrote: >> Replace all occurs of __FUNCTION__ except for the check in checkpatch >> with the non GCC specific __func__. >> >> One line in hcd-musb.c was manually tweaked to pass checkpatch. >> >> Signed-of

Re: [Xen-devel] [PATCH v4 2/3] x86/xen/time: setup vcpu 0 time info page

2017-09-27 Thread Boris Ostrovsky
On 09/27/2017 04:57 PM, Joao Martins wrote: > On 09/27/2017 09:22 PM, Boris Ostrovsky wrote: >> On 09/27/2017 11:26 AM, Joao Martins wrote: >>> On 09/27/2017 03:40 PM, Boris Ostrovsky wrote: > +static void xen_setup_vsyscall_time_info(void) > +{ > + struct vcpu_register_time_memory_area

Re: [Xen-devel] [Qemu-devel] [PATCH v1 3/8] hw: Replace fprintf(stderr, "*\n" with error_report()

2017-09-27 Thread Alistair Francis
On Mon, Sep 25, 2017 at 8:51 PM, Thomas Huth wrote: > On 26.09.2017 02:08, Alistair Francis wrote: >> Replace a large number of the fprintf(stderr, "*\n" calls with >> error_report(). The functions were renamed with these commands and then >> compiler issues where manually fixed. >> >> find ./* -t

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

2017-09-27 Thread osstest service owner
flight 113856 linux-3.18 real [real] http://logs.test-lab.xenproject.org/osstest/logs/113856/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemut-debianhvm-amd64 16 guest-localmigrate/x10 fail REGR. vs. 113503 test-amd6

Re: [Xen-devel] [PATCH v4 2/3] x86/xen/time: setup vcpu 0 time info page

2017-09-27 Thread Joao Martins
On 09/27/2017 09:22 PM, Boris Ostrovsky wrote: > On 09/27/2017 11:26 AM, Joao Martins wrote: >> On 09/27/2017 03:40 PM, Boris Ostrovsky wrote: +static void xen_setup_vsyscall_time_info(void) +{ + struct vcpu_register_time_memory_area t; + struct pvclock_vsyscall_time_info *ti;

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

2017-09-27 Thread osstest service owner
flight 113865 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/113865/ 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

Re: [Xen-devel] [PATCH v4 2/3] x86/xen/time: setup vcpu 0 time info page

2017-09-27 Thread Boris Ostrovsky
On 09/27/2017 11:26 AM, Joao Martins wrote: > On 09/27/2017 03:40 PM, Boris Ostrovsky wrote: >>> +static void xen_setup_vsyscall_time_info(void) >>> +{ >>> + struct vcpu_register_time_memory_area t; >>> + struct pvclock_vsyscall_time_info *ti; >>> + struct pvclock_vcpu_time_info *pvti; >>> +

Re: [Xen-devel] [PATCH v2] Call xen_cleanhighmap() with 4MB aligned for page tables mapping

2017-09-27 Thread Boris Ostrovsky
On 09/27/2017 05:43 AM, Juergen Gross wrote: > On 27/09/17 11:41, Zhenzhong Duan wrote: >> When bootup a PVM guest with large memory(Ex.240GB), XEN provided initial >> mapping overlaps with kernel module virtual space. When mapping in this space >> is cleared by xen_cleanhighmap(), in certain case

Re: [Xen-devel] [PATCH] xen-pciback: relax BAR sizing write value check

2017-09-27 Thread Boris Ostrovsky
On 09/26/2017 02:43 AM, Juergen Gross wrote: > On 25/09/17 10:01, Jan Beulich wrote: >> Just like done in d2bd05d88d ("xen-pciback: return proper values during >> BAR sizing") for the ROM BAR, ordinary ones also shouldn't compare the >> written value directly against ~0, but consider the r/o bits a

[Xen-devel] [PATCH v2 4/5] pci: Add INTERFACE_CONVENTIONAL_PCI_DEVICE to Conventional PCI devices

2017-09-27 Thread Eduardo Habkost
Add INTERFACE_CONVENTIONAL_PCI_DEVICE to all direct subtypes of TYPE_PCI_DEVICE, except: 1) The ones that already have INTERFACE_PCIE_DEVICE set: * base-xhci * e1000e * nvme * pvscsi * vfio-pci * virtio-pci * vmxnet3 2) base-pci-bridge Not all PCI bridges are Conventional PCI devices, so INTERF

Re: [Xen-devel] RT-Xen on ARM

2017-09-27 Thread Meng Xu
On Wed, Sep 27, 2017 at 10:37 AM, Andrii Anisov wrote: > Hello, > > > On 27.09.17 16:57, Meng Xu wrote: >> >> The command is: >> java -jar carts.jar inputfile outputfile > > From the next example, I would say the command is: > java -jar carts.jar inputfile interface_type outputfile > >> An exa

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

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

[Xen-devel] [linux-next test] 113857: regressions - FAIL

2017-09-27 Thread osstest service owner
flight 113857 linux-next real [real] http://logs.test-lab.xenproject.org/osstest/logs/113857/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemut-win7-amd64 16 guest-localmigrate/x10 fail REGR. vs. 113823 Tests which d

[Xen-devel] [linux-linus test] 113855: tolerable FAIL - PUSHED

2017-09-27 Thread osstest service owner
flight 113855 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/113855/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking): test-amd64-i386-xl-qemut-win7-amd64 16 guest-localmigrate/x10 fail in 113845 pass in 113855 test-amd64-amd64-xl

Re: [Xen-devel] [PATCH] x86/pvh: fix PVHv2 Dom0 memory calculation

2017-09-27 Thread Boris Ostrovsky
On 09/27/2017 11:10 AM, Roger Pau Monné wrote: > On Wed, Sep 27, 2017 at 02:26:37PM +, Jan Beulich wrote: > On 27.09.17 at 16:16, wrote: >>> --- a/xen/arch/x86/dom0_build.c >>> +++ b/xen/arch/x86/dom0_build.c >>> @@ -263,8 +263,7 @@ unsigned long __init dom0_compute_nr_pages( >>>

Re: [Xen-devel] [PATCH] xen-hvm: use errno in error message

2017-09-27 Thread Anthony PERARD
On Wed, Sep 27, 2017 at 05:10:09PM +0100, Wei Liu wrote: > The error code is encoding in errno, not rc. ^ encoded I think. Otherwise, Reviewed-by: Anthony PERARD Thanks, > > Signed-off-by: Wei Liu > --- > Cc: Stefano Stabellini > Cc: Anthony PERARD > --- > hw/i386/xen/

Re: [Xen-devel] [PATCH] xen-hvm: use errno in error message

2017-09-27 Thread Wei Liu
On Wed, Sep 27, 2017 at 05:10:09PM +0100, Wei Liu wrote: > The error code is encoding in errno, not rc. > "is encoded", sorry for the typo... ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

[Xen-devel] [PATCH] xen-hvm: use errno in error message

2017-09-27 Thread Wei Liu
The error code is encoding in errno, not rc. Signed-off-by: Wei Liu --- Cc: Stefano Stabellini Cc: Anthony PERARD --- hw/i386/xen/xen-hvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/xen/xen-hvm.c b/hw/i386/xen/xen-hvm.c index d9ccd5d0d6..f79816a649 100644 ---

Re: [Xen-devel] [PATCH v3 10/22] libxl: add PVH support to domain creation

2017-09-27 Thread Roger Pau Monné
On Wed, Sep 27, 2017 at 02:28:11PM +, Ian Jackson wrote: > Roger Pau Monne writes ("[PATCH v3 10/22] libxl: add PVH support to domain > creation"): > > Remove the device model "none" support from domain creation and > > introduce support for PVH. > > This is a backwards-incompatible change, w

Re: [Xen-devel] [PATCH v4 3/3] MAINTAINERS: xen, kvm: track pvclock-abi.h changes

2017-09-27 Thread Konrad Rzeszutek Wilk
On Wed, Sep 27, 2017 at 02:46:23PM +0100, Joao Martins wrote: > This file defines an ABI shared between guest and hypervisor(s) > (KVM, Xen) and as such there should be an correspondent entry in > MAINTAINERS file. Notice that there's already a text notice at the > top of the header file, hence thi

Re: [Xen-devel] [PATCH v3 10/22] libxl: add PVH support to domain creation

2017-09-27 Thread Roger Pau Monné
On Wed, Sep 27, 2017 at 02:28:11PM +, Ian Jackson wrote: > Roger Pau Monne writes ("[PATCH v3 10/22] libxl: add PVH support to domain > creation"): > > Remove the device model "none" support from domain creation and > > introduce support for PVH. > > This is a backwards-incompatible change, w

Re: [Xen-devel] [PATCH v4 2/3] x86/xen/time: setup vcpu 0 time info page

2017-09-27 Thread Joao Martins
On 09/27/2017 03:40 PM, Boris Ostrovsky wrote: >> +static void xen_setup_vsyscall_time_info(void) >> +{ >> +struct vcpu_register_time_memory_area t; >> +struct pvclock_vsyscall_time_info *ti; >> +struct pvclock_vcpu_time_info *pvti; >> +int ret; >> + >> +pvti = &__this_cpu_read(

Re: [Xen-devel] [PATCH] x86/pvh: fix PVHv2 Dom0 memory calculation

2017-09-27 Thread Roger Pau Monné
On Wed, Sep 27, 2017 at 02:26:37PM +, Jan Beulich wrote: > >>> On 27.09.17 at 16:16, wrote: > > --- a/xen/arch/x86/dom0_build.c > > +++ b/xen/arch/x86/dom0_build.c > > @@ -263,8 +263,7 @@ unsigned long __init dom0_compute_nr_pages( > > avail -= max_pdx >> s; > > } > > > > -

Re: [Xen-devel] [PATCH v2] Call xen_cleanhighmap() with 4MB aligned for page tables mapping

2017-09-27 Thread Andrew Cooper
On 27/09/17 15:56, Juergen Gross wrote: > On 27/09/17 16:48, Boris Ostrovsky wrote: >> On 09/27/2017 10:33 AM, Juergen Gross wrote: >>> On 27/09/17 15:38, Boris Ostrovsky wrote: On 09/27/2017 05:43 AM, Juergen Gross wrote: > On 27/09/17 11:41, Zhenzhong Duan wrote: >> When bootup a PVM

Re: [Xen-devel] [PATCH v2] Call xen_cleanhighmap() with 4MB aligned for page tables mapping

2017-09-27 Thread Boris Ostrovsky
On 09/27/2017 10:56 AM, Juergen Gross wrote: > On 27/09/17 16:48, Boris Ostrovsky wrote: >> On 09/27/2017 10:33 AM, Juergen Gross wrote: >>> On 27/09/17 15:38, Boris Ostrovsky wrote: On 09/27/2017 05:43 AM, Juergen Gross wrote: > On 27/09/17 11:41, Zhenzhong Duan wrote: >> When bootup

Re: [Xen-devel] [PATCH v2] Call xen_cleanhighmap() with 4MB aligned for page tables mapping

2017-09-27 Thread Juergen Gross
On 27/09/17 16:48, Boris Ostrovsky wrote: > On 09/27/2017 10:33 AM, Juergen Gross wrote: >> On 27/09/17 15:38, Boris Ostrovsky wrote: >>> On 09/27/2017 05:43 AM, Juergen Gross wrote: On 27/09/17 11:41, Zhenzhong Duan wrote: > When bootup a PVM guest with large memory(Ex.240GB), XEN provide

Re: [Xen-devel] [PATCH v7 01/12] x86/mm: allow a privileged PV domain to map guest mfns

2017-09-27 Thread Paul Durrant
> -Original Message- > From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of Jan > Beulich > Sent: 27 September 2017 15:42 > To: Paul Durrant > Cc: Andrew Cooper ; xen- > de...@lists.xenproject.org > Subject: Re: [Xen-devel] [PATCH v7 01/12] x86/mm: allow a privileged PV >

Re: [Xen-devel] [PATCH v2] Call xen_cleanhighmap() with 4MB aligned for page tables mapping

2017-09-27 Thread Boris Ostrovsky
On 09/27/2017 10:33 AM, Juergen Gross wrote: > On 27/09/17 15:38, Boris Ostrovsky wrote: >> On 09/27/2017 05:43 AM, Juergen Gross wrote: >>> On 27/09/17 11:41, Zhenzhong Duan wrote: When bootup a PVM guest with large memory(Ex.240GB), XEN provided initial mapping overlaps with kernel modu

Re: [Xen-devel] [PATCH v3 16/22] libxl: add PVH support to memory functions

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 16/22] libxl: add PVH support to memory functions"): > Signed-off-by: Roger Pau Monné Acked-by: Ian Jackson ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v3 22/22] libxl: remove device model "none" from IDL

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 22/22] libxl: remove device model "none" from IDL"): > And the xl.cfg man page documentation. See my comments about the start of the abolition of "none" as devicd model. I have acked the intermediate patches. Feel free to put the explanation for the unceremoni

Re: [Xen-devel] [PATCH v7 01/12] x86/mm: allow a privileged PV domain to map guest mfns

2017-09-27 Thread Jan Beulich
>>> On 27.09.17 at 16:22, wrote: >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: 27 September 2017 14:31 >> >>> On 27.09.17 at 14:49, wrote: >> > Ok, I'll claim the final cmd value then. >> >> Final? We've got 5 left (for a total of 3 bits) afaict. > > Really? Maybe I misread... looks

Re: [Xen-devel] [PATCH v3 21/22] xl: add PVH as a guest type

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 21/22] xl: add PVH as a guest type"): > And remove device model "none". Acked-by: Ian Jackson ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

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

2017-09-27 Thread Robert VanVossen
On 9/26/2017 3:12 AM, Dario Faggioli wrote: > [Cc-list modified by removing someone and adding someone else] > > On Mon, 2017-09-25 at 16:10 -0700, Stefano Stabellini wrote: >> On Mon, 11 Sep 2017, George Dunlap wrote: >>> +### RTDS based Scheduler >>> + >>> +Status: Experimental >>> + >>> +

[Xen-devel] [qemu-mainline test] 113852: FAIL

2017-09-27 Thread osstest service owner
flight 113852 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/113852/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl-multivcpu broken in 113844 Tests wh

Re: [Xen-devel] [PATCH v3 20/22] libxl: add PVH support to x86 functions

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 20/22] libxl: add PVH support to x86 functions"): > This also includes the x86 ACPI related functions. Remove support for > device model "none" Acked-by: Ian Jackson ___ Xen-devel mailing list Xen-devel@lists.xen.org

Re: [Xen-devel] [PATCH v2] libxc: remove stale error check for domain size in xc_sr_save_x86_hvm.c

2017-09-27 Thread Wei Liu
On Tue, Sep 26, 2017 at 02:02:56PM +0200, Juergen Gross wrote: > Long ago domains to be saved were limited to 1TB size due to the > migration stream v1 limitations which used a 32 bit value for the > PFN and the frame type (4 bits) leaving only 28 bits for the PFN. > > Migration stream V2 uses a 6

Re: [Xen-devel] [PATCH v3 14/22] libxl: add PVH support to domain save/suspend

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 14/22] libxl: add PVH support to domain save/suspend"): > And remove the device model "none" support. Acked-by: Ian Jackson ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v3 19/22] libxl: add PVH support to USB

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 19/22] libxl: add PVH support to USB"): > Add PVH support to usb related functions. Acked-by: Ian Jackson ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v4 2/3] x86/xen/time: setup vcpu 0 time info page

2017-09-27 Thread Boris Ostrovsky
> +static void xen_setup_vsyscall_time_info(void) > +{ > + struct vcpu_register_time_memory_area t; > + struct pvclock_vsyscall_time_info *ti; > + struct pvclock_vcpu_time_info *pvti; > + int ret; > + > + pvti = &__this_cpu_read(xen_vcpu)->time; > + > + /* > + * We che

Re: [Xen-devel] [PATCH v3 18/22] libxl: remove device model "none" support from stream functions

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 18/22] libxl: remove device model "none" support from stream functions"): > Remove the usage of device model "none" in the migration stream > related functions. Acked-by: Ian Jackson ___ Xen-devel mailing list Xen-de

Re: [Xen-devel] [PATCH v3 17/22] libxl: PVH guests use PV nics

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 17/22] libxl: PVH guests use PV nics"): > Remove device model "none" support from the nic functions. Acked-by: Ian Jackson ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v3 13/22] libxl: add PVH support to domain building

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 13/22] libxl: add PVH support to domain building"): > And remove device model "none" support. Acked-by: Ian Jackson ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] RT-Xen on ARM

2017-09-27 Thread Andrii Anisov
Hello, On 27.09.17 16:57, Meng Xu wrote: The command is: java -jar carts.jar inputfile outputfile From the next example, I would say the command is: java -jar carts.jar inputfile interface_type outputfile An example command is: java -jar carts.jar 1-1.10-in.xml MPR2 1-1.10-out.xml Thank

Re: [Xen-devel] [PATCH v3 11/22] libxl: remove device model "none" support from disk related functions

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 11/22] libxl: remove device model "none" support from disk related functions"): > CD-ROM backend selection was partially based on the device model, this > is no longer needed since the device model "none" is now removed, so > HVM guests always have a device model

Re: [Xen-devel] [PATCH v3 12/22] libxl: set device model for PVH guests

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 12/22] libxl: set device model for PVH guests"): > PVH guests use the same device model selection as PV guests, because > PVH guests only use the device model for the PV backends. Acked-by: Ian Jackson ___ Xen-devel

Re: [Xen-devel] [PATCH v3 15/22] libxl: add PVH support to vpcu hotplug, domain destruction/pause and domain configuration

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 15/22] libxl: add PVH support to vpcu hotplug, domain destruction/pause and domain configuration"): > And remove support for device model "none". Acked-by: Ian Jackson ___ Xen-devel mailing list Xen-devel@lists.xen.o

Re: [Xen-devel] [PATCH v2] Call xen_cleanhighmap() with 4MB aligned for page tables mapping

2017-09-27 Thread Juergen Gross
On 27/09/17 15:38, Boris Ostrovsky wrote: > On 09/27/2017 05:43 AM, Juergen Gross wrote: >> On 27/09/17 11:41, Zhenzhong Duan wrote: >>> When bootup a PVM guest with large memory(Ex.240GB), XEN provided initial >>> mapping overlaps with kernel module virtual space. When mapping in this >>> space >

Re: [Xen-devel] [PATCH v7 01/12] x86/mm: allow a privileged PV domain to map guest mfns

2017-09-27 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 27 September 2017 14:31 > To: Paul Durrant > Cc: Andrew Cooper ; xen- > de...@lists.xenproject.org > Subject: RE: [PATCH v7 01/12] x86/mm: allow a privileged PV domain to map > guest mfns > > >>> On 27.09.17 at 14

Re: [Xen-devel] [PATCH v3 10/22] libxl: add PVH support to domain creation

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 10/22] libxl: add PVH support to domain creation"): > Remove the device model "none" support from domain creation and > introduce support for PVH. This is a backwards-incompatible change, which at the very least requires justification. The facility seems to hav

Re: [Xen-devel] [PATCH] x86/pvh: fix PVHv2 Dom0 memory calculation

2017-09-27 Thread Jan Beulich
>>> On 27.09.17 at 16:16, wrote: > --- a/xen/arch/x86/dom0_build.c > +++ b/xen/arch/x86/dom0_build.c > @@ -263,8 +263,7 @@ unsigned long __init dom0_compute_nr_pages( > avail -= max_pdx >> s; > } > > -need_paging = is_hvm_domain(d) && > -(!iommu_hap_pt_share || !pag

Re: [Xen-devel] [PATCH v3 09/22] libxl: set PVH guests to use the PV console

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 09/22] libxl: set PVH guests to use the PV console"): > Signed-off-by: Roger Pau Monné Acked-by: Ian Jackson ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v3 08/22] libxl: allow PVH guests to use a bootloader

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 08/22] libxl: allow PVH guests to use a bootloader"): > Allow PVH guests to boot using a bootloader. Acked-by: Ian Jackson ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v3 07/22] libxl: introduce a PVH guest type

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 07/22] libxl: introduce a PVH guest type"): > The new guest type is introduced to the libxl IDL. libxl__domain_make > is also modified to save the guest type, and libxl__domain_type is > expanded to fetch that information when detecting guest type. Acked-by: Ian

Re: [Xen-devel] [PATCH v3 06/22] xl: introduce a firmware option

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 06/22] xl: introduce a firmware option"): > The new firmware option aims to provide a coherent way to set the > firmware for the different kind of guests Xen supports. > > For PV guests the available firmwares are pvgrub{32|64}, and for HVM > the following are su

Re: [Xen-devel] [PATCH v3 05/22] xl: introduce a domain type option

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 05/22] xl: introduce a domain type option"): > Introduce a new type option to xl configuration files in order to > specify the domain type. This supersedes the current builder option. > > The new option is documented in the xl.cfg man page, and the previous > bui

Re: [Xen-devel] [PATCH v4 2/3] x86/xen/time: setup vcpu 0 time info page

2017-09-27 Thread Juergen Gross
On 27/09/17 15:46, Joao Martins wrote: > In order to support pvclock vdso on xen we need to setup the time > info page for vcpu 0 and register the page with Xen using the > VCPUOP_register_vcpu_time_memory_area hypercall. This hypercall > will also forcefully update the pvti which will set some of

Re: [Xen-devel] [PATCH v3 02/22] libxl: introduce a way to mark fields as deprecated in the idl

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 02/22] libxl: introduce a way to mark fields as deprecated in the idl"): > The deprecation involves generating a function that copies the > deprecated fields into it's new location if the new location has not > been set. ... > Changes since v2: > - Dispose depre

Re: [Xen-devel] [PATCH v3 04/22] libxl/xl: use the new domain_build_info fields position

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 04/22] libxl/xl: use the new domain_build_info fields position"): > This is required because those options will be used by the new PVH > guest type, and thus need to be shared between PV and HVM. This LGTM but the title of this patch has poor grammar. I think yo

Re: [Xen-devel] [PATCH v3 03/22] xl: parsing code movement

2017-09-27 Thread Ian Jackson
Roger Pau Monne writes ("[PATCH v3 03/22] xl: parsing code movement"): > Code movement in preparation for making the bootloader, > bootloader_args, nested_hvm and timer_mode fields shared between all > guests types. While moving the code, limit the line-length to 80 > columns. > > No functional ch

[Xen-devel] [PATCH] x86/pvh: fix PVHv2 Dom0 memory calculation

2017-09-27 Thread Roger Pau Monne
PVHv2 is always going to require the usage of memory in order to store the p2m page tables, either when using hap or shadow. Fix the condition so memory is reserved unconditionally when trying to build a PVHv2 Dom0. Reported-by: Boris Ostrovsky Signed-off-by: Roger Pau Monné --- Cc: Boris Ostro

Re: [Xen-devel] [OSSTEST PATCH] ts-kernel-build: enable ntfs and fuse support

2017-09-27 Thread Ian Jackson
Wei Liu writes ("[OSSTEST PATCH] ts-kernel-build: enable ntfs and fuse support"): > They will be useful for extracting files from Windows and other OSes > from Dom0 while debugging. Thanks, pushed to pretest. Ian. ___ Xen-devel mailing list Xen-devel@

Re: [Xen-devel] [PATCH] x86emul: properly refuse LOCK on most 0FC7 insns

2017-09-27 Thread Andrew Cooper
On 22/09/17 10:02, Jan Beulich wrote: > When adding support for RDRAND/RDSEED/RDPID I didn't remember to also > update this special early check. Make it (hopefully) future-proof by > also refusing VEX-encodings. > > Signed-off-by: Jan Beulich Acked-by: Andrew Cooper

Re: [Xen-devel] [PATCH v3 2/3] x86/xen/time: setup vcpu 0 time info page

2017-09-27 Thread Joao Martins
On 09/27/2017 01:14 PM, Juergen Gross wrote: > On 27/09/17 14:00, Joao Martins wrote: [...] >> diff --git a/include/xen/interface/vcpu.h b/include/xen/interface/vcpu.h >> index 98188c87f5c1..b4a1eabcf1c4 100644 >> --- a/include/xen/interface/vcpu.h >> +++ b/include/xen/interface/vcpu.h >> @@ -178

Re: [Xen-devel] RT-Xen on ARM

2017-09-27 Thread Meng Xu
Hi Andrii, On Wed, Sep 27, 2017 at 8:37 AM, Andrii Anisov wrote: > > Dear Meng Xu, > > > On 22.08.17 05:02, Meng Xu wrote: >> >> Given the set of tasks in each VM, we compute the VCPUs' periods and >> budgets, using the CARTS tool [1]. Note that each task has a period >> and a worst-case executio

Re: [Xen-devel] [PATCH v6] x86/hvm: Implement hvmemul_write() using real mappings

2017-09-27 Thread Jan Beulich
>>> On 27.09.17 at 14:39, wrote: > --- a/xen/arch/x86/hvm/emulate.c > +++ b/xen/arch/x86/hvm/emulate.c > @@ -498,6 +498,170 @@ static int hvmemul_do_mmio_addr(paddr_t mmio_gpa, > } > > /* > + * Map the frame(s) covering an individual linear access, for writeable > + * access. May return NULL

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

2017-09-27 Thread Dario Faggioli
On Wed, 2017-09-27 at 08:57 -0400, Robert VanVossen wrote: > On 9/26/2017 3:12 AM, Dario Faggioli wrote: > > [Cc-list modified by removing someone and adding someone else] > > > > Actually, the best candidate for gaining security support, is IMO > > ARINC. Code is also rather simple and "stable" (

[Xen-devel] [PATCH v4 2/3] x86/xen/time: setup vcpu 0 time info page

2017-09-27 Thread Joao Martins
In order to support pvclock vdso on xen we need to setup the time info page for vcpu 0 and register the page with Xen using the VCPUOP_register_vcpu_time_memory_area hypercall. This hypercall will also forcefully update the pvti which will set some of the necessary flags for vdso. Afterwards we che

[Xen-devel] [PATCH v4 1/3] x86/pvclock: add setter for pvclock_pvti_cpu0_va

2017-09-27 Thread Joao Martins
Right now there is only a pvclock_pvti_cpu0_va() which is defined on kvmclock since: commit dac16fba6fc5 ("x86/vdso: Get pvclock data from the vvar VMA instead of the fixmap") The only user of this interface so far is kvm. This commit adds a setter function for the pvti page and moves pvclock_pvt

[Xen-devel] [PATCH v4 3/3] MAINTAINERS: xen, kvm: track pvclock-abi.h changes

2017-09-27 Thread Joao Martins
This file defines an ABI shared between guest and hypervisor(s) (KVM, Xen) and as such there should be an correspondent entry in MAINTAINERS file. Notice that there's already a text notice at the top of the header file, hence this commit simply enforces it more explicitly and have both peers notice

[Xen-devel] [PATCH v4 0/3] x86/xen: pvclock vdso support

2017-09-27 Thread Joao Martins
Hey, This is take 4 for vdso for Xen. PVCLOCK_TSC_STABLE_BIT can be set starting Xen 4.8 which is required for vdso time related calls. In order to have it on, you need to have the hypervisor clocksource be TSC e.g. with the following boot params "clocksource=tsc tsc=stable:socket". Series is st

Re: [Xen-devel] [PATCH 1/3] xen: timers: don't miss a timer event because of stop_timer()

2017-09-27 Thread Dario Faggioli
On Wed, 2017-09-27 at 04:30 -0600, Jan Beulich wrote: > > > > On 27.09.17 at 12:18, wrote: > > > And that is because the following happens: > > - the CPU wants to go idle > > - sched_tick_suspend() > > rcu_idle_timer_start() > >   set_timer(RCU_idle_timer) > > - the CPU goes idle > >   ..

Re: [Xen-devel] [PATCH v2] Call xen_cleanhighmap() with 4MB aligned for page tables mapping

2017-09-27 Thread Boris Ostrovsky
On 09/27/2017 05:43 AM, Juergen Gross wrote: > On 27/09/17 11:41, Zhenzhong Duan wrote: >> When bootup a PVM guest with large memory(Ex.240GB), XEN provided initial >> mapping overlaps with kernel module virtual space. When mapping in this space >> is cleared by xen_cleanhighmap(), in certain case

Re: [Xen-devel] [PATCH v6] x86/hvm: Implement hvmemul_write() using real mappings

2017-09-27 Thread Jan Beulich
>>> On 27.09.17 at 14:39, wrote: > From: Andrew Cooper > > An access which crosses a page boundary is performed atomically by x86 > hardware, albeit with a severe performance penalty. An important corner > case > is when a straddled access hits two pages which differ in whether a > translation

Re: [Xen-devel] [PATCH v7 01/12] x86/mm: allow a privileged PV domain to map guest mfns

2017-09-27 Thread Jan Beulich
>>> On 27.09.17 at 14:49, wrote: >> -Original Message- >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: 27 September 2017 13:47 >> To: Paul Durrant >> Cc: Andrew Cooper ; xen- >> de...@lists.xenproject.org >> Subject: RE: [PATCH v7 01/12] x86/mm: allow a privileged PV domain to

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

2017-09-27 Thread osstest service owner
flight 113850 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/113850/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf-libvirt broken in 113840 test-amd64-i386-xl-qemut-win7-

Re: [Xen-devel] [PATCH v7 02/12] x86/mm: add HYPERVISOR_memory_op to acquire guest resources

2017-09-27 Thread Jan Beulich
>>> On 27.09.17 at 13:34, wrote: > On 26/09/17 13:49, Paul Durrant wrote: >>> -Original Message- >>> From: Jan Beulich [mailto:jbeul...@suse.com] >>> Sent: 26 September 2017 13:35 >>> To: Andrew Cooper ; Paul Durrant >>> >>> Cc: xen-de...@lists.xenproject.org >>> Subject: RE: [PATCH v7 0

Re: [Xen-devel] [PATCH v7 01/12] x86/mm: allow a privileged PV domain to map guest mfns

2017-09-27 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 27 September 2017 13:47 > To: Paul Durrant > Cc: Andrew Cooper ; xen- > de...@lists.xenproject.org > Subject: RE: [PATCH v7 01/12] x86/mm: allow a privileged PV domain to map > guest mfns > > >>> On 27.09.17 at 13

Re: [Xen-devel] [PATCH v7 01/12] x86/mm: allow a privileged PV domain to map guest mfns

2017-09-27 Thread Jan Beulich
>>> On 27.09.17 at 13:18, wrote: >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: 25 September 2017 14:03 >> >>> On 18.09.17 at 17:31, wrote: >> > -if ( (real_pg_owner == NULL) || (pg_owner == l1e_owner) || >> > +if ( (real_pg_owner == NULL) || >> > xsm_priv_

Re: [Xen-devel] [PATCH v5] x86/hvm: Implement hvmemul_write() using real mappings

2017-09-27 Thread Jan Beulich
>>> On 27.09.17 at 14:11, wrote: > On 27/09/17 12:48, Alexandru Stefan ISAILA wrote: >> On Mi, 2017-09-27 at 09:38 +0100, Andrew Cooper wrote: >>> On 27/09/2017 09:04, Alexandru Isaila wrote: From: Andrew Cooper -return X86EMUL_EXCEPTION; -case HVMTRANS_bad_gf

[Xen-devel] [PATCH v6] x86/hvm: Implement hvmemul_write() using real mappings

2017-09-27 Thread Alexandru Isaila
From: Andrew Cooper An access which crosses a page boundary is performed atomically by x86 hardware, albeit with a severe performance penalty. An important corner case is when a straddled access hits two pages which differ in whether a translation exists, or in net access rights. The use of hvm

Re: [Xen-devel] [PATCH 2/2] python/libxc: extend the call to get/set cap for credit2

2017-09-27 Thread Marek Marczykowski-Górecki
On Wed, Sep 27, 2017 at 12:46:22PM +0100, Wei Liu wrote: > Commit 68817024 ("xen: credit2: allow to set and get utilization cap") > added a new parameter. Implement it for the python binding as well. > > Coverity-ID: 1418532 > > Signed-off-by: Wei Liu Acked-by: Marek Marczykowski-Górecki > --

  1   2   >