[Xen-devel] [PATCH 3/3] x86/xen: supply rsdp address in boot params for pvh guests

2017-11-28 Thread Juergen Gross
When booted via the special PVH entry save the RSDP address set in the boot information block in struct boot_params. This will enable Xen to locate the RSDP at an arbitrary address. Signed-off-by: Juergen Gross <jgr...@suse.com> --- arch/x86/xen/enlighten_pvh.c | 2 ++ 1 file chan

Re: [Xen-devel] [PATCH 2/3] x86/acpi: take rsdp address for boot params if available

2017-11-28 Thread Juergen Gross
On 28/11/17 11:18, Roger Pau Monné wrote: > On Tue, Nov 28, 2017 at 10:43:59AM +0100, Juergen Gross wrote: >> In case the rsdp address in struct boot_params is specified don't try >> to find the table by searching, but take the address directly as set >> by the boot loa

Re: [Xen-devel] [PATCH 3/3] x86/xen: supply rsdp address in boot params for pvh guests

2017-11-28 Thread Juergen Gross
On 28/11/17 11:17, Roger Pau Monné wrote: > On Tue, Nov 28, 2017 at 10:44:00AM +0100, Juergen Gross wrote: >> When booted via the special PVH entry save the RSDP address set in the >> boot information block in struct boot_params. This will enable Xen to >> locate the RSDP at

[Xen-devel] [PATCH 0/3] x86: make rsdp address accessible via boot params

2017-11-28 Thread Juergen Gross
on the RSDP address being specified by grub2 (which in turn got the address via the start of day information block from Xen). Juergen Gross (3): x86/boot: add acpi rsdp address to setup_header x86/acpi: take rsdp address for boot params if available x86/xen: supply rsdp address in boot params for pvh

[Xen-devel] [PATCH 1/3] x86/boot: add acpi rsdp address to setup_header

2017-11-28 Thread Juergen Gross
of the RSDP address. Being zero means it isn't specified and has to be located the legacy way (searching through low memory or EBDA). Signed-off-by: Juergen Gross <jgr...@suse.com> --- Documentation/x86/boot.txt| 19 +++ arch/x86/boot/header.S

[Xen-devel] [PATCH 2/3] x86/acpi: take rsdp address for boot params if available

2017-11-28 Thread Juergen Gross
In case the rsdp address in struct boot_params is specified don't try to find the table by searching, but take the address directly as set by the boot loader. Signed-off-by: Juergen Gross <jgr...@suse.com> --- drivers/acpi/osl.c | 8 1 file changed, 8 insertions(+) diff --git a/d

Re: [Xen-devel] [PATCH] x86/entry/64/paravirt: Use paravirt-safe macro to access eflags

2017-11-27 Thread Juergen Gross
On 27/11/17 19:05, Boris Ostrovsky wrote: > Commit 1d3e53e8624a ("x86/entry/64: Refactor IRQ stacks and make > them NMI-safe") added DEBUG_ENTRY_ASSERT_IRQS_OFF macro that acceses > eflags using 'pushfq' instruction when testing for IF bit. On PV Xen > guests looking at IF flag directly will

[Xen-devel] [PATCH] x86/xen: support early interrupts in xen pv guests

2017-11-24 Thread Juergen Gross
Add early interrupt handlers activated by idt_setup_early_handler() to the handlers supported by Xen pv guests. This will allow for early WARN() calls not crashing the guest. Suggested-by: Andy Lutomirski <l...@kernel.org> Signed-off-by: Juergen Gross <jgr...@suse.com> --- arch/x86

Re: [Xen-devel] Linux as 32-bit Dom0?

2017-11-23 Thread Juergen Gross
On 22/11/17 15:48, Jan Beulich wrote: On 22.11.17 at 15:40, wrote: >> On 22/11/17 15:05, Jan Beulich wrote: >>> Jürgen, Boris, >>> >>> am I trying something that's not allowed, but selectable via Kconfig? >>> On system with multiple IO-APICs (I assume that's what triggers

Re: [Xen-devel] [RFC PATCH] KVM: x86: Allow Qemu/KVM to use PVH entry point

2017-11-29 Thread Juergen Gross
On 28/11/17 20:34, Maran Wilson wrote: > For certain applications it is desirable to rapidly boot a KVM virtual > machine. In cases where legacy hardware and software support within the > guest is not needed, Qemu should be able to boot directly into the > uncompressed Linux kernel binary without

Re: [Xen-devel] [PATCH v2] x86/entry/64/paravirt: Use paravirt-safe macro to access eflags

2017-11-28 Thread Juergen Gross
ng at IF flag directly will always see it set, resulting > in 'ud2'. > > Introduce SAVE_FLAGS() macro that will use appropriate save_fl pv op > when running paravirt. > > Signed-off-by: Boris Ostrovsky <boris.ostrov...@oracle.com> Reviewed

Re: [Xen-devel] [PATCH 0/3] x86: make rsdp address accessible via boot params

2017-11-28 Thread Juergen Gross
On 28/11/17 22:03, Rafael J. Wysocki wrote: > On Tue, Nov 28, 2017 at 10:43 AM, Juergen Gross <jgr...@suse.com> wrote: >> In the non-EFI boot path the ACPI RSDP table is currently found via >> either EBDA or by searching through low memory for the RSDP magic. >

[Xen-devel] [PATCH] libxl: put RSDP for PVH guest near 4GB

