Re: [Xen-devel] [PATCH] tools/libxc: Fix construction of HVM guests with non-default firmware

2015-11-12 Thread Roger Pau Monné
El 11/11/15 a les 21.18, Andrew Cooper ha escrit: > c/s 1ee15d7 "libxl: switch HVM domain building to use xc_dom_* helpers" > introduced a regression building HVM domains in combination with the libxl > "firmware_override=" option. > > The older HVM building code (now removed) had no 32bit ELF che

[Xen-devel] [xen-4.3-testing test] 64090: regressions - FAIL

2015-11-12 Thread osstest service owner
flight 64090 xen-4.3-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/64090/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-migrupgrade 21 guest-migrate/src_host/dst_host fail REGR. vs. 63212 test-amd64

Re: [Xen-devel] Regression building HVM domains following "x86: add bitmap of enabled emulated devices"

2015-11-12 Thread Roger Pau Monné
El 11/11/15 a les 20.22, Andrew Cooper ha escrit: > Actually CC-ing xen-devel this time. > > On 11/11/15 19:13, Andrew Cooper wrote: >> Hello, >> >> Xapi uses the Ocaml stub_xc_domain_create() which uses >> xc_domain_create(). xc_domain_create() itself zeros the arch >> configuration but passes f

Re: [Xen-devel] [PATCHv2] 22/27] build: convert HAS_MEM_ACCESS use to Kconfig

2015-11-12 Thread Razvan Cojocaru
On 11/11/2015 06:50 PM, Doug Goldstein wrote: > Use the Kconfig generated CONFIG_HAS_MEM_ACCESS defines in the code base. > > Signed-off-by: Doug Goldstein > > CC: Ian Campbell > CC: Stefano Stabellini > CC: Keir Fraser > CC: Jan Beulich > CC: Andrew Cooper > CC: Razvan Cojocaru > CC: Tama

Re: [Xen-devel] [PATCHv2] 23/27] build: convert HAS_MEM_PAGING use to Kconfig

2015-11-12 Thread Razvan Cojocaru
On 11/11/2015 06:50 PM, Doug Goldstein wrote: > Use the Kconfig generated CONFIG_HAS_MEM_PAGING defines in the code base. > > Signed-off-by: Doug Goldstein > > CC: Keir Fraser > CC: Jan Beulich > CC: Andrew Cooper > CC: Razvan Cojocaru > CC: Tamas K Lengyel > CC: Daniel De Graaf > Signed-o

Re: [Xen-devel] [PATCHv2] 24/27] build: convert HAS_MEM_SHARING use to Kconfig

2015-11-12 Thread Razvan Cojocaru
On 11/11/2015 06:50 PM, Doug Goldstein wrote: > Use the Kconfig generated CONFIG_HAS_MEM_SHARING defines in the code base. > > Signed-off-by: Doug Goldstein > > CC: Keir Fraser > CC: Jan Beulich > CC: Andrew Cooper > CC: Razvan Cojocaru > CC: Tamas K Lengyel > CC: Daniel De Graaf > Signed-

Re: [Xen-devel] Runtime services support for Xen on ARM

2015-11-12 Thread Shannon Zhao
On 2015/11/10 20:36, Ian Campbell wrote: > On Tue, 2015-11-10 at 12:26 +, Stefano Stabellini wrote: >> CC'ing xen-devel and Jan >> >> On Tue, 10 Nov 2015, Shannon Zhao wrote: >>> Hi Stefano, >>> >>> I'm working on adding Runtime services support at Xen side. Most of >>> work >>> is adding the

Re: [Xen-devel] Regression building HVM domains following "x86: add bitmap of enabled emulated devices"

2015-11-12 Thread Ian Campbell
On Wed, 2015-11-11 at 21:07 +, Andrew Cooper wrote: > On 11/11/2015 20:57, Konrad Rzeszutek Wilk wrote: > > On Wed, Nov 11, 2015 at 07:13:25PM +, Andrew Cooper wrote: > > > Hello, > > > > > > Xapi uses the Ocaml stub_xc_domain_create() which uses > > > xc_domain_create().  xc_domain_create

Re: [Xen-devel] [PATCH v4 0/9] libxc: support building large pv-domains

2015-11-12 Thread Wei Liu
On Thu, Nov 12, 2015 at 06:09:54AM +0100, Juergen Gross wrote: > On 05/11/15 15:36, Juergen Gross wrote: > > The Xen hypervisor supports starting a dom0 with large memory (up to > > the TB range) by not including the initrd and p2m list in the initial > > kernel mapping. Especially the p2m list can

Re: [Xen-devel] [PATCH v4 0/9] libxc: support building large pv-domains

2015-11-12 Thread Juergen Gross
On 12/11/15 10:39, Wei Liu wrote: > On Thu, Nov 12, 2015 at 06:09:54AM +0100, Juergen Gross wrote: >> On 05/11/15 15:36, Juergen Gross wrote: >>> The Xen hypervisor supports starting a dom0 with large memory (up to >>> the TB range) by not including the initrd and p2m list in the initial >>> kernel

Re: [Xen-devel] [PATCH] tools/libxc: Fix construction of HVM guests with non-default firmware

2015-11-12 Thread Ian Campbell
On Wed, 2015-11-11 at 20:18 +, Andrew Cooper wrote: > c/s 1ee15d7 "libxl: switch HVM domain building to use xc_dom_* helpers" > introduced a regression building HVM domains in combination with the > libxl > "firmware_override=" option. > > The older HVM building code (now removed) had no 32bit

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

2015-11-12 Thread Platform Team regression test user
flight 38270 distros-debian-wheezy real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/38270/ Perfect :-) All tests in this flight passed baseline version: flight 38249 jobs: build-amd64 pass build-armhf

