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

2017-10-31 Thread Doug Goldstein
Prefer using the character device over the proc file if the character device exists. CC: Elena Ufimtseva CC: Ian Jackson CC: Stefano Stabellini CC: Wei Liu Signed-off-by: Doug Goldstein --- So this was originally submitted with 9c89dc95201 and 7d418eab3b6 and was rejected since the goal was

Re: [Xen-devel] Xen 4.6 Hypervisor Fails to Boot and is Hanged in "Turning on Paging"

2017-10-27 Thread Doug Goldstein
- 14.04 14.04 here would imply he's running some Ubuntu for ARM build. Ubuntu 14.04 shipped with Xen 4.6. -- Doug Goldstein ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v2 1/2] x86/boot: fix early error display

2017-10-27 Thread Doug Goldstein
; That how I did understand it, so I've queued this already, but for > it to become eligible to applying to 4.9 it first needs to pass the > push gate on master. > > Jan > Of course. I didn't mean to imply this should jump any existing process. I had just real

Re: [Xen-devel] [PATCH v2 1/2] x86/boot: fix early error display

2017-10-26 Thread Doug Goldstein
h VGA the increment does > happen. Hence "display" in the title is perhaps also at least misleading. > I would be fine to adjust both while committing (and then adding my > R-b), but feel free to propose an alternative. Jan, Can you queue this for 4.9 a

Re: [Xen-devel] [PATCH] x86/boot: fix MB2 header to require EFI BS

2017-10-25 Thread Doug Goldstein
gt;>>> On Tue, Oct 24, 2017 at 02:40:41PM -0500, Doug Goldstein wrote: >>>>>> The EFI multiboot2 entry point currently requires EFI BootServices to >>>>>> not have been exited however the header currently tells the boot >>>>>> loader tha

Re: [Xen-devel] [PATCH] libxc: don't fail domain creation when unpacking initrd fails

2017-10-24 Thread Doug Goldstein
ging this up at a meet up a while back and the concern was breaking someone's workflow. Maybe we can put a warning that the behavior is deprecated for X number of releases before deleting it. -- Doug Goldstein ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH] x86/boot: fix MB2 header to require EFI BS

2017-10-24 Thread Doug Goldstein
On 10/24/17 3:22 PM, Andrew Cooper wrote: > On 24/10/17 21:08, Daniel Kiper wrote: >> On Tue, Oct 24, 2017 at 02:40:41PM -0500, Doug Goldstein wrote: >>> The EFI multiboot2 entry point currently requires EFI BootServices to >>> not have been exited however the head

Re: [Xen-devel] [PATCH] x86/boot: fix MB2 header to require EFI BS

2017-10-24 Thread Doug Goldstein
On 10/24/17 3:08 PM, Daniel Kiper wrote: > On Tue, Oct 24, 2017 at 02:40:41PM -0500, Doug Goldstein wrote: >> >> Unfortunately the spec is a bit vague and how I am reading it is: >> - no tag = exit boot services in the boot loader >> - tag present marked optional = boo

Re: [Xen-devel] [PATCH] x86/boot: fix MB2 header to require EFI BS

2017-10-24 Thread Doug Goldstein
On 10/24/17 3:08 PM, Daniel Kiper wrote: > On Tue, Oct 24, 2017 at 02:40:41PM -0500, Doug Goldstein wrote: >> The EFI multiboot2 entry point currently requires EFI BootServices to >> not have been exited however the header currently tells the boot >> loader that Xen op

[Xen-devel] [PATCH] x86/boot: fix MB2 header to require EFI BS

2017-10-24 Thread Doug Goldstein
loader to report an error that it cannot boot Xen if it is unable to meet its needs. Signed-off-by: Doug Goldstein --- This should likely be applied against Xen 4.9 and Xen 4.10 as well as staging. I am trying to get multiboot2 support for iPXE and upstream is concerned that leaving EFI BootServices

Re: [Xen-devel] [PATCH v2 1/2] x86/boot: fix early error display

2017-10-18 Thread Doug Goldstein
h VGA the increment does > happen. Hence "display" in the title is perhaps also at least misleading. > I would be fine to adjust both while committing (and then adding my > R-b), but feel free to propose an alternative. David and I are both ok with you changing the wording

[Xen-devel] [PATCH v2 1/2] x86/boot: fix early error display

2017-10-17 Thread Doug Goldstein
a simple increment. Reviewed-by: Doug Goldstein Signed-off-by: David Esler --- xen/arch/x86/boot/head.S | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/boot/head.S b/xen/arch/x86/boot/head.S index fd6fc337fe..9cc35da558 100644 --- a/xen/arch/x86/boot

[Xen-devel] [PATCH v2 2/2] x86/boot: rename send_chr to print_err

2017-10-17 Thread Doug Goldstein
From: David Esler The send_chr function sends an entire C-string and not one character and doesn't necessarily just send it over the serial UART anymore so rename it to print_err so that its closer in name to what it does. Reviewed-by: Doug Goldstein Signed-off-by: David Esler --- xen

Re: [Xen-devel] [PATCH 2/2] x86/boot: rename send_chr to print_err

2017-10-13 Thread Doug Goldstein
On 10/13/17 2:40 AM, Jan Beulich wrote: >>>> On 12.10.17 at 22:56, wrote: >> On 12/10/2017 21:50, Doug Goldstein wrote: >>> From: David Esler >>> >>> The send_chr function sends an entire C-string and not one character and >>> doesn'