2017-11-29 Thread Juergen Gross
Instead of locating the RSDP table below 1MB put it just below 4GB like the rest of the ACPI tables in case of PVH guests. This will avoid punching more holes than necessary into the memory map. Signed-off-by: Juergen Gross <jgr...@suse.com> --- tools/libxc/xc_dom_hvmloader.c | 2 +- tools

[Xen-devel] [PATCH 8/8] xenpvh: add support to configure

2017-11-29 Thread Juergen Gross
Support platform i386/xenpvh in configure. Signed-off-by: Juergen Gross <jgr...@suse.com> --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index c7888e40f..d987d3379 100644 --- a/configure.ac +++ b/configure.ac @@ -147,6 +147,7 @

[Xen-devel] [PATCH 7/8] xenpvh: support grub-install for xenpvh

2017-11-29 Thread Juergen Gross
Add xenpvh support to grub-install. Signed-off-by: Juergen Gross <jgr...@suse.com> --- include/grub/util/install.h | 1 + util/grub-install-common.c | 1 + util/grub-install.c | 7 +++ 3 files changed, 9 insertions(+) diff --git a/include/grub/util/install.h b/include/gru

[Xen-devel] [PATCH 1/8] xen: add some xen headers

2017-11-29 Thread Juergen Gross
In order to support grub2 in Xen PVH environment some additional Xen headers are needed. Add them. Signed-off-by: Juergen Gross <jgr...@suse.com> --- include/xen/hvm/hvm_op.h | 296 +++ include/xen/hvm/params.h | 284 ++ include/xen/hvm/start_info.h

[Xen-devel] [PATCH 6/8] xenpvh: support building a standalone image

2017-11-29 Thread Juergen Gross
Suppor mkimage for xenpvh. Signed-off-by: Juergen Gross <jgr...@suse.com> --- include/grub/util/mkimage.h | 3 ++- util/grub-mkimage32.c | 1 + util/grub-mkimage64.c | 1 + util/grub-mkimagexx.c | 44 util/mki

[Xen-devel] [PATCH 2/8] loader/linux: support passing rsdp address via boot params

2017-11-29 Thread Juergen Gross
Xen PVH guests will have the RSDP at an arbitrary address. Support that by passing the RSDP address via the boot parameters to Linux. Signed-off-by: Juergen Gross <jgr...@suse.com> --- grub-core/loader/i386/linux.c | 6 ++ include/grub/i386/linux.h | 4 +++- 2 files changed, 9 inse

[Xen-devel] [PATCH 0/8] xen: add pvh guest support

2017-11-29 Thread Juergen Gross
loader is to pass the ACPI RSDP address via boot parameters to the kernel, as that table might not be located at the usual physical address just below 1MB. As the related Linux kernel patches are not yet accepted please wait for this to happen before applying the series. Juergen Gross (8): xen

[Xen-devel] [PATCH 4/8] xen: add xen pvh guest support to grub-core

2017-11-29 Thread Juergen Gross
with PVH Enabling all this code is done later. Signed-off-by: Juergen Gross <jgr...@suse.com> --- grub-core/kern/i386/tsc.c | 2 +- grub-core/kern/i386/xen/pvh.c | 344 ++ grub-core/kern/i386/xen/startup_pvh.S | 80 grub-core/ke

[Xen-devel] [PATCH 5/8] xenpvh: add build runes for grub-core

2017-11-29 Thread Juergen Gross
Add the modifications to the build system needed to build a xenpvh grub. Signed-off-by: Juergen Gross <jgr...@suse.com> --- gentpl.py | 4 ++-- grub-core/Makefile.am | 12 grub-core/Makefile.core.def | 35 +++ 3 files c

Re: [Xen-devel] [RFC PATCH] KVM: x86: Allow Qemu/KVM to use PVH entry point

2017-11-29 Thread Juergen Gross
On 29/11/17 15:44, Paolo Bonzini wrote: > On 29/11/2017 15:25, Boris Ostrovsky wrote: > zeropage is x86/Linux-specific so we'd need some sort of firmware (like > grub) between a hypervisor and Linux to convert hvm_start_info to > bootparams. qemu? >> >> I think KVM folks didn't

Re: [Xen-devel] [PATCH] libxl: put RSDP for PVH guest near 4GB

2017-11-29 Thread Juergen Gross
On 29/11/17 15:25, Jan Beulich wrote: On 29.11.17 at 15:13, wrote: >> --- a/tools/libxl/libxl_x86_acpi.c >> +++ b/tools/libxl/libxl_x86_acpi.c >> @@ -23,7 +23,6 @@ >> /* Number of pages holding ACPI tables */ >> #define NUM_ACPI_PAGES 16 >> /* Store RSDP in the last 64

[Xen-devel] [PATCH 3/8] xen: carve out grant tab initialization into dedicated function

2017-11-29 Thread Juergen Gross
Initialize the grant tab in a dedicated function. This will enable using it for PVH guests, too. Signed-off-by: Juergen Gross <jgr...@suse.com> --- grub-core/kern/xen/init.c | 35 +-- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/grub-cor

Re: [Xen-devel] [RFC PATCH] KVM: x86: Allow Qemu/KVM to use PVH entry point

2017-11-29 Thread Juergen Gross
On 29/11/17 15:03, Boris Ostrovsky wrote: > On 11/29/2017 03:50 AM, Roger Pau Monné wrote: >> On Wed, Nov 29, 2017 at 09:21:59AM +0100, Juergen Gross wrote: >>> On 28/11/17 20:34, Maran Wilson wrote: >>>> For certain applications it is desirable to rapidly boot a KVM