[Xen-devel] [PATCH] Config.mk: update OVMF changeset

2015-11-12 Thread Wei Liu
The new osstest tested head contains a fix for gcc-4.4 toolchain. Signed-off-by: Wei Liu --- Cc: "Hao, Xudong" Cc: Ian Campbell Please pull from git://xenbits.xen.org/osstest/ovmf.git xen-tested-master and push the said commit to git://xenbits.xen.org/ovmf.git master It should be a fast-f

Re: [Xen-devel] Regression building HVM domains following "x86: add bitmap of enabled emulated devices"

2015-11-12 Thread Andrew Cooper
On 12/11/15 09:25, Ian Campbell wrote: > On Wed, 2015-11-11 at 21:07 +, Andrew Cooper wrote: >> On 11/11/2015 20:57, Konrad Rzeszutek Wilk wrote: >>> On Wed, Nov 11, 2015 at 07:13:25PM +, Andrew Cooper wrote: Hello, Xapi uses the Ocaml stub_xc_domain_create() which uses

Re: [Xen-devel] [PATCH RFC 5/4] x86: #PF error code adjustments

2015-11-12 Thread Jan Beulich
>>> On 11.11.15 at 17:30, wrote: > On 11/11/15 08:33, Jan Beulich wrote: >> RFC because I noticed that nothing seems to ever set PFEC_page_paged, >> so I wonder whether we really need that flag. > > It is set in hap_p2m_ga_to_gfn() for frames with types of P2M_PAGING_TYPES > > Did you miss this,

Re: [Xen-devel] Regression building HVM domains following "x86: add bitmap of enabled emulated devices"

2015-11-12 Thread Ian Campbell
On Thu, 2015-11-12 at 10:07 +, Andrew Cooper wrote: > On 12/11/15 09:25, Ian Campbell wrote: > > On Wed, 2015-11-11 at 21:07 +, Andrew Cooper wrote: > > > On 11/11/2015 20:57, Konrad Rzeszutek Wilk wrote: > > > > On Wed, Nov 11, 2015 at 07:13:25PM +, Andrew Cooper wrote: > > > > > Hello

[Xen-devel] [PATCH] ns16550: misc minor adjustments