Re: [Xen-devel] [PATCH 1/2] x86/boot: fix early error display

2017-10-12 Thread Doug Goldstein
> On Oct 12, 2017, at 4:27 PM, Daniel Kiper wrote: > >> On Thu, Oct 12, 2017 at 03:50:06PM -0500, Doug Goldstein wrote: >> From: David Esler >> >> In 9180f5365524 a change was made to the send_chr function to take in >> C-strings and print out a

[Xen-devel] [PATCH 1/2] x86/boot: fix early error display

2017-10-12 Thread Doug Goldstein
a simple increment. Reviewed-by: Doug Goldstein Signed-off-by: David Esler --- xen/arch/x86/boot/head.S | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/x86/boot/head.S b/xen/arch/x86/boot/head.S index fd6fc337fe..f48bbbd2e5 100644 --- a/xen/arch/x86/boot/head.S +++ b/xen/arch/x86

[Xen-devel] [PATCH 2/2] x86/boot: rename send_chr to print_err

2017-10-12 Thread Doug Goldstein
From: David Esler The send_chr function sends an entire C-string and not one character and doesn't necessarily just send it over the serial UART anymore so rename it to print_err so that its closer in name to what it does. Reviewed-by: Doug Goldstein Signed-off-by: David Esler --- xen

Re: [Xen-devel] [PATCH for-4.10] travis: disable UBSAN

2017-10-10 Thread Doug Goldstein
On 10/10/17 4:15 AM, Wei Liu wrote: > The stock compiler in travis doesn't support -fsanitize=undefined. > > Signed-off-by: Wei Liu > --- > Cc: Doug Goldstein > --- > xen/tools/kconfig/allrandom.config | 1 + > 1 file changed, 1 insertion(+) > > diff --git a

Re: [Xen-devel] [PATCH] travis: install ghostscript

2017-06-27 Thread Doug Goldstein
On 6/27/17 4:53 AM, Wei Liu wrote: > Signed-off-by: Wei Liu > --- > Cc: Doug Goldstein > --- > .travis.yml | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/.travis.yml b/.travis.yml > index 9121fcca40..f93dd6868e 100644 > --- a/.travis.yml > +++ b/.trav

[Xen-devel] XenStore protocol endianness

2017-05-07 Thread Doug Goldstein
ly nail it down. Thanks. -- Doug Goldstein ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v16 7/9] x86: make Xen early boot code relocatable

2017-04-13 Thread Doug Goldstein
Xen. This means that > you can boot Xen using GRUB2 on EFI platforms. > > I would like to thank everybody who helped me to make it happen. > Especially Jan who patiently reviewed whole series many times > and replied for my stupid questions. > > Daniel > Congrats Daniel. -- Doug Goldstein signature.asc Description: OpenPGP digital signature ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v16 4/9] x86: add multiboot2 protocol support for EFI platforms

2017-03-15 Thread Doug Goldstein
On 3/15/17 9:38 AM, Daniel Kiper wrote: > On Wed, Mar 15, 2017 at 09:27:27AM -0500, Doug Goldstein wrote: >> On 3/15/17 6:35 AM, Daniel Kiper wrote: >>> On Thu, Mar 09, 2017 at 02:02:49PM -0600, Doug Goldstein wrote: >>> >>> [...] >>> >>>&

Re: [Xen-devel] [PATCH v16 4/9] x86: add multiboot2 protocol support for EFI platforms

2017-03-15 Thread Doug Goldstein
On 3/15/17 6:35 AM, Daniel Kiper wrote: > On Thu, Mar 09, 2017 at 02:02:49PM -0600, Doug Goldstein wrote: > > [...] > >> Still missing 'xl info'. > > Got Intel NUC5i3MYHE (internally it is NUC5i3MYBE board) into my hands. > I have put 8 GiB RAM and 500 G

Re: [Xen-devel] [PATCH v16 4/9] x86: add multiboot2 protocol support for EFI platforms

2017-03-09 Thread Doug Goldstein
On 3/7/17 9:44 PM, Konrad Rzeszutek Wilk wrote: > On Tue, Mar 07, 2017 at 12:39:04AM +0100, Daniel Kiper wrote: >> On Wed, Feb 22, 2017 at 09:04:17AM -0800, Doug Goldstein wrote: >> >> [...] >> >>> I'm currently at ELC and then on vacation so I don

Re: [Xen-devel] [PATCH] build: add --with-rundir option to configure

2017-02-24 Thread Doug Goldstein
On 2/24/17 10:14 AM, Juergen Gross wrote: > On 24/02/17 17:06, Doug Goldstein wrote: >> On 2/22/17 1:53 AM, Juergen Gross wrote: >>> On 20/02/17 16:19, Andrew Cooper wrote: >>>> On 20/02/17 14:43, Juergen Gross wrote: >>>>> On 20/02/17 15:31, Wei Li

Re: [Xen-devel] [PATCH] build: add --with-rundir option to configure

2017-02-24 Thread Doug Goldstein
-with-rundir and possibly >switch over to --runstatedir when a new autoconf version is >available > > I'm in favor of (3.). > > > Juergen FWIW, many distros have already pulled the patch into their autoconf so its available so you wouldn

Re: [Xen-devel] [PATCH] build: add --with-rundir option to configure