Re: [Xen-devel] [PATCHv2] xen-netfront: remove warning when unloading module

2017-11-27 Thread Juergen Gross
ings on dmesg. > > The trick here is to make netfront to wait until netback frees all the g.e.'s > and only then continue to cleanup for the module removal, and this is done by > manipulating both device states. > > Signed-off-by: Eduardo Otubo

Re: [Xen-devel] Xen PV breakage after IRQ stack code refactoring

2017-11-26 Thread Juergen Gross
On 27/11/17 05:03, Andy Lutomirski wrote: > On Sun, Nov 26, 2017 at 9:10 AM, Boris Ostrovsky > wrote: >> Andy, >> >> (Can't find the original patch in my mailbox) >> >> This hunk from 1d3e53e8624a ("x86/entry/64: Refactor IRQ stacks and make >> them NMI-safe") >> >> >>

Re: [Xen-devel] [PATCH 0/8] xen: add pvh guest support

2017-11-30 Thread Juergen Gross
On 30/11/17 22:03, Daniel Kiper wrote: > On Wed, Nov 29, 2017 at 02:46:42PM +0100, Juergen Gross wrote: >> This patch series adds support for booting Linux as PVH guest. >> >> Similar to i386/xen and x86_64/xen platforms the new i386/xenpvh >> platform grub is booted as

Re: [Xen-devel] [PATCH 1/2] x86: consider effective protection attributes in W+X check

2017-12-14 Thread Juergen Gross
prot = pmd_flags(*start); > - note_page(m, st, __pgprot(prot), 4); > + note_page(m, st, __pgprot(prot), eff, 4); > } else if (!kasan_page_table(m, st, pmd_start)) { > - walk_pte_level(m, st, *start, > + walk_pte_level(m, st, *start, eff, > P + i * PMD_LEVEL_MULT); > } You can drop the braces for both cases. Applies to similar constructs below, too. With that fixed you can add my: Reviewed-by: Juergen Gross <jgr...@suse.com> Juergen ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] Xen release cycle revisited

2017-12-14 Thread Juergen Gross
On 14/12/17 13:43, Julien Grall wrote: > > > On 14/12/17 11:38, Juergen Gross wrote: >> On 14/12/17 12:28, Julien Grall wrote: >>> >>> >>> On 14/12/17 07:56, Juergen Gross wrote: >>>> Hi all, >>> >>> Hi Juergen, >>

Re: [Xen-devel] [PATCH 1/2] x86: consider effective protection attributes in W+X check

2017-12-14 Thread Juergen Gross
t;> } >> >> You can drop the braces for both cases. Applies to similar >> constructs below, too. > > I did consider that, but decided against to allow the patch to show > more clearly what it is that is actually being changed. > >> With

[Xen-devel] Tree is open again

2017-12-14 Thread Juergen Gross
Committers, as 4.10 has been released, feel free to commit patches again. Juergen ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH] docs/process/xen-release-management: Lesson to learn

2017-12-13 Thread Juergen Gross
> by committing to a release date before the exact code to be released > is known and has been made and tested. > > Evidently our docs makes it insufficiently clear not to do that. > > CC: Lars Kurth <lars.ku...@citrix.com> > CC: Julien Grall <julien.gr...@arm.com> &g

Re: [Xen-devel] Xen release cycle revisited

2017-12-18 Thread Juergen Gross
On 18/12/17 16:57, Julien Grall wrote: > Hi George, > > On 18/12/17 14:56, George Dunlap wrote: >> On Fri, Dec 15, 2017 at 2:54 PM, Juergen Gross <jgr...@suse.com> wrote: >>> On 14/12/17 14:13, Juergen Gross wrote: >>>> On 14/12/17 13:43, Julien Grall

Re: [Xen-devel] [PATCH v2] x86-64/Xen: eliminate W+X mappings