2015-11-12 Thread Jan Beulich
First and foremost: fix documentation: The use of "clock_hz", when "base_baud" was meant, has taken me several hours (suspecting a more complicated problem with the PCIe card I've been trying to get working). At once correct the "gdb" option, which is more like "console", not like "com". Next, fix

Re: [Xen-devel] Runtime services support for Xen on ARM

2015-11-12 Thread Jan Beulich
>>> On 12.11.15 at 10:06, wrote: > Today I try the way you suggested. Set USE_SET_VIRTUAL_ADDRESS_MAP on > ARM and make a fake efi_rs_enter() and efi_rs_leave(). But when calling > efi_init_memory, it fails with below log: You can't just #define that constant and assume things will work: This cod

Re: [Xen-devel] [PATCH] ns16550: misc minor adjustments

2015-11-12 Thread Ian Campbell
On Thu, 2015-11-12 at 03:31 -0700, Jan Beulich wrote: > First and foremost: fix documentation: The use of "clock_hz", when > "base_baud" was meant, has taken me several hours (suspecting a more > complicated problem with the PCIe card I've been trying to get > working). At once correct the "gdb" op

Re: [Xen-devel] [PATCH v4 1/9] libxc: reorganize domain builder guest memory allocator

2015-11-12 Thread Wei Liu
On Thu, Nov 05, 2015 at 03:36:27PM +0100, Juergen Gross wrote: > Guest memory allocation in the domain builder of libxc is done via > virtual addresses only. In order to be able to support preallocated > areas not virtually mapped reorganize the memory allocator to keep > track of allocated pages g

Re: [Xen-devel] [PATCH v4 1/9] libxc: reorganize domain builder guest memory allocator

2015-11-12 Thread Juergen Gross
On 12/11/15 12:14, Wei Liu wrote: > On Thu, Nov 05, 2015 at 03:36:27PM +0100, Juergen Gross wrote: >> Guest memory allocation in the domain builder of libxc is done via >> virtual addresses only. In order to be able to support preallocated >> areas not virtually mapped reorganize the memory allocat

Re: [Xen-devel] [PATCH v4 1/9] libxc: reorganize domain builder guest memory allocator

2015-11-12 Thread Ian Campbell
On Thu, 2015-11-12 at 11:14 +, Wei Liu wrote: > On Thu, Nov 05, 2015 at 03:36:27PM +0100, Juergen Gross wrote: > > Guest memory allocation in the domain builder of libxc is done via > > virtual addresses only. In order to be able to support preallocated > > areas not virtually mapped reorganize

Re: [Xen-devel] [PATCH v4 1/9] libxc: reorganize domain builder guest memory allocator

2015-11-12 Thread Wei Liu
On Thu, Nov 12, 2015 at 11:20:47AM +, Ian Campbell wrote: > On Thu, 2015-11-12 at 11:14 +, Wei Liu wrote: > > On Thu, Nov 05, 2015 at 03:36:27PM +0100, Juergen Gross wrote: > > > Guest memory allocation in the domain builder of libxc is done via > > > virtual addresses only. In order to be

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

2015-11-12 Thread osstest service owner
flight 64095 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/64095/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-armhf-armhf-xl-rtds 11 guest-start fail like 63705 Tests which did not succeed,

Re: [Xen-devel] [PATCH v4 1/9] libxc: reorganize domain builder guest memory allocator

2015-11-12 Thread Wei Liu
On Thu, Nov 12, 2015 at 12:21:24PM +0100, Juergen Gross wrote: > On 12/11/15 12:14, Wei Liu wrote: > > On Thu, Nov 05, 2015 at 03:36:27PM +0100, Juergen Gross wrote: > >> Guest memory allocation in the domain builder of libxc is done via > >> virtual addresses only. In order to be able to support p

Re: [Xen-devel] [PATCH v3 5/6] xen/arm: introduce xen_read_wallclock

2015-11-12 Thread Stefano Stabellini
On Wed, 11 Nov 2015, Arnd Bergmann wrote: > On Wednesday 11 November 2015 16:51:35 Stefano Stabellini wrote: > > +static void xen_read_wallclock(struct timespec64 *ts) > > +{ > > + u32 version; > > + u64 delta; > > + struct timespec64 now; > > + struct shared_info *s = HYPER

Re: [Xen-devel] [PATCH v4 1/9] libxc: reorganize domain builder guest memory allocator

2015-11-12 Thread Juergen Gross
On 12/11/15 12:20, Ian Campbell wrote: > On Thu, 2015-11-12 at 11:14 +, Wei Liu wrote: >> On Thu, Nov 05, 2015 at 03:36:27PM +0100, Juergen Gross wrote: >>> Guest memory allocation in the domain builder of libxc is done via >>> virtual addresses only. In order to be able to support preallocated

Re: [Xen-devel] [PATCH V8 3/7] libxl: add pvusb API

2015-11-12 Thread Olaf Hering
On Wed, Oct 21, Chunyan Liu wrote: > Add pvusb APIs, including: Some comments below. After a quick look I miss the proposed ctrl/device separation for pvscsi (what handles "state" changes?). But, I have to read all the other dozen+ threads about that topic first. > +flexarray_append_pair(b

Re: [Xen-devel] [PATCH v3 2/2] arm: export platform_op XENPF_settime64

2015-11-12 Thread Stefano Stabellini
On Wed, 11 Nov 2015, Julien Grall wrote: > On 11/11/15 18:14, Stefano Stabellini wrote: > > On Wed, 11 Nov 2015, Julien Grall wrote: > >>> diff --git a/xen/arch/arm/vtimer.c b/xen/arch/arm/vtimer.c > >>> index 1418092..aa0fde6 100644 > >>> --- a/xen/arch/arm/vtimer.c > >>> +++ b/xen/arch/arm/vtimer

Re: [Xen-devel] [PATCH v4 1/9] libxc: reorganize domain builder guest memory allocator

2015-11-12 Thread Wei Liu
On Thu, Nov 12, 2015 at 12:29:06PM +0100, Juergen Gross wrote: > On 12/11/15 12:20, Ian Campbell wrote: > > On Thu, 2015-11-12 at 11:14 +, Wei Liu wrote: > >> On Thu, Nov 05, 2015 at 03:36:27PM +0100, Juergen Gross wrote: > >>> Guest memory allocation in the domain builder of libxc is done via

Re: [Xen-devel] [PATCH v3 2/2] arm: export platform_op XENPF_settime64

2015-11-12 Thread Julien Grall
On 12/11/15 11:32, Stefano Stabellini wrote: > On Wed, 11 Nov 2015, Julien Grall wrote: >> On 11/11/15 18:14, Stefano Stabellini wrote: >>> On Wed, 11 Nov 2015, Julien Grall wrote: > diff --git a/xen/arch/arm/vtimer.c b/xen/arch/arm/vtimer.c > index 1418092..aa0fde6 100644 > --- a/xen/a

Re: [Xen-devel] [PATCH V8 5/7] xl: add pvusb commands

2015-11-12 Thread George Dunlap
On Wed, Oct 21, 2015 at 10:08 AM, Chunyan Liu wrote: > Add pvusb commands: usbctrl-attach, usbctrl-detach, usb-list, > usb-attach and usb-detach. > > To attach a usb device to guest through pvusb, one could follow > following example: > > #xl usbctrl-attach test_vm version=1 ports=8 > > #xl usb-

Re: [Xen-devel] [PATCH V8 5/7] xl: add pvusb commands

2015-11-12 Thread George Dunlap
On Thu, Nov 12, 2015 at 11:38 AM, George Dunlap wrote: >> +/* Parses usb data and adds info into usb >> + * Returns 1 if the input token does not match one of the keys >> + * or parsed values are not correct. Successful parse returns 0 */ >> +static int parse_usb_config(libxl_device_usb *usb, char

[Xen-devel] [PATCH 0/2] x86/IO-APIC: adjust setting interrupt destination

2015-11-12 Thread Jan Beulich
1: fix setup of Xen internally used IRQs 2: make SET_DEST() easier to use Signed-off-by: Jan Beulich ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH V8 6/7] xl: add usb-assignable-list command

2015-11-12 Thread George Dunlap
On Wed, Oct 21, 2015 at 10:08 AM, Chunyan Liu wrote: > Add xl usb-assignable-list command to list assignable USB devices. > Assignable USB device means the USB device type is assignable and > it's not assigned to any guest yet. > > Signed-off-by: Chunyan Liu > > --- > Same as "libxl: add libxl_

[Xen-devel] [PATCH 2/2] x86/IO-APIC: make SET_DEST() easier to use

2015-11-12 Thread Jan Beulich
There has been quite a bit of redundancy between the various use sites. Eliminate that. No change of generated code. Signed-off-by: Jan Beulich --- a/xen/arch/x86/io_apic.c +++ b/xen/arch/x86/io_apic.c @@ -958,8 +958,12 @@ static hw_irq_controller ioapic_edge_typ #define IOAPIC_EDGE0 #defi

[Xen-devel] [PATCH 1/2] x86/IO-APIC: fix setup of Xen internally used IRQs

2015-11-12 Thread Jan Beulich
..., i.e. namely that of a PCI serial card with an IRQ above the legacy range. This had got broken by the switch to cpumask_any() in cpu_mask_to_apicid_phys(). Fix this by allowing all CPUs for that IRQ (such that __setup_vector_irq() will properly update a booting CPU's vector_irq[], avoiding "No

Re: [Xen-devel] [PATCH] ns16550: misc minor adjustments

2015-11-12 Thread Jan Beulich
>>> On 12.11.15 at 12:07, wrote: > On Thu, 2015-11-12 at 03:31 -0700, Jan Beulich wrote: >> --- a/docs/misc/xen-command-line.markdown >> +++ b/docs/misc/xen-command-line.markdown >> @@ -277,13 +277,13 @@ Flag to indicate whether to probe for a >> ACPI indicating none to be there. >> >> ### com

Re: [Xen-devel] [RFC] libxl: relax readonly check introduced by XSA-142 fix

2015-11-12 Thread Stefano Stabellini
On Wed, 11 Nov 2015, Jim Fehlig wrote: > Hi All, > > Apologies for only noticing the fix for XSA-142 as it starting flowing to our > various downstreams. The current fix seems like quite a big hammer IMO. qemu > doesn't support readonly IDE/SATA disks > > # /usr/lib/xen/bin/qemu-system-i386 -dri

Re: [Xen-devel] [raisin][PATCHv2] Handle unsupported distros with a prettier message

2015-11-12 Thread Stefano Stabellini
On Wed, 11 Nov 2015, Doug Goldstein wrote: > Handle unknown distros by saying "unknown" instead of an empty string > and for Gentoo users actually mention it. > > Signed-off-by: Doug Goldstein Thanks for the patch. > lib/common-functions.sh | 8 > 1 file changed, 8 insertions(+) > >

Re: [Xen-devel] [PATCH] ns16550: misc minor adjustments

2015-11-12 Thread Ian Campbell
On Thu, 2015-11-12 at 04:52 -0700, Jan Beulich wrote: > > > @@ -530,7 +531,8 @@ static void ns16550_setup_preirq(struct > > >  /* Baud rate already set: read it out from the divisor > > > latch. */ > > >  divisor  = ns_read_reg(uart, UART_DLL); > > >  divisor |= ns_read_reg

Re: [Xen-devel] [PATCH 0/2] x86/IO-APIC: adjust setting interrupt destination

2015-11-12 Thread Andrew Cooper
On 12/11/15 11:39, Jan Beulich wrote: > 1: fix setup of Xen internally used IRQs > 2: make SET_DEST() easier to use > > Signed-off-by: Jan Beulich > Reviewed-by: Andrew Cooper ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen

Re: [Xen-devel] [PATCH] ns16550: misc minor adjustments

2015-11-12 Thread Andrew Cooper
On 12/11/15 12:10, Ian Campbell wrote: > On Thu, 2015-11-12 at 04:52 -0700, Jan Beulich wrote: > @@ -530,7 +531,8 @@ static void ns16550_setup_preirq(struct /* Baud rate already set: read it out from the divisor latch. */ divisor = ns_read_reg(uart, UART_DLL);

Re: [Xen-devel] [PATCH v4 1/9] libxc: reorganize domain builder guest memory allocator

2015-11-12 Thread Juergen Gross
On 12/11/15 12:32, Wei Liu wrote: > On Thu, Nov 12, 2015 at 12:29:06PM +0100, Juergen Gross wrote: >> On 12/11/15 12:20, Ian Campbell wrote: >>> On Thu, 2015-11-12 at 11:14 +, Wei Liu wrote: On Thu, Nov 05, 2015 at 03:36:27PM +0100, Juergen Gross wrote: > Guest memory allocation in the

Re: [Xen-devel] [PATCH] ns16550: misc minor adjustments

2015-11-12 Thread Jan Beulich
>>> On 12.11.15 at 13:10, wrote: > Is a printk worthwhile, due to the fact there might be a second console > present? As Andrew also asks for it, I'll add one. Jan ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH] tools/libxc: Fix construction of HVM guests with non-default firmware

2015-11-12 Thread Andrew Cooper
On 12/11/15 09:41, Ian Campbell wrote: > On Wed, 2015-11-11 at 20:18 +, Andrew Cooper wrote: >> c/s 1ee15d7 "libxl: switch HVM domain building to use xc_dom_* helpers" >> introduced a regression building HVM domains in combination with the >> libxl >> "firmware_override=" option. >> >> The olde

Re: [Xen-devel] [PATCH v4 8/9] libxc: rework of domain builder's page table handler

2015-11-12 Thread Wei Liu
On Thu, Nov 05, 2015 at 03:36:34PM +0100, Juergen Gross wrote: > In order to prepare a p2m list outside of the initial kernel mapping > do a rework of the domain builder's page table handler. The goal is > to be able to use common helpers for page table allocation and setup > for initial kernel pag

Re: [Xen-devel] [PATCH v4 9/9] libxc: create p2m list outside of kernel mapping if supported

2015-11-12 Thread Wei Liu
On Thu, Nov 05, 2015 at 03:36:35PM +0100, Juergen Gross wrote: > In case the kernel of a new pv-domU indicates it is supporting a p2m > list outside the initial kernel mapping by specifying INIT_P2M, let > the domain builder allocate the memory for the p2m list from physical > guest memory only and

Re: [Xen-devel] [PATCH v4 8/9] libxc: rework of domain builder's page table handler

2015-11-12 Thread Juergen Gross
On 12/11/15 13:39, Wei Liu wrote: > On Thu, Nov 05, 2015 at 03:36:34PM +0100, Juergen Gross wrote: >> In order to prepare a p2m list outside of the initial kernel mapping >> do a rework of the domain builder's page table handler. The goal is >> to be able to use common helpers for page table alloca

Re: [Xen-devel] [PATCH] tools/libxc: Fix construction of HVM guests with non-default firmware

2015-11-12 Thread Ian Campbell
On Thu, 2015-11-12 at 12:37 +, Andrew Cooper wrote: > On 12/11/15 09:41, Ian Campbell wrote: > > On Wed, 2015-11-11 at 20:18 +, Andrew Cooper wrote: > > > c/s 1ee15d7 "libxl: switch HVM domain building to use xc_dom_* > > > helpers" > > > introduced a regression building HVM domains in comb

Re: [Xen-devel] Runtime services support for Xen on ARM

2015-11-12 Thread Shannon Zhao
On 2015/11/12 19:04, Jan Beulich wrote: On 12.11.15 at 10:06, wrote: Today I try the way you suggested. Set USE_SET_VIRTUAL_ADDRESS_MAP on ARM and make a fake efi_rs_enter() and efi_rs_leave(). But when calling efi_init_memory, it fails with below log: You can't just #define that constant a

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-12 Thread Andrew Cooper
On 12/11/15 02:10, Meng Xu wrote: > Hi Andrew, > > 2015-11-11 18:34 GMT-05:00 Andrew Cooper : >> On 11/11/2015 23:21, Meng Xu wrote: Finally, I can't tell from your paste below, but ensure that you are always using a debug hypervisor. >>> The source file Config.mk under the xen folder has

Re: [Xen-devel] HVM domains crash after upgrade from XEN 4.5.1 to 4.5.2

2015-11-12 Thread Jan Beulich
>>> On 12.11.15 at 02:08, wrote: > After the upgrade HVM domUs appear to no longer work - regardless of the > dom0 kernel (tested with both 3.18.9 and 4.1.7 as the dom0 kernel); PV > domUs, however, work just fine as before on both dom0 kernels. > > xl dmesg shows the following information afte

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-12 Thread Wei Liu
On Thu, Nov 12, 2015 at 12:52:56PM +, Andrew Cooper wrote: > On 12/11/15 02:10, Meng Xu wrote: > > Hi Andrew, > > > > 2015-11-11 18:34 GMT-05:00 Andrew Cooper : > >> On 11/11/2015 23:21, Meng Xu wrote: > Finally, I can't tell from your paste below, but ensure that you are > always usi

Re: [Xen-devel] HVM domains crash after upgrade from XEN 4.5.1 to 4.5.2

2015-11-12 Thread Andrew Cooper
On 12/11/15 12:52, Jan Beulich wrote: On 12.11.15 at 02:08, wrote: >> After the upgrade HVM domUs appear to no longer work - regardless of the >> dom0 kernel (tested with both 3.18.9 and 4.1.7 as the dom0 kernel); PV >> domUs, however, work just fine as before on both dom0 kernels. >> >> xl

Re: [Xen-devel] [PATCH 00/13] tools: do cleanups related to libxc python bindings

2015-11-12 Thread Wei Liu
On Mon, Nov 09, 2015 at 04:19:24PM +0100, Juergen Gross wrote: > On 10/23/2015 03:04 PM, Juergen Gross wrote: > >This series is a combination of my previous patches: > > > >"libxc: remove most of tools/libxc/xc_dom_compat_linux.c" > >"tools: remove unused wrappers for python" > > > >I have split it

[Xen-devel] [PATCH GRUB] Allow initrd concatenation on ARM64

2015-11-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
While on it also change "xen_linux" to "xen_kernel" to be vendor-neutral Could someone test please? I only compile-tested it diff --git a/docs/grub.texi b/docs/grub.texi index 1df3db2..112b42b 100644 --- a/docs/grub.texi +++ b/docs/grub.texi @@ -3859,7 +3859,7 @@ you forget a command, you can run t

[Xen-devel] [linux-3.14 test] 64127: regressions - FAIL

2015-11-12 Thread osstest service owner
flight 64127 linux-3.14 real [real] http://logs.test-lab.xenproject.org/osstest/logs/64127/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf-pvops 5 kernel-build fail REGR. vs. 62648 Regressions which are

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-12 Thread Ian Campbell
On Thu, 2015-11-12 at 12:57 +, Wei Liu wrote: > On Thu, Nov 12, 2015 at 12:52:56PM +, Andrew Cooper wrote: > >  > > In screen for example, you need to send CTRL-a a to send a "CTRL-a" on > > the serial. > > > > And for minicom it is "Ctrl-a Ctrl-a" to send "Ctrl-a". Now run minicom in sc

[Xen-devel] [libvirt test] 64130: regressions - FAIL

2015-11-12 Thread osstest service owner
flight 64130 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/64130/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf-libvirt 5 libvirt-build fail REGR. vs. 63340 Tests which did not succe

Re: [Xen-devel] [PATCH v2 5/6] multiboot2: Add support for relocatable images

2015-11-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 12.11.2015 14:15, Daniel Kiper wrote: > On Tue, Nov 10, 2015 at 04:23:46PM +0100, Vladimir 'phcoder' Serbinenko wrote: >> Le 10 nov. 2015 3:52 PM, "Daniel Kiper" a écrit : >>> On Mon, Nov 09, 2015 at 09:08:35PM +0100, Vladimir 'φ-coder/phcoder' >> Serbinenko wrote: On 20.07.2015 16:35, Dan

Re: [Xen-devel] [PATCH GRUB] Allow initrd concatenation on ARM64

2015-11-12 Thread Ian Campbell
On Thu, 2015-11-12 at 14:08 +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > While on it also change "xen_linux" to "xen_kernel" to be vendor-neutral > Could someone test please? I only compile-tested it I was expecting this patch to include a change to ./util/grub.d/20_linux_xen.in to update

Re: [Xen-devel] [PATCH GRUB] Allow initrd concatenation on ARM64

2015-11-12 Thread Fu Wei
Hi Vladimir, OK, I will test it. On 12 November 2015 at 21:08, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > While on it also change "xen_linux" to "xen_kernel" to be vendor-neutral > Could someone test please? I only compile-tested it -- Best regards, Fu Wei Software Engineer Red Hat Soft

Re: [Xen-devel] [PATCH v2 5/6] multiboot2: Add support for relocatable images

2015-11-12 Thread Daniel Kiper
On Thu, Nov 12, 2015 at 02:26:21PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 12.11.2015 14:15, Daniel Kiper wrote: > > On Tue, Nov 10, 2015 at 04:23:46PM +0100, Vladimir 'phcoder' Serbinenko > > wrote: > >> Le 10 nov. 2015 3:52 PM, "Daniel Kiper" a écrit : > >>> On Mon, Nov 09, 20

[Xen-devel] Uniform commands for booting xen

2015-11-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Hello, all. I'd like to have set of commands that would boot xen on all platforms. I thought of following set: xen_hypervisor FILE XEN_OPTIONS xen_kernel FILE KERNEL_OPTIONS xen_initrd INITRD INITRD INITRD all initrds are concatenated. xen_xsm ??? On arm64 it would use the arm64 xen FDT protocol

[Xen-devel] [PATCH v5 7/9] libxc: split p2m allocation in domain builder from other magic pages

2015-11-12 Thread Juergen Gross
Carve out the p2m list allocation from the .alloc_magic_pages hook of the domain builder in order to prepare allocating the p2m list outside of the initial kernel mapping. This will be needed to support loading domains with huge memory (>512 GB). Signed-off-by: Juergen Gross Acked-by: Ian Campbel

[Xen-devel] [PATCH v5 1/9] libxc: reorganize domain builder guest memory allocator

2015-11-12 Thread Juergen Gross
Guest memory allocation in the domain builder of libxc is done via virtual addresses only. In order to be able to support preallocated areas not virtually mapped reorganize the memory allocator to keep track of allocated pages globally and in allocated segments. This requires an interface change o

[Xen-devel] [PATCH v5 5/9] libxc: use domain builder architecture private data for x86 pv domains

2015-11-12 Thread Juergen Gross
Move some data private to the x86 domain builder to the private data section. Remove extra_pages as they are used nowhere. Signed-off-by: Juergen Gross Acked-by: Wei Liu --- tools/libxc/include/xc_dom.h | 8 tools/libxc/xc_dom_x86.c | 48 +--

[Xen-devel] [PATCH v5 6/9] libxc: create unmapped initrd in domain builder if supported

2015-11-12 Thread Juergen Gross
In case the kernel of a new pv-domU indicates it is supporting an unmapped initrd, don't waste precious virtual space for the initrd, but allocate only guest physical memory for it. Signed-off-by: Juergen Gross Acked-by: Wei Liu --- tools/libxc/include/xc_dom.h | 5 + tools/libxc/xc_dom_co

[Xen-devel] [PATCH v5 3/9] libxc: rename domain builder count_pgtables to alloc_pgtables

2015-11-12 Thread Juergen Gross
Rename the count_pgtables hook of the domain builder to alloc_pgtables and do the allocation of the guest memory for page tables inside this hook. This will remove the need for accessing the x86 specific pgtables member of struct xc_dom_image in the generic domain builder code. Signed-off-by: Juer

[Xen-devel] [PATCH v5 0/9] libxc: support building large pv-domains

2015-11-12 Thread Juergen Gross
The Xen hypervisor supports starting a dom0 with large memory (up to the TB range) by not including the initrd and p2m list in the initial kernel mapping. Especially the p2m list can grow larger than the available virtual space in the initial mapping. The started kernel is indicating the support o

[Xen-devel] [PATCH v5 9/9] libxc: create p2m list outside of kernel mapping if supported

2015-11-12 Thread Juergen Gross
In case the kernel of a new pv-domU indicates it is supporting a p2m list outside the initial kernel mapping by specifying INIT_P2M, let the domain builder allocate the memory for the p2m list from physical guest memory only and map it to the address the kernel is expecting. This will enable loadi

[Xen-devel] [PATCH v5 2/9] xen: add generic flag to elf_dom_parms indicating support of unmapped initrd

2015-11-12 Thread Juergen Gross
Support of an unmapped initrd is indicated by the kernel of the domain via elf notes. In order not to have to use raw elf data in the tools for support of an unmapped initrd add a flag to the parsed data area to indicate the kernel supporting this feature. Switch using this flag in the hypervisor

[Xen-devel] [PATCH v5 4/9] libxc: introduce domain builder architecture specific data

2015-11-12 Thread Juergen Gross
Reorganize struct xc_dom_image to contain a pointer to domain builder architecture specific private data. This will abstract the architecture or domain type specific data from the general used data. The new area is allocated as soon as the domain type is known. Signed-off-by: Juergen Gross Acked

[Xen-devel] [PATCH v5 8/9] libxc: rework of domain builder's page table handler

2015-11-12 Thread Juergen Gross
In order to prepare a p2m list outside of the initial kernel mapping do a rework of the domain builder's page table handler. The goal is to be able to use common helpers for page table allocation and setup for initial kernel page tables and page tables mapping the p2m list. This is achieved by supp

Re: [Xen-devel] [PATCH v2 3/6] i386/relocator: Add grub_relocator64_efi relocator

2015-11-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 10.11.2015 15:38, Daniel Kiper wrote: >>> - if (entry_specified) >>> > > + if (keep_bs && efi_entry_specified) >>> > > +grub_multiboot_payload_eip = efi_entry; >>> > > + else if (entry_specified) >>> > > grub_multiboot_payload_eip = entry; >>> > > >> > This seems redundant. > What is

Re: [Xen-devel] [PATCH v5 1/9] libxc: reorganize domain builder guest memory allocator

2015-11-12 Thread Wei Liu
On Thu, Nov 12, 2015 at 02:43:28PM +0100, Juergen Gross wrote: > Guest memory allocation in the domain builder of libxc is done via > virtual addresses only. In order to be able to support preallocated > areas not virtually mapped reorganize the memory allocator to keep > track of allocated pages g

Re: [Xen-devel] [PATCH v5 8/9] libxc: rework of domain builder's page table handler

2015-11-12 Thread Wei Liu
On Thu, Nov 12, 2015 at 02:43:35PM +0100, Juergen Gross wrote: > In order to prepare a p2m list outside of the initial kernel mapping > do a rework of the domain builder's page table handler. The goal is > to be able to use common helpers for page table allocation and setup > for initial kernel pag

Re: [Xen-devel] [PATCH GRUB] Allow initrd concatenation on ARM64

2015-11-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 12.11.2015 14:27, Ian Campbell wrote: > On Thu, 2015-11-12 at 14:08 +0100, Vladimir 'φ-coder/phcoder' Serbinenko > wrote: >> While on it also change "xen_linux" to "xen_kernel" to be vendor-neutral >> Could someone test please? I only compile-tested it > > I was expecting this patch to include

Re: [Xen-devel] [PATCH v5 8/9] libxc: rework of domain builder's page table handler

2015-11-12 Thread Juergen Gross
On 12/11/15 14:47, Wei Liu wrote: > On Thu, Nov 12, 2015 at 02:43:35PM +0100, Juergen Gross wrote: >> In order to prepare a p2m list outside of the initial kernel mapping >> do a rework of the domain builder's page table handler. The goal is >> to be able to use common helpers for page table alloca

Re: [Xen-devel] Re 6ab1e4a932 ("serial: Seperate the PCI device ids and parameters (v1)")

2015-11-12 Thread Konrad Rzeszutek Wilk
On Wed, Nov 11, 2015 at 07:29:41AM -0700, Jan Beulich wrote: > Konrad, > > in that change you give bar_idx a second purpose: Originally it was > what its name say - an index into the BARs of the device. In that > change, however, you also use it to index into an individual BAR. > IOW right now we

Re: [Xen-devel] [PATCH 06/13] x86/hvm: Scale host TSC when setting/getting guest TSC

2015-11-12 Thread George Dunlap
On Mon, Nov 9, 2015 at 7:43 AM, Haozhong Zhang wrote: > On 10/27/15 15:16, Aravind Gopalakrishnan wrote: > [...] >> >> Haozhong, Boris- >> >> I am planning to use a Fam10h system (older processor) and Fam15h Model 60h >> (newer processor) for the test case. >> >> Shall try to run the test on a sin

Re: [Xen-devel] [PATCH v5 1/9] libxc: reorganize domain builder guest memory allocator

2015-11-12 Thread Juergen Gross
On 12/11/15 14:48, Wei Liu wrote: > On Thu, Nov 12, 2015 at 02:43:28PM +0100, Juergen Gross wrote: >> Guest memory allocation in the domain builder of libxc is done via >> virtual addresses only. In order to be able to support preallocated >> areas not virtually mapped reorganize the memory allocat

Re: [Xen-devel] HVM domains crash after upgrade from XEN 4.5.1 to 4.5.2

2015-11-12 Thread Atom2
Hi Jan, many thanks for your reply. Answers are further down inline. Am 12.11.15 um 13:52 schrieb Jan Beulich: On 12.11.15 at 02:08, wrote: After the upgrade HVM domUs appear to no longer work - regardless of the dom0 kernel (tested with both 3.18.9 and 4.1.7 as the dom0 kernel); PV domUs, howe

Re: [Xen-devel] HVM domains crash after upgrade from XEN 4.5.1 to 4.5.2

2015-11-12 Thread Atom2
Hi Andrew, thanks for your reply. Answers are inline further down. Am 12.11.15 um 14:01 schrieb Andrew Cooper: On 12/11/15 12:52, Jan Beulich wrote: On 12.11.15 at 02:08, wrote: After the upgrade HVM domUs appear to no longer work - regardless of the dom0 kernel (tested with both 3.18.9 and 4

Re: [Xen-devel] [PATCH] smpboot: Add smpboot state variables instead of reusing CPU hotplug states

2015-11-12 Thread Daniel Wagner
Hi Paul, On 11/07/2015 08:17 AM, Paul E. McKenney wrote: > On Thu, Oct 15, 2015 at 01:32:44PM +0200, Daniel Wagner wrote: >> The cpu hotplug state machine in smpboot.c is reusing the states from >> cpu.h. That is confusing when it comes to the CPU_DEAD_FROZEN usage. >> Paul explained to me that he

Re: [Xen-devel] [PATCH V8 5/7] xl: add pvusb commands

2015-11-12 Thread Olaf Hering
On Wed, Oct 21, Chunyan Liu wrote: > Add pvusb commands: usbctrl-attach, usbctrl-detach, usb-list, > usb-attach and usb-detach. How is this supposed to be handled in libvirt? It looks like libvirt has to copy what is done here. If thats true the logic should be in libxlu so that both xl and libvi

Re: [Xen-devel] [PATCH v5 1/9] libxc: reorganize domain builder guest memory allocator

2015-11-12 Thread Ian Campbell
On Thu, 2015-11-12 at 15:03 +0100, Juergen Gross wrote: > On 12/11/15 14:48, Wei Liu wrote: > > On Thu, Nov 12, 2015 at 02:43:28PM +0100, Juergen Gross wrote: > > > Guest memory allocation in the domain builder of libxc is done via > > > virtual addresses only. In order to be able to support preall

Re: [Xen-devel] [PATCH v5 1/9] libxc: reorganize domain builder guest memory allocator

2015-11-12 Thread Wei Liu
On Thu, Nov 12, 2015 at 03:03:32PM +0100, Juergen Gross wrote: > On 12/11/15 14:48, Wei Liu wrote: > > On Thu, Nov 12, 2015 at 02:43:28PM +0100, Juergen Gross wrote: > >> Guest memory allocation in the domain builder of libxc is done via > >> virtual addresses only. In order to be able to support p

Re: [Xen-devel] [PATCH v5 1/9] libxc: reorganize domain builder guest memory allocator

2015-11-12 Thread Wei Liu
On Thu, Nov 12, 2015 at 02:47:24PM +, Ian Campbell wrote: > On Thu, 2015-11-12 at 15:03 +0100, Juergen Gross wrote: > > On 12/11/15 14:48, Wei Liu wrote: > > > On Thu, Nov 12, 2015 at 02:43:28PM +0100, Juergen Gross wrote: > > > > Guest memory allocation in the domain builder of libxc is done v

Re: [Xen-devel] [PATCH V8 5/7] xl: add pvusb commands

2015-11-12 Thread George Dunlap
On Thu, Nov 12, 2015 at 2:42 PM, Olaf Hering wrote: > On Wed, Oct 21, Chunyan Liu wrote: > >> Add pvusb commands: usbctrl-attach, usbctrl-detach, usb-list, >> usb-attach and usb-detach. > > How is this supposed to be handled in libvirt? It looks like libvirt has > to copy what is done here. If tha

Re: [Xen-devel] [PATCH v3 1/6] xen: rename dom0_op to platform_op

2015-11-12 Thread Stefano Stabellini
Konrad, David, Boris, are you OK with this? On Wed, 11 Nov 2015, Stefano Stabellini wrote: > The dom0_op hypercall has been renamed to platform_op since Xen 3.2, > which is ancient, and modern upstream Linux kernels cannot run as dom0 > and it anymore anyway. > > Signed-off-by: Stefano Stabelli

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-12 Thread Meng Xu
Hi Andrew, 2015-11-12 7:52 GMT-05:00 Andrew Cooper : > On 12/11/15 02:10, Meng Xu wrote: >> Hi Andrew, >> >> 2015-11-11 18:34 GMT-05:00 Andrew Cooper : >>> On 11/11/2015 23:21, Meng Xu wrote: > Finally, I can't tell from your paste below, but ensure that you are > always using a debug hype

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-12 Thread Meng Xu
Hi Ian and Wei, 2015-11-12 8:16 GMT-05:00 Ian Campbell : > On Thu, 2015-11-12 at 12:57 +, Wei Liu wrote: >> On Thu, Nov 12, 2015 at 12:52:56PM +, Andrew Cooper wrote: >> > >> > In screen for example, you need to send CTRL-a a to send a "CTRL-a" on >> > the serial. >> > >> >> And for minico

Re: [Xen-devel] [PATCH v3 1/6] xen: rename dom0_op to platform_op

2015-11-12 Thread Boris Ostrovsky
On 11/11/2015 11:51 AM, Stefano Stabellini wrote: The dom0_op hypercall has been renamed to platform_op since Xen 3.2, which is ancient, and modern upstream Linux kernels cannot run as dom0 and it anymore anyway. Signed-off-by: Stefano Stabellini CC: konrad.w...@oracle.com CC: david.vra...@citr

Re: [Xen-devel] [PATCH v5 1/9] libxc: reorganize domain builder guest memory allocator

2015-11-12 Thread Juergen Gross
On 12/11/15 15:47, Ian Campbell wrote: > On Thu, 2015-11-12 at 15:03 +0100, Juergen Gross wrote: >> On 12/11/15 14:48, Wei Liu wrote: >>> On Thu, Nov 12, 2015 at 02:43:28PM +0100, Juergen Gross wrote: Guest memory allocation in the domain builder of libxc is done via virtual addresses onl

Re: [Xen-devel] Runtime services support for Xen on ARM

2015-11-12 Thread Jan Beulich
>>> On 12.11.15 at 13:52, wrote: > On 2015/11/12 19:04, Jan Beulich wrote: > On 12.11.15 at 10:06, wrote: >>> Today I try the way you suggested. Set USE_SET_VIRTUAL_ADDRESS_MAP on >>> ARM and make a fake efi_rs_enter() and efi_rs_leave(). But when calling >>> efi_init_memory, it fails with be

Re: [Xen-devel] [PATCH v3 3/6] xen: introduce XENPF_settime64

2015-11-12 Thread Boris Ostrovsky
On 11/11/2015 11:51 AM, Stefano Stabellini wrote: Rename the current XENPF_settime hypercall and related struct to XENPF_settime32. Signed-off-by: Stefano Stabellini Acked-by: Arnd Bergmann CC: konrad.w...@oracle.com CC: david.vra...@citrix.com CC: boris.ostrov...@oracle.com --- arch/x86/xen

Re: [Xen-devel] HVM domains crash after upgrade from XEN 4.5.1 to 4.5.2

2015-11-12 Thread Jan Beulich
>>> On 12.11.15 at 15:29, wrote: > Another question is whether prior to enabling the debug USE flag it > might make sense to re-compile with gcc-4.8.5 (please see my previous > list reply) to rule out any compiler related issues. Jan, Andrew - what > are your thoughts? The order of things you

[Xen-devel] [PATCH v2] ns16550: misc minor adjustments

2015-11-12 Thread Jan Beulich
First and foremost: fix documentation: The use of "clock_hz", when "base_baud" was meant, has taken me several hours (suspecting a more complicated problem with the PCIe card I've been trying to get working). At once correct the "gdb" option, which is more like "console", not like "com". Next, fix

  1   2   3   >