2017-02-24 Thread Doug Goldstein
gt;> 1. don't support /run instead of /var/run via configure >> 2. patch autoconf to support --runstatedir >> 3. take this patch adding support via --with-rundir and possibly >>switch over to --runstatedir when a new autoconf version is >>available > > Op

Re: [Xen-devel] [PATCH v16 4/9] x86: add multiboot2 protocol support for EFI platforms

2017-02-22 Thread Doug Goldstein
to find the revision for you. But the command line I use is: -enable-kvm -M pc-q35-2.8 -device intel-iommu -cpu host -m 2048 -smp 2 -drive if=pflash,format=raw,file=/tmp/tmp.EiR6ixmYzV -global isa-debugcon.iobase=0x402 -debugcon file:/tmp/tmp.nuvEXUWfnA -monitor stdio -chardev socket,host=127.0

Re: [Xen-devel] [PATCH v16 4/9] x86: add multiboot2 protocol support for EFI platforms

2017-02-22 Thread Doug Goldstein
a candidate for committing. > > Jan > I'm on travel for the next week and half but when I return I had planned on tackling the issue. For anyone else interested its reproducible with QEMU booting smp with 2 CPUs and using OVMF. Xen just never sees more than the boot CPU. I'

Re: [Xen-devel] [PATCH v15 05/10] x86: add multiboot2 protocol support for EFI platforms

2017-02-16 Thread Doug Goldstein
sing __efi64_mb2_start > we are sure that we are running on EFI platform and there is no VGA there. > It means that we can safely zap vga_text_buffer unconditionally in first steps > (we do that in second instruction). Then we do not need to take care about > that in case of error. And one of these errors is lack of > MULTIBOOT2_TAG_TYPE_EFI_BS > tag. It means that EFI boot services are shutdown. So, we are in black hole. > We have to inform user about that and halt the system. And that is why we Not looking at the code but the words here. If ExitBootServices() has been called we should be able to still boot if the memory map was passed along. Are we deferring that use case to a follow on? -- Doug Goldstein signature.asc Description: OpenPGP digital signature ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

[Xen-devel] [PATCH] x86/EFI: fix build when using GNU Make 4.1

2017-02-02 Thread Doug Goldstein
than I was going to originally submit, I had used runtime.o but while testing this I saw Daniel Kiper's v14 of his multiboot2 series come along and I modified my patch so that he would not have to rebase. Signed-off-by: Doug Goldstein --- CC: Jan Beulich CC: Andrew Cooper Jan, This nee

Re: [Xen-devel] [PATCH v14 2/9] efi: build xen.gz with EFI code

2017-02-02 Thread Doug Goldstein
> Xen binary which can be loaded by three boot protocols: EFI native loader, >> multiboot (v1) and multiboot2. >> >> Signed-off-by: Daniel Kiper >> Acked-by: Jan Beulich >> Reviewed-by: Doug Goldstein >> --- >> v14 - suggestions/fixes: >> - at l

Re: [Xen-devel] [PATCH v14 0/9] x86: multiboot2 protocol support

2017-02-02 Thread Doug Goldstein
st time? I know Jan and I appreciated that and it made it easier to review. -- Doug Goldstein signature.asc Description: OpenPGP digital signature ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v1 0/7] Make building xSplice patches easier

2017-01-30 Thread Doug Goldstein
. Ross, What happened with this series? Some of these patches still appear un-applied and they appear relevant still. -- Doug Goldstein signature.asc Description: OpenPGP digital signature ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v13 4/9] x86: add multiboot2 protocol support for EFI platforms

2017-01-25 Thread Doug Goldstein
int to "rm" in efi_multiboot2() > (suggested by Jan Beulich), > - improve comments > (suggested by Jan Beulich and Doug Goldstein). This is a huge change and would really be helpful to have the diff of what's changed to work from. -- Doug Goldstein signature.a

Re: [Xen-devel] [PATCH v12 00/10] x86: multiboot2 protocol support

2017-01-23 Thread Doug Goldstein
On 1/23/17 9:45 AM, Daniel Kiper wrote: > On Mon, Jan 23, 2017 at 09:35:55AM -0600, Doug Goldstein wrote: >> On 1/23/17 7:08 AM, Daniel Kiper wrote: >>> On Fri, Jan 20, 2017 at 10:54:12PM +0100, Daniel Kiper wrote: >>>> On Fri, Jan 20, 2017 at 02:42:30PM -0500, Doug

Re: [Xen-devel] [PATCH v12 00/10] x86: multiboot2 protocol support

2017-01-23 Thread Doug Goldstein
On 1/23/17 8:28 AM, Konrad Rzeszutek Wilk wrote: > On Mon, Jan 23, 2017 at 02:08:58PM +0100, Daniel Kiper wrote: >> On Fri, Jan 20, 2017 at 10:54:12PM +0100, Daniel Kiper wrote: >>> On Fri, Jan 20, 2017 at 02:42:30PM -0500, Doug Goldstein wrote: >>>> On 1/19/

Re: [Xen-devel] [PATCH v12 00/10] x86: multiboot2 protocol support

2017-01-23 Thread Doug Goldstein
On 1/23/17 7:08 AM, Daniel Kiper wrote: > On Fri, Jan 20, 2017 at 10:54:12PM +0100, Daniel Kiper wrote: >> On Fri, Jan 20, 2017 at 02:42:30PM -0500, Doug Goldstein wrote: >>> On 1/19/17 8:34 PM, Daniel Kiper wrote: >>>> Hi, >>>> >>>> I am send