2017-12-18 Thread Juergen Gross
rch/x86/include/asm/cpu.h ? With that fixed (or without it in case the x86 maintainers don't like the prototype to be moved): Reviewed-by: Juergen Gross <jgr...@suse.com> Juergen ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] Xen release cycle revisited

2017-12-18 Thread Juergen Gross
On 18/12/17 21:27, Julien Grall wrote: > Hi Juergen, > > On 18/12/2017 18:32, Juergen Gross wrote: >> On 18/12/17 17:38, Julien Grall wrote: >>> Hi Juergen, >>> >>> On 18/12/17 16:10, Juergen Gross wrote: >>>> On 18/12/17 16:57, Julien Grall

Re: [Xen-devel] Xen release cycle revisited

2017-12-18 Thread Juergen Gross
On 18/12/17 17:38, Julien Grall wrote: > Hi Juergen, > > On 18/12/17 16:10, Juergen Gross wrote: >> On 18/12/17 16:57, Julien Grall wrote: >>> Hi George, >>> >>> On 18/12/17 14:56, George Dunlap wrote: >>>> On Fri, Dec 15, 2017 at 2:54 PM, Ju

Re: [Xen-devel] [PATCH v2] libxl: put RSDP for PVH guest near 4GB

2017-12-19 Thread Juergen Gross
Ping? On 01/12/17 15:14, Juergen Gross wrote: > Instead of locating the RSDP table below 1MB put it just below 4GB > like the rest of the ACPI tables in case of PVH guests. This will > avoid punching more holes than necessary into the memory map. > > Signed-off-by: Juergen Gross &

Re: [Xen-devel] [PATCH v2] libxl: put RSDP for PVH guest near 4GB

2017-12-19 Thread Juergen Gross
On 19/12/17 16:38, Roger Pau Monné wrote: > On Fri, Dec 01, 2017 at 03:14:07PM +0100, Juergen Gross wrote: >> Instead of locating the RSDP table below 1MB put it just below 4GB >> like the rest of the ACPI tables in case of PVH guests. This will >> avoid punching more

Re: [Xen-devel] [PATCH v2] libxl: put RSDP for PVH guest near 4GB

2017-12-19 Thread Juergen Gross
On 19/12/17 17:11, Roger Pau Monné wrote: > On Tue, Dec 19, 2017 at 04:46:37PM +0100, Juergen Gross wrote: >> On 19/12/17 16:38, Roger Pau Monné wrote: >>> On Fri, Dec 01, 2017 at 03:14:07PM +0100, Juergen Gross wrote: >>>> Instead of locating the RSDP table b

[Xen-devel] [GIT PULL] xen: fixes for 4.15-rc4

2017-12-14 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-4.15-rc4-tag xen: fixes for 4.15-rc4 It contains two minor fixes for running as Xen dom0: - when built as 32 bit kernel on large machines the Xen LAPIC emulation should report a

Re: [Xen-devel] [PATCH] xen/balloon: Mark unallocated host memory as UNUSABLE

2017-12-15 Thread Juergen Gross
On 12/12/17 23:51, Boris Ostrovsky wrote: > Commit f5775e0b6116 ("x86/xen: discard RAM regions above the maximum > reservation") left host memory not assigned to dom0 as available for > memory hotplug. > > Unfortunately this also meant that those regions could be used by > others. Specifically,

Re: [Xen-devel] Xen release cycle revisited

2017-12-15 Thread Juergen Gross
On 14/12/17 14:13, Juergen Gross wrote: > On 14/12/17 13:43, Julien Grall wrote: >> >> >> On 14/12/17 11:38, Juergen Gross wrote: >>> On 14/12/17 12:28, Julien Grall wrote: >>>> >>>> >>>> On 14/12/17 07:56, Juergen Gross wrote: >

Re: [Xen-devel] [PATCH] xen/balloon: Mark unallocated host memory as UNUSABLE

2017-12-15 Thread Juergen Gross
On 15/12/17 15:24, Boris Ostrovsky wrote: > >>> + >>> + hostmem_resource->start = max_addr; >>> + hostmem_resource->end = entry->addr + entry->size; >>> + for (; i < memmap.nr_entries; i++) { >>> + entry = _e820_table->entries[i]; >>> + if (entry->type == E820_TYPE_RAM)

Re: [Xen-devel] [PATCH] xen/balloon: Mark unallocated host memory as UNUSABLE

2017-12-15 Thread Juergen Gross
On 15/12/17 15:58, Boris Ostrovsky wrote: > On 12/15/2017 09:47 AM, Juergen Gross wrote: >> On 15/12/17 15:24, Boris Ostrovsky wrote: >>>>> + >>>>> + hostmem_resource->start = max_addr; >>>>> + hostmem_resource->end = entry-

Re: [Xen-devel] [RFC PATCH v3 2/2] KVM: x86: Allow Qemu/KVM to use PVH entry point

2017-12-15 Thread Juergen Gross
On 13/12/17 00:42, Maran Wilson wrote: > For certain applications it is desirable to rapidly boot a KVM virtual > machine. In cases where legacy hardware and software support within the > guest is not needed, Qemu should be able to boot directly into the > uncompressed Linux kernel binary without

[Xen-devel] Xen release cycle revisited

2017-12-13 Thread Juergen Gross
Hi all, with 4.10 more or less finished it is time to plan for the next release 4.11. Since 4.7 we are using a 6 month release cycle [1] targeting to release in June and December. While this worked reasonably well for 4.7, 4.8 and 4.9 we had some difficulties with 4.10: bad luck with security

Re: [Xen-devel] Xen release cycle revisited

2017-12-14 Thread Juergen Gross
On 14/12/17 12:28, Julien Grall wrote: > > > On 14/12/17 07:56, Juergen Gross wrote: >> Hi all, > > Hi Juergen, > > I would recommend to CC committers on that thread, so your thread don't > get lost in the xen-devel meanders :). > >> with 4.10 m

Re: [Xen-devel] [PATCH 0/8] xen: add pvh guest support

2017-12-14 Thread Juergen Gross
On 14/12/17 12:19, Daniel Kiper wrote: > On Fri, Dec 01, 2017 at 12:12:50PM +0100, Daniel Kiper wrote: >> On Fri, Dec 01, 2017 at 06:37:37AM +0100, Juergen Gross wrote: >>> On 30/11/17 22:03, Daniel Kiper wrote: >>>> On Wed, Nov 29, 2017 at 02:46:42PM +0100, Juergen

Re: [Xen-devel] [PATCH 0/8] xen: add pvh guest support

2017-12-14 Thread Juergen Gross
On 14/12/17 12:32, Daniel Kiper wrote: > On Thu, Dec 14, 2017 at 12:26:02PM +0100, Juergen Gross wrote: >> On 14/12/17 12:19, Daniel Kiper wrote: >>> On Fri, Dec 01, 2017 at 12:12:50PM +0100, Daniel Kiper wrote: >>>> On Fri, Dec 01, 2017 at 06:37:37AM +0100, Juergen

Re: [Xen-devel] [RFC PATCH 01/60] hyper_dmabuf: initial working version of hyper_dmabuf drv

2017-12-20 Thread Juergen Gross
On 20/12/17 00:27, Dongwon Kim wrote: > I forgot to include this brief information about this patch series. > > This patch series contains the implementation of a new device driver, > hyper_dmabuf, which provides a method for DMA-BUF sharing across > different OSes running on the same virtual OS

Re: [Xen-devel] Xen PV DomU running Kernel 4.14.5-1.el7.elrepo.x86_64: xl -v vcpu-set triggers domU kernel WARNING, then domU becomes unresponsive

2017-12-20 Thread Juergen Gross
On 19/12/17 07:31, Adi Pircalabu wrote: > Posted initially to centos-virt mailing list. Please note I'm not > subscribed to xen-devel. > > Running "xl -v vcpu-set " on both CentOS 6 running > 4.14.5-1.el6.elrepo.x86_64 and CentOS 7 running > 4.14.5-1.el7.elrepo.x86_64 I'm able to trigger this

Re: [Xen-devel] [PATCH v2] xen/balloon: Mark unallocated host memory as UNUSABLE

2017-12-19 Thread Juergen Gross
On 19/12/17 09:23, Jan Beulich wrote: On 18.12.17 at 23:22, wrote: >> +void __init arch_xen_balloon_init(struct resource *hostmem_resource) >> +{ >> +struct xen_memory_map memmap; >> +int rc; >> +unsigned int i, last_guest_ram; >> +phys_addr_t

Re: [Xen-devel] [PATCH v2] xen/balloon: Mark unallocated host memory as UNUSABLE

2017-12-19 Thread Juergen Gross
On 18/12/17 23:22, Boris Ostrovsky wrote: > Commit f5775e0b6116 ("x86/xen: discard RAM regions above the maximum > reservation") left host memory not assigned to dom0 as available for > memory hotplug. > > Unfortunately this also meant that those regions could be used by > others. Specifically,

Re: [Xen-devel] [PATCH v2] xen/balloon: Mark unallocated host memory as UNUSABLE

2017-12-19 Thread Juergen Gross
On 19/12/17 10:27, Jan Beulich wrote: On 19.12.17 at 10:21, wrote: >> On 19/12/17 09:23, Jan Beulich wrote: >> On 18.12.17 at 23:22, wrote: +void __init arch_xen_balloon_init(struct resource *hostmem_resource) +{ + struct

Re: [Xen-devel] [for-4.10] Re: [PATCH v2] tools/libxl: mark special pages as reserved in e820 map for PVH

2017-12-05 Thread Juergen Gross
On 05/12/17 16:23, Julien Grall wrote: > Hi Juergen, > > On 04/12/17 15:49, Juergen Gross wrote: >> On 21/11/17 12:06, Juergen Gross wrote: >>> The "special pages" for PVH guests include the frames for console and >>> Xenstore ring buffers. Those have to

Re: [Xen-devel] [PATCH 2/2] xen/pvcalls: Fix a check in pvcalls_front_remove()

2017-12-05 Thread Juergen Gross
the backend") > Signed-off-by: Dan Carpenter <dan.carpen...@oracle.com> Reviewed-by: Juergen Gross <jgr...@suse.com> Juergen ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH] xen/pvcalls: check for xenbus_read() errors

2017-12-05 Thread Juergen Gross
On 05/12/17 15:38, Dan Carpenter wrote: > Smatch complains that "len" is uninitialized if xenbus_read() fails so > let's add some error handling. > > Signed-off-by: Dan Carpenter <dan.carpen...@oracle.com> Reviewed-by: Juergen Gross

Re: [Xen-devel] [PATCH v2 2/3] x86/acpi: take rsdp address for boot params if available

2017-12-08 Thread Juergen Gross
On 08/12/17 12:26, Ingo Molnar wrote: > > * Juergen Gross <jgr...@suse.com> wrote: > >> On 08/12/17 08:05, Ingo Molnar wrote: >>> >>> * Juergen Gross <jgr...@suse.com> wrote: >> >> ... >> >>> acp

Re: [Xen-devel] [PATCH v2 1/3] x86/boot: add acpi rsdp address to setup_header

2017-12-08 Thread Juergen Gross
On 08/12/17 08:16, Ingo Molnar wrote: > > * Juergen Gross <jgr...@suse.com> wrote: > >> Xen PVH guests receive the address of the RSDP table from Xen. In order >> to support booting a Xen PVH guest via grub2 using the standard x86 >> boot entry we need a way f

Re: [Xen-devel] [PATCH v2 3/3] x86/xen: supply rsdp address in boot params for pvh guests

2017-12-08 Thread Juergen Gross
On 08/12/17 08:22, Ingo Molnar wrote: > > * Juergen Gross <jgr...@suse.com> wrote: > >> When booted via the special PVH entry save the RSDP address set in the >> boot information block in struct boot_params. This will enable Xen to >> locate the RSDP at an arbi

[Xen-devel] [GIT PULL] xen: fixes for 4.15-rc3

2017-12-08 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-4.15-rc3-tag xen: fixes for 4.15-rc3 Those are just two small fixes for the nev pvcalls frontend driver. Thanks. Juergen drivers/xen/pvcalls-front.c | 4 +++- 1 file changed, 3

Re: [Xen-devel] [PATCH v2 2/3] x86/acpi: take rsdp address for boot params if available

2017-12-08 Thread Juergen Gross
On 08/12/17 08:05, Ingo Molnar wrote: > > * Juergen Gross <jgr...@suse.com> wrote: > >> In case the rsdp address in struct boot_params is specified don't try >> to find the table by searching, but take the address directly as set >> by the boot loader. >&g

Re: [Xen-devel] [PATCH v2 1/3] x86/boot: add acpi rsdp address to setup_header

2017-12-08 Thread Juergen Gross
On 08/12/17 09:48, Ingo Molnar wrote: > > * Juergen Gross <jgr...@suse.com> wrote: > >>>> +Offset/size: 0x268/8 >>>> +Protocol: 2.14+ >>>> + >>>> + This field can be set by the boot loader to tell the kernel the >>>&

Re: [Xen-devel] [PATCH v2 2/3] x86/acpi: take rsdp address for boot params if available

2017-12-08 Thread Juergen Gross
On 08/12/17 08:05, Ingo Molnar wrote: > > * Juergen Gross <jgr...@suse.com> wrote: ... > acpi_physical_address acpi_arch_get_root_pointer(void) > { > return boot_params.hdr.acpi_rsdp_addr; > } > > 4) > > Add this to arch/x86/include/asm/acpi.

[Xen-devel] [PATCH v3 3/4] x86/xen: fix boot loader version reported for pvh guests

2017-12-08 Thread Juergen Gross
: <sta...@vger.kernel.org> # 4.12 Signed-off-by: Juergen Gross <jgr...@suse.com> --- arch/x86/xen/enlighten_pvh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/xen/enlighten_pvh.c b/arch/x86/xen/enlighten_pvh.c index 436c4f003e17..6e6430cb5e3f 100644

[Xen-devel] [PATCH v3 1/4] x86/boot: add acpi rsdp address to setup_header

2017-12-08 Thread Juergen Gross
of the RSDP address. Being zero means it isn't specified and has to be located the legacy way (searching through low memory or EBDA). While documenting the new setup_header layout and protocol version 2.14 add the missing documentation of protocol version 2.13. Signed-off-by: Juergen Gross <

[Xen-devel] [PATCH v3 4/4] x86/xen: supply rsdp address in boot params for pvh guests

2017-12-08 Thread Juergen Gross
-by: Juergen Gross <jgr...@suse.com> --- V2: set bootloader version to 2.14 (Roger Pau Monné) --- arch/x86/xen/enlighten_pvh.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/x86/xen/enlighten_pvh.c b/arch/x86/xen/enlighten_pvh.c index 6e6430cb5e3f..e85e6dafe4bc

[Xen-devel] [PATCH v3 0/4] x86: make rsdp address accessible via boot params

2017-12-08 Thread Juergen Gross
on the RSDP address being specified by grub2 (which in turn got the address via the start of day information block from Xen). Juergen Gross (4): x86/boot: add acpi rsdp address to setup_header x86/acpi: take rsdp address for boot params if available x86/xen: fix boot loader version reported for pvh

[Xen-devel] [PATCH v2] libxl: put RSDP for PVH guest near 4GB

2017-12-01 Thread Juergen Gross
Instead of locating the RSDP table below 1MB put it just below 4GB like the rest of the ACPI tables in case of PVH guests. This will avoid punching more holes than necessary into the memory map. Signed-off-by: Juergen Gross <jgr...@suse.com> Acked-by: Wei Liu <wei.l...@citrix.com>

Re: [Xen-devel] [PATCH v2] tools/libxl: mark special pages as reserved in e820 map for PVH

2017-12-04 Thread Juergen Gross
On 21/11/17 12:06, Juergen Gross wrote: > The "special pages" for PVH guests include the frames for console and > Xenstore ring buffers. Those have to be marked as "Reserved" in the > guest's E820 map, as otherwise conflicts might arise later e.g. when > h

[Xen-devel] [PATCH v2 2/3] x86/acpi: take rsdp address for boot params if available

2017-12-07 Thread Juergen Gross
In case the rsdp address in struct boot_params is specified don't try to find the table by searching, but take the address directly as set by the boot loader. Signed-off-by: Juergen Gross <jgr...@suse.com> --- drivers/acpi/osl.c | 8 1 file changed, 8 insertions(+) diff --git a/d

[Xen-devel] [PATCH v2 0/3] x86: make rsdp address accessible via boot params

2017-12-07 Thread Juergen Gross
on the RSDP address being specified by grub2 (which in turn got the address via the start of day information block from Xen). Juergen Gross (3): x86/boot: add acpi rsdp address to setup_header x86/acpi: take rsdp address for boot params if available x86/xen: supply rsdp address in boot params for pvh

[Xen-devel] [PATCH v2 3/3] x86/xen: supply rsdp address in boot params for pvh guests

2017-12-07 Thread Juergen Gross
-by: Juergen Gross <jgr...@suse.com> --- V2: set bootloader version to 2.14 (Roger Pau Monné) --- arch/x86/xen/enlighten_pvh.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/x86/xen/enlighten_pvh.c b/arch/x86/xen/enlighten_pvh.c index 436c4f003e17..036e3a5f284a

Re: [Xen-devel] [for-4.10] Re: [PATCH v2] tools/libxl: mark special pages as reserved in e820 map for PVH

2017-12-06 Thread Juergen Gross
On 06/12/17 10:53, Julien Grall wrote: > Hi Juergen, > > On 12/05/2017 04:19 PM, Juergen Gross wrote: >> On 05/12/17 16:23, Julien Grall wrote: >>> Hi Juergen, >>> >>> On 04/12/17 15:49, Juergen Gross wrote: >>>> On 21/11/17 12:06, Juergen

Re: [Xen-devel] [for-4.10] Re: [PATCH v2] tools/libxl: mark special pages as reserved in e820 map for PVH

2017-12-06 Thread Juergen Gross
On 06/12/17 12:50, Julien Grall wrote: > Hi, > > On 12/06/2017 11:47 AM, Roger Pau Monné wrote: >> On Wed, Dec 06, 2017 at 12:22:00PM +0100, Juergen Gross wrote: >>> On 06/12/17 10:53, Julien Grall wrote: >>>> Hi Juergen, >>>> >>>> On 12

Re: [Xen-devel] [patch 01/60] x86/entry/64/paravirt: Use paravirt-safe macro to access eflags

2017-12-05 Thread Juergen Gross
v...@oracle.com> > Signed-off-by: Thomas Gleixner <t...@linutronix.de> > Cc: jgr...@suse.com > Cc: xen-devel@lists.xenproject.org > Cc: l...@kernel.org > Link: > https://lkml.kernel.org/r/1512159805-6314-1-git-send-email-boris.ostrov...@oracle.com Reviewed-by: Juergen Gross <jgr

Re: [Xen-devel] [PATCH] xen: XEN_ACPI_PROCESSOR is Dom0-only

2017-12-12 Thread Juergen Gross
On 12/12/17 11:18, Jan Beulich wrote: > Add a respective dependency. > > Signed-off-by: Jan Beulich <jbeul...@suse.com> Reviewed-by: Juergen Gross <jgr...@suse.com> Juergen ___ Xen-devel mailing list Xen-devel@lists

Re: [Xen-devel] [PATCH 2/2] x86-64/Xen: eliminate W+X mappings

2017-12-12 Thread Juergen Gross
On 12/12/17 11:48, Jan Beulich wrote: On 12.12.17 at 11:38, wrote: >> * Jan Beulich wrote: >>> --- 4.15-rc3/arch/x86/xen/mmu_pv.c >>> +++ 4.15-rc3-x86_64-Xen-avoid-W+X/arch/x86/xen/mmu_pv.c >>> @@ -1902,6 +1902,16 @@ void __init

Re: [Xen-devel] [PATCH 41/45] arch/x86: remove duplicate includes

2017-12-11 Thread Juergen Gross
On 11/12/17 21:42, Pravin Shedge wrote: > These duplicate includes have been found with scripts/checkincludes.pl but > they have been removed manually to avoid removing false positives. > > Signed-off-by: Pravin Shedge <pravin.shedge4li...@gmail.com> Reviewed-by: Juergen Gros

Re: [Xen-devel] [PATCH v3] xen/balloon: Mark unallocated host memory as UNUSABLE

2017-12-20 Thread Juergen Gross
reverting f5775e0b6116) and keep track of that region as > a hostmem resource that can be used for the hotplug. > > Signed-off-by: Boris Ostrovsky <boris.ostrov...@oracle.com> Reviewed-by: Juergen Gross <jgr...@suse.com> Juergen ___ Xen-deve

Re: [Xen-devel] [PATCH for-4.11] x86/pv: Unconditionally hide EFER.SVME from PV guests

2018-05-07 Thread Juergen Gross
ned but unknown to Xen. > > Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com> Release-acked-by: Juergen Gross <jgr...@suse.com> Juergen ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH v3 1/2] SVM: re-work VMCB sync-ing

2018-05-07 Thread Juergen Gross
that function. > > With that, there's no need to VMLOAD the state perhaps multiple times; > all that's needed is loading it once before VM entry. > > Signed-off-by: Jan Beulich <jbeul...@suse.com> Release-acked-by: Juergen Gross <jgr...@suse.com> Juergen __

Re: [Xen-devel] [PATCH v3 2/2] SVM: introduce a VM entry helper

2018-05-07 Thread Juergen Gross
ecessary. > > Signed-off-by: Jan Beulich <jbeul...@suse.com> Release-acked-by: Juergen Gross <jgr...@suse.com> Juergen ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel

[Xen-devel] [PATCH v2 2/5] doc: add credit2_cap_period_ms boot parameter description

2018-05-07 Thread Juergen Gross
credit2_cap_period_ms isn't mentioned in xen-command-line.markdown. Add a description. Signed-off-by: Juergen Gross <jgr...@suse.com> --- docs/misc/xen-command-line.markdown | 10 ++ 1 file changed, 10 insertions(+) diff --git a/docs/misc/xen-command-line.markdown b/docs/mi

[Xen-devel] [PATCH v2 1/5] doc: add architecture qualifier to boot parameter entries

2018-05-07 Thread Juergen Gross
Many of the architecture specific boot parameters are not qualified as such. Correct that. Signed-off-by: Juergen Gross <jgr...@suse.com> --- docs/misc/xen-command-line.markdown | 184 ++-- 1 file changed, 92 insertions(+), 92 deletions(-) diff --git a/doc

[Xen-devel] [PATCH v2 4/5] doc: correct feature-levelling.pandoc syntax

2018-05-07 Thread Juergen Gross
"make -C docs all" fails due to incorrect markdown syntax in feature-levelling.pandoc. Correct it. Signed-off-by: Juergen Gross <jgr...@suse.com> --- docs/features/feature-levelling.pandoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/features/feature-

[Xen-devel] [PATCH v2 5/5] doc: correct intel_psr_cat_cdp.pandoc syntax

2018-05-07 Thread Juergen Gross
"make -C docs all" fails due to incorrect markdown syntax in intel_psr_cat_cdp.pandoc. Correct it. Signed-off-by: Juergen Gross <jgr...@suse.com> --- docs/features/intel_psr_cat_cdp.pandoc | 366 - 1 file changed, 175 insertions(+), 191 deletion

[Xen-devel] [PATCH v2 3/5] doc: correct livepatch.markdown syntax

2018-05-07 Thread Juergen Gross
"make -C docs all" fails due to incorrect markdown syntax in livepatch.markdown. Correct it. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> --- docs/misc/livepatch.markdown | 590 -

[Xen-devel] [PATCH v2 0/5] fix several issues in documentation

2018-05-07 Thread Juergen Gross
nges in V2: - dropped patches 1 and 4 as already applied - rebased to current staging - re-added dropped line in livepatch.markdown (Konrad) In case the maintainers are fine with my changes I believe the series should be included in 4.11. So for the series: Release-acked-by: Juergen Gross <jg

Re: [Xen-devel] [PATCH v2 4/5] doc: correct feature-levelling.pandoc syntax

2018-05-07 Thread Juergen Gross
On 07/05/18 12:26, Andrew Cooper wrote: > On 07/05/18 11:16, Juergen Gross wrote: >> "make -C docs all" fails due to incorrect markdown syntax in >> feature-levelling.pandoc. Correct it. >> >> Signed-off-by: Juergen Gross <jgr...@suse.com> > >

Re: [Xen-devel] [PATCH v2 3/5] doc: correct livepatch.markdown syntax

2018-05-07 Thread Juergen Gross
On 07/05/18 12:23, Andrew Cooper wrote: > On 07/05/18 11:16, Juergen Gross wrote: >> "make -C docs all" fails due to incorrect markdown syntax in >> livepatch.markdown. Correct it. > > Which version of markdown, ooi?  Version 1.0.1 seems fine with this. > ...

Re: [Xen-devel] [PATCH v2 3/5] doc: correct livepatch.markdown syntax

2018-05-07 Thread Juergen Gross
On 07/05/18 12:37, Andrew Cooper wrote: > On 07/05/18 11:30, Juergen Gross wrote: >> On 07/05/18 12:23, Andrew Cooper wrote: >>> On 07/05/18 11:16, Juergen Gross wrote: >>>> "make -C docs all" fails due to incorrect markdown syntax in >>>&g

[Xen-devel] [GIT PULL] xen: one cleanup for 4.17-rc4

2018-05-04 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-4.17-rc4-tag xen: one cleanup for 4.17-rc4 It contains one cleanup to remove VLAs from the kernel. Thanks. Juergen arch/x86/xen/enlighten_pv.c | 86

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

2018-05-14 Thread Juergen Gross
On 12/05/18 03:36, osstest service owner wrote: > flight 122660 xen-unstable real [real] > http://logs.test-lab.xenproject.org/osstest/logs/122660/ > > Regressions :-( > > Tests which did not succeed and are blocking, > including tests which could not be run: >

Re: [Xen-devel] [PATCH] x86-64/Xen: fix stack switching

2018-05-14 Thread Juergen Gross
On 14/05/18 12:28, Jan Beulich wrote: On 08.05.18 at 04:38, wrote: >> On Mon, May 7, 2018 at 5:16 AM Jan Beulich wrote: >> >>> While on native entry into the kernel happens on the trampoline stack, >>> PV Xen kernels are being entered with the current

[Xen-devel] [PATCH v3 0/2] fix several issues in documentation

2018-05-08 Thread Juergen Gross
e included in 4.11. So for the series: Release-acked-by: Juergen Gross <jgr...@suse.com> Juergen Gross (2): doc: correct livepatch.markdown syntax doc: correct intel_psr_cat_cdp.pandoc syntax docs/features/intel_psr_cat_cdp.pandoc | 562 --- docs/misc/li

Re: [Xen-devel] [PATCH 0/2] vpci/msi: fix updating already bound MSI interrupts

2018-05-08 Thread Juergen Gross
On 08/05/18 11:23, Roger Pau Monne wrote: > Hello, > > There's a bug in current vpci code for MSI emulation when updating an > already bound interrupt. The code will disable and enable the interrupt > in order to update the binding, which calls unmap_domain_pirq that > disables the global MSI

Re: [Xen-devel] [PATCH v3 0/2] fix several issues in documentation

2018-05-08 Thread Juergen Gross
On 08/05/18 11:25, George Dunlap wrote: > On 05/08/2018 07:47 AM, Juergen Gross wrote: >> Some documents contain invalid pandoc syntax leading to failures when >> creating PDFs from them, e.g. when calling "make all" in the docs >> directory. >> >> Corre

[Xen-devel] [PATCH v3 1/2] doc: correct livepatch.markdown syntax

2018-05-08 Thread Juergen Gross
"make -C docs all" fails due to incorrect markdown syntax in livepatch.markdown. Correct it. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> --- docs/misc/livepatch.markdown | 590 -

  1   2   3   4   5   6   7   8   9   10   >