Re: [Xen-devel] [PATCH v12 00/10] x86: multiboot2 protocol support

2017-01-20 Thread Doug Goldstein
On 1/20/17 2:42 PM, Doug Goldstein wrote: > Effectively the fix to efi_multiboot2() gets us back to the same level > of hardware support that v11 + my v5 was at for 1-5. So I will extend my: > > Reviewed-by: Doug Goldstein > Tested-by: Doug Goldstein > > on the cond

Re: [Xen-devel] [PATCH v12 00/10] x86: multiboot2 protocol support

2017-01-20 Thread Doug Goldstein
(since patch 1 has already gone in) and apply the fix to efi_multiboot2() then all the machines I presently have access to boot. Effectively the fix to efi_multiboot2() gets us back to the same level of hardware support that v11 + my v5 was at for 1-5. So I will extend my: Reviewed-by: Doug Golds

Re: [Xen-devel] [PATCH v12 05/10] x86: add multiboot2 protocol support for EFI platforms

2017-01-20 Thread Doug Goldstein
was: return cfg.addr + MBI_SIZE; I can't see how this booted for you with OVMF because for all the different versions I've tried with the original code its writing over reserved memory that QEMU uses for the graphics buffers. Which immediately results in the trampolines being overwrit

Re: [Xen-devel] [PATCH v12 00/10] x86: multiboot2 protocol support

2017-01-20 Thread Doug Goldstein
On 1/20/17 12:21 PM, Daniel Kiper wrote: > On Fri, Jan 20, 2017 at 11:22:21AM -0500, Doug Goldstein wrote: >> On 1/19/17 8:34 PM, Daniel Kiper wrote: >>> Hi, >>> >>> I am sending twelfth version of multiboot2 protocol support for >>> legacy BIOS

Re: [Xen-devel] [PATCH v12 05/10] x86: add multiboot2 protocol support for EFI platforms

2017-01-20 Thread Doug Goldstein
> (suggested by Andrew Cooper), Andrew actually asked for __mb2_efi64_start > + > +__efi64_mb2_start: here. -- Doug Goldstein signature.asc Description: OpenPGP digital signature ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v12 02/10] x86: add multiboot2 protocol support

2017-01-20 Thread Doug Goldstein
f-by: Daniel Kiper > Reviewed-by: Jan Beulich > Reviewed-by: Doug Goldstein > --- > v12 - suggestions/fixes: > - replace TABs with spaces in xen/include/xen/multiboot2.h > (suggested by Doug Goldstein). > > v9 - suggestions/fixes: >- use .L label instead of

Re: [Xen-devel] [PATCH v12 00/10] x86: multiboot2 protocol support

2017-01-20 Thread Doug Goldstein
On 1/20/17 12:21 PM, Daniel Kiper wrote: > On Fri, Jan 20, 2017 at 11:22:21AM -0500, Doug Goldstein wrote: >> On 1/19/17 8:34 PM, Daniel Kiper wrote: >>> Hi, >>> >>> I am sending twelfth version of multiboot2 protocol support for >>> legacy BIOS

Re: [Xen-devel] [PATCH v12 01/10] x86/boot: implement early command line parser in C

2017-01-20 Thread Doug Goldstein
On 1/20/17 11:37 AM, Doug Goldstein wrote: > On 1/19/17 8:34 PM, Daniel Kiper wrote: >> diff --git a/xen/arch/x86/boot/Makefile b/xen/arch/x86/boot/Makefile >> index 5fdb5ae..6d20646 100644 >> --- a/xen/arch/x86/boot/Makefile >> +++ b/xen/arch/x86/boot/Makefile >&g

Re: [Xen-devel] [PATCH v12 01/10] x86/boot: implement early command line parser in C

2017-01-20 Thread Doug Goldstein
So when this was patch 8 this previously had: +RELOC_DEPS = $(DEFS_H_DEPS) $(BASEDIR)/include/xen/multiboot.h \ +$(BASEDIR)/include/xen/multiboot2.h Which its now moved to patch 1 so obviously can't include multiboot2.h but then patch 2 in this series fails to add this and patch 5 fails

Re: [Xen-devel] [PATCH v12 00/10] x86: multiboot2 protocol support

2017-01-20 Thread Doug Goldstein
t with iPXE and grub on an Intel NUC and another board I've got. I've also just tried to apply 1-5 and it fails to boot as well. -- Doug Goldstein signature.asc Description: OpenPGP digital signature ___ Xen-devel mailing list Xen-

Re: [Xen-devel] [PATCH v12 05/10] x86: add multiboot2 protocol support for EFI platforms

2017-01-19 Thread Doug Goldstein
size = MB_TRAMPOLINE_SIZE + MB_TRAMPOLINE_STACK_SIZE + MBI_SIZE; Why MBI_SIZE? I don't see that being copied in that region or living there? -- Doug Goldstein signature.asc Description: OpenPGP digital signature ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v12 10/10] x86: add multiboot2 protocol support for relocatable images

2017-01-19 Thread Doug Goldstein
nore it and everything works as usual. > > Signed-off-by: Daniel Kiper > Acked-by: Jan Beulich > Reviewed-by: Doug Goldstein FWIW, I can't find where I offered my R-b for this patch. Its part of the series I've said fails on my hardware. -- Doug Goldstein signatur

Re: [Xen-devel] [PATCH v12 09/10] x86/boot: rename sym_phys() to sym_offs()

2017-01-19 Thread Doug Goldstein
hysical address. > > There is no functional change. > > Suggested-by: Jan Beulich > Signed-off-by: Daniel Kiper > Acked-by: Jan Beulich > Reviewed-by: Doug Goldstein FWIW, I can't find where I offered my R-b for this patch. Its part of the series I've

Re: [Xen-devel] [PATCH v12 07/10] x86/setup: use XEN_IMG_OFFSET instead of...

2017-01-19 Thread Doug Goldstein
On 1/19/17 8:34 PM, Daniel Kiper wrote: > ..calculating its value during runtime. > > Signed-off-by: Daniel Kiper > Acked-by: Jan Beulich > Reviewed-by: Doug Goldstein FWIW, I can't find where I offered my R-b for this patch. Its part of the series I've said fails

Re: [Xen-devel] [PATCH v12 06/10] x86: change default load address from 1 MiB to 2 MiB

2017-01-19 Thread Doug Goldstein
apping. > It is no longer needed. > > Signed-off-by: Daniel Kiper > Reviewed-by: Jan Beulich > Reviewed-by: Doug Goldstein FWIW, I can't find where I offered my R-b for this patch. Its part of the series I've said fails on my hardware. -- Doug Goldstei

Re: [Xen-devel] [PATCH 0/4] multiboot2 protocol support

2017-01-19 Thread Doug Goldstein
oot2 support since we've had this series outstanding for years. I was just trying to help this series move forward and believe we can do improvements after the fact. -- Doug Goldstein signature.asc Description: OpenPGP digital signature ___

Re: [Xen-devel] [PATCH v4 5/5] fix: add multiboot2 protocol support for EFI platforms

2017-01-19 Thread Doug Goldstein
off of my head. Its about a dozen machines all together. They fail in two different ways: - the other CPUs are reported as stuck and the machine boots but 'xl info' reports 1 available CPU. - when the non-CPUs are brought up it dies when setting paging back into cr0. Every single machin

[Xen-devel] [PATCH v2 1/3] x86/mtrr: drop positive_have_wrcomb()

2017-01-18 Thread Doug Goldstein
The only call to have_wrcomb() was always to the generic implementation. positive_have_wrcomb() was unused. Signed-off-by: Doug Goldstein Acked-by: Jan Beulich --- Retaining ACK from <57b480fd027800106...@prv-mh.provo.novell.com> --- --- xen/arch/x86/cpu/mtrr/generic.c | 5 - xe

[Xen-devel] [PATCH v2 2/3] x86/mtrr: drop unused func prototypes and struct

2017-01-18 Thread Doug Goldstein
These weren't used so drop them. Signed-off-by: Doug Goldstein Reviewed-by: Jan Beulich --- Retained R-b from <57b48184027800106...@prv-mh.provo.novell.com> --- xen/arch/x86/cpu/mtrr/mtrr.h | 15 --- 1 file changed, 15 deletions(-) diff --git a/xen/arch/x86/cpu/mt

[Xen-devel] [PATCH v2 3/3] x86/mtrr: convert use_intel_if u32 to bool

2017-01-18 Thread Doug Goldstein
This field is always only 1 currently but may allow 0 in the future so convert it to a bool to provide proper range checking by the compiler. Signed-off-by: Doug Goldstein --- xen/arch/x86/cpu/mtrr/generic.c | 2 +- xen/arch/x86/cpu/mtrr/mtrr.h| 4 ++-- 2 files changed, 3 insertions(+), 3

[Xen-devel] [PATCH v2 0/3] x86/mtrr: basic cleanups

2017-01-18 Thread Doug Goldstein
Retained the parts that were not objected to by plans to disable mtrrs on PVH containers. Doug Goldstein (3): x86/mtrr: drop positive_have_wrcomb() x86/mtrr: drop unused func prototypes and struct x86/mtrr: convert use_intel_if u32 to bool xen/arch/x86/cpu/mtrr/generic.c | 7 +-- xen

Re: [Xen-devel] [PATCH 6/6] x86/cpuid: Only recalculate the shared feature bits once

2017-01-18 Thread Doug Goldstein
ated cpuid data. > * The toolstack need not worry about setting them appropriately. > * They can be dropped from the system maximum featuresets. > > While editing gen-cpuid.py, reflow some comments which exceeded the expected > line length. > > Signed-off-by: Andrew Cooper Re

Re: [Xen-devel] [PATCH 5/6] x86/cpuid: Handle the long vendor string in guest_cpuid()

2017-01-18 Thread Doug Goldstein
On 1/18/17 2:40 PM, Andrew Cooper wrote: > Leaves 0x8002 through 0x8004 are plain ASCII text, and require no > specific recalculation. > > Signed-off-by: Andrew Cooper Reviewed-by: Doug Goldstein -- Doug Goldstein signature.asc Description: OpenPGP digit

Re: [Xen-devel] [PATCH 4/6] x86/cpuid: Handle leaf 0x80000000 in guest_cpuid()

2017-01-18 Thread Doug Goldstein
cated according to the > chosen vendor. > > Signed-off-by: Andrew Cooper Reviewed-by: Doug Goldstein -- Doug Goldstein signature.asc Description: OpenPGP digital signature ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH 3/6] x86/cpuid: Handle leaf 0 in guest_cpuid()

2017-01-18 Thread Doug Goldstein
On 1/18/17 2:40 PM, Andrew Cooper wrote: > Calculate a domains x86_vendor early in recalculate_cpuid_policy(); subsequent > patches need to make other recalculation decisions based on it. > > Signed-off-by: Andrew Cooper Reviewed-by: Doug Goldstein -- Doug Goldstein s

Re: [Xen-devel] [PATCH 2/6] x86/cpuid: Remove BUG_ON() condition from guest_cpuid()

2017-01-18 Thread Doug Goldstein
On 1/18/17 2:40 PM, Andrew Cooper wrote: > Include a min() against the appropriate ARRAY_SIZE(), and ASSERT() that > max_subleaf is within ARRAY_SIZE(). > > This is more robust to unexpected problems in a release build of Xen. > > Signed-off-by: Andrew Cooper Reviewed-

Re: [Xen-devel] [PATCH 1/6] x86/cpuid: Hide VT-x/SVM from HVM-based control domains

2017-01-18 Thread Doug Goldstein
ger Pau Monné > Signed-off-by: Andrew Cooper Reviewed-by: Doug Goldstein -- Doug Goldstein signature.asc Description: OpenPGP digital signature ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

[Xen-devel] [PATCH v5 2/5] efi: build xen.gz with EFI code

2017-01-18 Thread Doug Goldstein
opy or other tool. This way we will have one Xen binary which can be loaded by three boot protocols: EFI native loader, multiboot (v1) and multiboot2. Signed-off-by: Daniel Kiper Acked-by: Jan Beulich Reviewed-by: Doug Goldstein --- v6 - suggestions/fixes: - improve efi_enable

[Xen-devel] [PATCH v5 0/5] multiboot2 protocol support

2017-01-18 Thread Doug Goldstein
- add back some ACKs I accidentally dropped Daniel Kiper (4): x86: add multiboot2 protocol support efi: build xen.gz with EFI code efi: create new early memory allocator x86: add multiboot2 protocol support for EFI platforms Doug Goldstein (1): fix: add multiboot2 pro

[Xen-devel] [PATCH v5 5/5] fix: add multiboot2 protocol support for EFI platforms

2017-01-18 Thread Doug Goldstein
is did not manifest as a crash while on others it did. Reworked the changes to always reserve 64kb for both the stack and the size of the trampolines. Added a build time assert to make sure we have enough room always. Signed-off-by: Doug Goldstein Reviewed-by: Jan Beulich --- Doug v5 - change com

[Xen-devel] [PATCH v5 3/5] efi: create new early memory allocator

2017-01-18 Thread Doug Goldstein
w #2a solution is implemented because it is quite simple and requires limited number of changes, especially in __start_xen(). The new allocator is quite generic and can be used on ARM platforms too. Signed-off-by: Daniel Kiper Acked-by: Jan Beulich Acked-by: Julien Grall Reviewed-by: Doug Gold

[Xen-devel] [PATCH v5 4/5] x86: add multiboot2 protocol support for EFI platforms

2017-01-18 Thread Doug Goldstein
From: Daniel Kiper This way Xen can be loaded on EFI platforms using GRUB2 and other boot loaders which support multiboot2 protocol. Signed-off-by: Daniel Kiper Reviewed-by: Doug Goldstein Tested-by: Doug Goldstein --- Doug v2 - dropped all my changes and moved them into their own patch Doug

[Xen-devel] [PATCH v5 1/5] x86: add multiboot2 protocol support

2017-01-18 Thread Doug Goldstein
: Doug Goldstein --- v9 - suggestions/fixes: - use .L label instead of numeric one in multiboot2 data scanning loop; I hope that this change does not invalidate Jan's Reviewed-by (suggested by Jan Beulich). v8 - suggestions/fixes: - use sizeof(/) instead of sizeof() if

Re: [Xen-devel] [PATCH v4 5/5] fix: add multiboot2 protocol support for EFI platforms

2017-01-18 Thread Doug Goldstein
be easier than folding this into your larger series. Can you tell me what were the fixes to the relocation code? -- Doug Goldstein signature.asc Description: OpenPGP digital signature ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v4 4/5] x86: add multiboot2 protocol support for EFI platforms

2017-01-18 Thread Doug Goldstein
On 1/18/17 2:51 PM, Andrew Cooper wrote: > On 18/01/17 14:17, Doug Goldstein wrote: >> diff --git a/xen/arch/x86/boot/head.S b/xen/arch/x86/boot/head.S >> index d423fd8..ac93df0 100644 >> --- a/xen/arch/x86/boot/head.S >> +++ b/xen/arch/x86/boot/head.S >> @@ -89,6

Re: [Xen-devel] [PATCH] xen/common: Drop function calls for Xen compile/version information

2017-01-18 Thread Doug Goldstein
ons used during boot. > > ~Andrew FWIW, some of the clang issues I reported against LTO and FPU bits are marked as fixed in 3.9 and 4.0. Not sure if things got backported. -- Doug Goldstein signature.asc Description: OpenPGP digital signature _

[Xen-devel] [PATCH v4 3/5] efi: create new early memory allocator

2017-01-18 Thread Doug Goldstein
w #2a solution is implemented because it is quite simple and requires limited number of changes, especially in __start_xen(). The new allocator is quite generic and can be used on ARM platforms too. Signed-off-by: Daniel Kiper Acked-by: Jan Beulich Acked-by: Julien Grall Reviewed-by: Doug Gold

[Xen-devel] [PATCH v4 4/5] x86: add multiboot2 protocol support for EFI platforms

2017-01-18 Thread Doug Goldstein
From: Daniel Kiper This way Xen can be loaded on EFI platforms using GRUB2 and other boot loaders which support multiboot2 protocol. Signed-off-by: Daniel Kiper Reviewed-by: Doug Goldstein Tested-by: Doug Goldstein --- Doug v2 - dropped all my changes and moved them into their own patch Doug

[Xen-devel] [PATCH v4 5/5] fix: add multiboot2 protocol support for EFI platforms

2017-01-18 Thread Doug Goldstein
is did not manifest as a crash while on others it did. Reworked the changes to always reserve 64kb for both the stack and the size of the trampolines. Added a build time assert to make sure we have enough room always. Signed-off-by: Doug Goldstein --- Doug v4 - change wording around &

[Xen-devel] [PATCH v4 1/5] x86: add multiboot2 protocol support

2017-01-18 Thread Doug Goldstein
: Doug Goldstein --- v9 - suggestions/fixes: - use .L label instead of numeric one in multiboot2 data scanning loop; I hope that this change does not invalidate Jan's Reviewed-by (suggested by Jan Beulich). v8 - suggestions/fixes: - use sizeof(/) instead of sizeof() if

[Xen-devel] [PATCH v4 2/5] efi: build xen.gz with EFI code

2017-01-18 Thread Doug Goldstein
opy or other tool. This way we will have one Xen binary which can be loaded by three boot protocols: EFI native loader, multiboot (v1) and multiboot2. Signed-off-by: Daniel Kiper Acked-by: Jan Beulich Reviewed-by: Doug Goldstein --- v6 - suggestions/fixes: - improve efi_enable

[Xen-devel] [PATCH v4 0/5] multiboot2 protocol support

2017-01-18 Thread Doug Goldstein
86: add multiboot2 protocol support efi: build xen.gz with EFI code efi: create new early memory allocator x86: add multiboot2 protocol support for EFI platforms Doug Goldstein (1): fix: add multiboot2 protocol support for EFI platforms xen/arch/x86/Makefile | 2 +- xen/ar

Re: [Xen-devel] [PATCH v3 5/5] fix: add multiboot2 protocol support for EFI platforms

2017-01-18 Thread Doug Goldstein
gt; Well, I don't mind the max() (albeit it's not very useful, especially > if trampoline size would ever get pretty close to 64k). And as said > in reply to the earlier version - I think this would better be checked > at build time (see the vario

Re: [Xen-devel] [PATCH v3 5/5] fix: add multiboot2 protocol support for EFI platforms

2017-01-18 Thread Doug Goldstein
cfg.size = max_t(UINTN, 64 << 10, >> +(trampoline_end - trampoline_start) + 4096); > > Considering the consuming code further up, I don't understand the > reason for the addition of 4096 here. And if there is a reason, I'm > pretty sure you act

[Xen-devel] [PATCH v3 5/5] fix: add multiboot2 protocol support for EFI platforms

2017-01-17 Thread Doug Goldstein
is did not manifest as a crash while on others it did. Reworked the changes to always reserve 64kb for both the stack and the size of the trampolines. Signed-off-by: Doug Goldstein Reviewed-by: Doug Goldstein --- Doug v3 - drop ASSERTs since they are runtime only without any output. This

[Xen-devel] [PATCH v3 3/5] efi: create new early memory allocator

2017-01-17 Thread Doug Goldstein
w #2a solution is implemented because it is quite simple and requires limited number of changes, especially in __start_xen(). The new allocator is quite generic and can be used on ARM platforms too. Signed-off-by: Daniel Kiper Acked-by: Jan Beulich Acked-by: Julien Grall Reviewed-by: Doug Gold

[Xen-devel] [PATCH v3 1/5] x86: add multiboot2 protocol support

2017-01-17 Thread Doug Goldstein
: Doug Goldstein --- v9 - suggestions/fixes: - use .L label instead of numeric one in multiboot2 data scanning loop; I hope that this change does not invalidate Jan's Reviewed-by (suggested by Jan Beulich). v8 - suggestions/fixes: - use sizeof(/) instead of sizeof() if

[Xen-devel] [PATCH v3 4/5] x86: add multiboot2 protocol support for EFI platforms

2017-01-17 Thread Doug Goldstein
From: Daniel Kiper This way Xen can be loaded on EFI platforms using GRUB2 and other boot loaders which support multiboot2 protocol. Signed-off-by: Daniel Kiper Reviewed-by: Doug Goldstein Tested-by: Doug Goldstein --- Doug v2 - dropped all my changes and moved them into their own patch Doug

[Xen-devel] [PATCH v3 0/5] multiboot2 protocol support

2017-01-17 Thread Doug Goldstein
ode efi: create new early memory allocator x86: add multiboot2 protocol support for EFI platforms Doug Goldstein (1): fix: add multiboot2 protocol support for EFI platforms xen/arch/x86/Makefile | 2 +- xen/arch/x86/boot/Makefile| 3 +- xen/arch/x86/boot/head.S |

[Xen-devel] [PATCH v3 2/5] efi: build xen.gz with EFI code

2017-01-17 Thread Doug Goldstein
opy or other tool. This way we will have one Xen binary which can be loaded by three boot protocols: EFI native loader, multiboot (v1) and multiboot2. Signed-off-by: Daniel Kiper Acked-by: Jan Beulich Reviewed-by: Doug Goldstein --- v6 - suggestions/fixes: - improve efi_enable

Re: [Xen-devel] [PATCH] xen/common: Drop function calls for Xen compile/version information

2017-01-16 Thread Doug Goldstein
rodata, > which allows all users to generate code referencing the data directly. > > No functional change, but causes smaller and more efficient compiled code. > > Signed-off-by: Andrew Cooper Reviewed-by: Doug Goldstein -- Doug Goldstein signature.asc Descript

Re: [Xen-devel] [PATCH 4/4] x86: add multiboot2 protocol support for EFI platforms

2017-01-16 Thread Doug Goldstein
On 1/16/17 9:11 AM, Daniel Kiper wrote: > On Mon, Jan 16, 2017 at 08:41:08AM -0500, Doug Goldstein wrote: >> On 1/16/17 7:50 AM, Daniel Kiper wrote: >>> On Mon, Jan 16, 2017 at 05:02:05AM -0700, Jan Beulich wrote: >>>>>>> On 13.01.17 at 20:21, wrote:

[Xen-devel] [PATCH v2 5/5] fix: add multiboot2 protocol support for EFI platforms

2017-01-16 Thread Doug Goldstein
is did not manifest as a crash while on others it did. Reworked the changes to always reserve 64kb for both the stack and the size of the trampolines. Added an ASSERT to make sure we never blow through this size. Signed-off-by: Doug Goldstein Reviewed-by: Doug Goldstein --- Doug v2 - new in this

[Xen-devel] [PATCH v2 0/5] multiboot2 protocol support

2017-01-16 Thread Doug Goldstein
l series - add back some ACKs I accidentally dropped Daniel Kiper (4): x86: add multiboot2 protocol support efi: build xen.gz with EFI code efi: create new early memory allocator x86: add multiboot2 protocol support for EFI platforms Doug Goldstein (1): fix: add multiboot2 pro

[Xen-devel] [PATCH v2 4/5] x86: add multiboot2 protocol support for EFI platforms

2017-01-16 Thread Doug Goldstein
From: Daniel Kiper This way Xen can be loaded on EFI platforms using GRUB2 and other boot loaders which support multiboot2 protocol. Signed-off-by: Daniel Kiper Reviewed-by: Doug Goldstein Tested-by: Doug Goldstein --- Doug v2 - dropped all my changes and moved them into their own patch Doug

[Xen-devel] [PATCH v2 1/5] x86: add multiboot2 protocol support

2017-01-16 Thread Doug Goldstein
: Doug Goldstein --- v9 - suggestions/fixes: - use .L label instead of numeric one in multiboot2 data scanning loop; I hope that this change does not invalidate Jan's Reviewed-by (suggested by Jan Beulich). v8 - suggestions/fixes: - use sizeof(/) instead of sizeof() if

[Xen-devel] [PATCH v2 2/5] efi: build xen.gz with EFI code

2017-01-16 Thread Doug Goldstein
opy or other tool. This way we will have one Xen binary which can be loaded by three boot protocols: EFI native loader, multiboot (v1) and multiboot2. Signed-off-by: Daniel Kiper Acked-by: Jan Beulich Reviewed-by: Doug Goldstein --- v6 - suggestions/fixes: - improve efi_enable

[Xen-devel] [PATCH v2 3/5] efi: create new early memory allocator

2017-01-16 Thread Doug Goldstein
w #2a solution is implemented because it is quite simple and requires limited number of changes, especially in __start_xen(). The new allocator is quite generic and can be used on ARM platforms too. Signed-off-by: Daniel Kiper Acked-by: Jan Beulich Acked-by: Julien Grall Reviewed-by: Doug Gold

Re: [Xen-devel] [PATCH 3/4] efi: create new early memory allocator

2017-01-16 Thread Doug Goldstein
can >> free unused portion of the memory pool as in case of .init.text or >> .init.data >> sections. This way we do not need to allocate any space in image file and >> freeing of unused area in the memory pool is very simple. >> >> Now #2a solution is

Re: [Xen-devel] [PATCH 4/4] x86: add multiboot2 protocol support for EFI platforms

2017-01-16 Thread Doug Goldstein
inter-diff the patches, > or re-review the whole thing. For a large patch like this it would be > rather helpful to be quite a bit more specific as to where exactly in the > patch changes were made. > > Jan > I'll submit a diff against v11 to help show the difference. I

Re: [Xen-devel] [PATCH 4/4] x86: add multiboot2 protocol support for EFI platforms

2017-01-16 Thread Doug Goldstein
where exactly in the >> patch changes were made. > > I would prefer to not have this patch series applied because it will make me > more difficult to prepare v12. I hope that I will post it in about 2 weeks. > Though I am going to take into account all comments posted by Doug

[Xen-devel] [PATCH 3/4] efi: create new early memory allocator

2017-01-13 Thread Doug Goldstein
w #2a solution is implemented because it is quite simple and requires limited number of changes, especially in __start_xen(). The new allocator is quite generic and can be used on ARM platforms too. Signed-off-by: Daniel Kiper Reviewed-by: Doug Goldstein --- Doug v1 - removed stale paragraph

  1   2   3   4   5   6   7   8   9   10   >