Re: [Xen-devel] Q77 IGD instantly crashes on xen-pciback bind.

2014-12-01 Thread Dr. Greg Wettstein
On Nov 29, 1:09pm, Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= wrote: } Subject: Re: [Xen-devel] Q77 IGD instantly crashes on xen-pciback bind. Good morning Pasi, thanks for taking the time to follow up. > > > > So we are obviously working with qemu-dm-traditional and with the > > > > IGD/LVDS BIOS con

Re: [Xen-devel] [PATCH v4] x86: add p2m_mmio_write_dm

2014-12-01 Thread Yu, Zhang
On 12/1/2014 8:31 PM, Jan Beulich wrote: On 01.12.14 at 13:13, wrote: At 11:17 + on 01 Dec (1417429027), Jan Beulich wrote: On 01.12.14 at 11:30, wrote: At 09:32 + on 01 Dec (1417422746), Jan Beulich wrote: On 01.12.14 at 09:49, wrote: To my understanding, pages with p2m_ram_ro

Re: [Xen-devel] [PATCH v4] x86: add p2m_mmio_write_dm

2014-12-01 Thread Yu, Zhang
On 12/1/2014 8:13 PM, Tim Deegan wrote: At 11:17 + on 01 Dec (1417429027), Jan Beulich wrote: On 01.12.14 at 11:30, wrote: At 09:32 + on 01 Dec (1417422746), Jan Beulich wrote: On 01.12.14 at 09:49, wrote: To my understanding, pages with p2m_ram_ro are not supposed to be modified

[Xen-devel] [linux-next test] 31976: tolerable trouble: broken/fail/pass

2014-12-01 Thread xen . org
flight 31976 linux-next real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/31976/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-amd64-i386-libvirt 5 xen-bootfail baseline untested test-amd64-i386-xl5

Re: [Xen-devel] [PATCH for-4.5] pygrub: Fix regression from c/s d1b93ea, attempt 2

2014-12-01 Thread Andrew Cooper
On 01/12/2014 20:30, Konrad Rzeszutek Wilk wrote: > On Fri, Nov 28, 2014 at 11:31:24AM +, Ian Campbell wrote: >> On Tue, 2014-11-25 at 11:11 -0500, Boris Ostrovsky wrote: >>> c/s d1b93ea causes substantial functional regressions in pygrub's ability to >>> parse bootloader configuration files. >

[Xen-devel] [linux-3.10 test] 31972: regressions - trouble: blocked/broken/fail/pass

2014-12-01 Thread xen . org
flight 31972 linux-3.10 real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/31972/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf 4 host-build-prep fail REGR. vs. 26303 test-amd64-amd64-xl-qe

[Xen-devel] [xen-4.4-testing test] 31969: regressions - trouble: blocked/broken/fail/pass

2014-12-01 Thread xen . org
flight 31969 xen-4.4-testing real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/31969/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-pair 17 guest-migrate/src_host/dst_host fail in 31941 REGR. vs. 31781 Tests whi

Re: [Xen-devel] [PATCH 3/3] x86_64, vsyscall: Make vsyscall emulation configurable

2014-12-01 Thread Andy Lutomirski
On Dec 1, 2014 2:08 PM, "Konrad Rzeszutek Wilk" wrote: > > On Wed, Oct 29, 2014 at 02:30:29PM -0700, Andy Lutomirski wrote: > > On Oct 29, 2014 1:00 PM, "Konrad Rzeszutek Wilk" > > wrote: > > > > > > On Tue, Oct 28, 2014 at 11:09:53AM -0700, Andy Lutomirski wrote: > > > > On Tue, Oct 28, 2014 at

Re: [Xen-devel] [Qemu-devel] [PATCH] increase maxmem before calling xc_domain_populate_physmap

2014-12-01 Thread Don Slutz
On 12/01/14 10:37, Stefano Stabellini wrote: On Mon, 1 Dec 2014, Don Slutz wrote: On 11/27/14 05:48, Stefano Stabellini wrote: [...] Works fine in both claim modes and with PoD used (maxmem > memory). Do not know how to test with tmem. I do not see how it would be worse then current code

Re: [Xen-devel] [PATCH] libxl_set_memory_target: retain the same maxmem offset on top of the current target

2014-12-01 Thread Don Slutz
On 11/25/14 12:54, Stefano Stabellini wrote: In libxl_set_memory_target when setting the new maxmem, retain the same offset on top of the current target. The offset includes memory allocated by QEMU for rom files. Signed-off-by: Stefano Stabellini diff --git a/tools/libxl/libxl.c b/tools/libxl

Re: [Xen-devel] [PATCH] xen: privcmd: schedule() after private hypercall when non CONFIG_PREEMPT

2014-12-01 Thread Luis R. Rodriguez
On Mon, Dec 01, 2014 at 06:16:28PM +, David Vrabel wrote: > On 01/12/14 16:19, Luis R. Rodriguez wrote: > > On Mon, Dec 01, 2014 at 03:54:24PM +, David Vrabel wrote: > >> On 01/12/14 15:44, Luis R. Rodriguez wrote: > >>> On Mon, Dec 1, 2014 at 10:18 AM, David Vrabel > >>> wrote: > On

Re: [Xen-devel] [PATCH v2] fix migration failure with xl migrate --debug

2014-12-01 Thread Konrad Rzeszutek Wilk
On Fri, Nov 28, 2014 at 11:52:26AM +, Ian Jackson wrote: > Ian Campbell writes ("Re: [PATCH v2] fix migration failure with xl migrate > --debug"): > > Acked-by: Ian Campbell > > Thanks for reviewing it :-). > > > It's pretty big but a large chunk is pretty mechanical. Were you > > intending

Re: [Xen-devel] [PATCH v13 09/11] pvqspinlock, x86: Add para-virtualization support

2014-12-01 Thread Konrad Rzeszutek Wilk
On Wed, Oct 29, 2014 at 04:19:09PM -0400, Waiman Long wrote: > This patch adds para-virtualization support to the queue spinlock > code base with minimal impact to the native case. There are some > minor code changes in the generic qspinlock.c file which should be > usable in other architectures. T

Re: [Xen-devel] 答复: Re: [PATCH] missing chunk of HVM direct kernel boot patch

2014-12-01 Thread Konrad Rzeszutek Wilk
On Mon, Dec 01, 2014 at 09:21:24AM +, Ian Campbell wrote: > On Mon, 2014-12-01 at 01:21 -0700, Chun Yan Liu wrote: > > > > >>> Ian Campbell 2014-11-28 下午 20:01 >>> > > On Fri, 2014-11-28 at 13:55 +0800, Chunyan Liu wrote: > > >> Found by Stefano, this chunk of the patch was never applied to

Re: [Xen-devel] xen/pciback: Drop two backends, squash and cleanup some code.

2014-12-01 Thread Konrad Rzeszutek Wilk
On Fri, Oct 31, 2014 at 06:30:01PM +0300, Dan Carpenter wrote: > Hello Konrad Rzeszutek Wilk, > > The patch a92336a1176b: "xen/pciback: Drop two backends, squash and > cleanup some code." from Jul 19, 2011, leads to the following static > checker warning: > > drivers/xen/xen-pciback/conf_sp

Re: [Xen-devel] [PATCH 3/3] x86_64, vsyscall: Make vsyscall emulation configurable

2014-12-01 Thread Konrad Rzeszutek Wilk
On Wed, Oct 29, 2014 at 02:30:29PM -0700, Andy Lutomirski wrote: > On Oct 29, 2014 1:00 PM, "Konrad Rzeszutek Wilk" > wrote: > > > > On Tue, Oct 28, 2014 at 11:09:53AM -0700, Andy Lutomirski wrote: > > > On Tue, Oct 28, 2014 at 10:57 AM, Josh Triplett > > > wrote: > > > > On Tue, Oct 28, 2014 a

Re: [Xen-devel] [PATCH] xen/arm: Handle platforms with edge-triggered virtual timer

2014-12-01 Thread Konrad Rzeszutek Wilk
On Fri, Nov 28, 2014 at 03:17:06PM +, Julien Grall wrote: > Some platforms (such as Xgene and ARMv8 models) use an edge-triggered > interrupt > for the virtual timer. Even if the timer output signal is masked in the > context switch, the GIC will keep track that of any interrupts raised > whil

Re: [Xen-devel] [PATCH for-4.5] pygrub: Fix regression from c/s d1b93ea, attempt 2

2014-12-01 Thread Konrad Rzeszutek Wilk
On Fri, Nov 28, 2014 at 11:31:24AM +, Ian Campbell wrote: > On Tue, 2014-11-25 at 11:11 -0500, Boris Ostrovsky wrote: > > c/s d1b93ea causes substantial functional regressions in pygrub's ability to > > parse bootloader configuration files. > > > > c/s d1b93ea itself changed an an interface wh

Re: [Xen-devel] [PATCH v2 for-4.5 0/2] xl/libxl: fix API and two memory leaks

2014-12-01 Thread Konrad Rzeszutek Wilk
On Mon, Dec 01, 2014 at 11:31:11AM +, Wei Liu wrote: > Return value of libxl_basename was erroneously marked as "const". This > series removes that "const" and fixes two memory leaks in xl. > > I think these fixes should be included in 4.5, given that they fix real > issues and are very straig

Re: [Xen-devel] [PATCH v12 09/11] pvqspinlock, x86: Add para-virtualization support

2014-12-01 Thread Konrad Rzeszutek Wilk
On Tue, Nov 25, 2014 at 07:33:58PM -0500, Waiman Long wrote: > On 10/27/2014 02:02 PM, Konrad Rzeszutek Wilk wrote: > >On Mon, Oct 27, 2014 at 01:38:20PM -0400, Waiman Long wrote: > >> > >>My concern is that spin_unlock() can be called in many places, including > >>loadable kernel modules. Can the

Re: [Xen-devel] [PATCH] xenstore: Clarify xs_open() semantics

2014-12-01 Thread Konrad Rzeszutek Wilk
On Fri, Nov 28, 2014 at 12:31:34PM +, Ian Jackson wrote: > Razvan Cojocaru writes ("[PATCH] xenstore: Clarify xs_open() semantics"): > > Added to the xs_open() comments in xenstore.h. The text has been > > taken almost verbatim from a xen-devel email by Ian Campbell, > > and confirmed as accura

Re: [Xen-devel] xl pci-attach silently fails the first time

2014-12-01 Thread Konrad Rzeszutek Wilk
On Mon, Dec 01, 2014 at 02:32:44PM +0100, Olaf Hering wrote: > On Mon, Dec 01, Olaf Hering wrote: > > > # xl pci-assignable-add 01:10.0 > > # xl pci-assignable-list > > :01:10.0 > > # xl create -f domU.cfg > > # xl console domU > > ## lspci gives just emulated PCI devices > > ttyS0:Rescue:~ #

Re: [Xen-devel] [PATCH v4 04/10] x86: paravirt: Wrap initialization of set_iopl_mask in a macro

2014-12-01 Thread Konrad Rzeszutek Wilk
On Sun, Nov 02, 2014 at 09:32:20AM -0800, Josh Triplett wrote: > This will allow making set_iopl_mask optional later. > > Signed-off-by: Josh Triplett Reviewed-by: Konrad Rzeszutek Wilk > --- > arch/x86/include/asm/paravirt_types.h | 1 + > arch/x86/kernel/paravirt.c| 2 +- > arch/

Re: [Xen-devel] Q77 IGD instantly crashes on xen-pciback bind.

2014-12-01 Thread Konrad Rzeszutek Wilk
On Fri, Nov 28, 2014 at 08:00:40PM -0600, Dr. Greg Wettstein wrote: > On Nov 27, 12:11pm, Sander Eikelenboom wrote: > } Subject: Re: [Xen-devel] Q77 IGD instantly crashes on xen-pciback bind. > > Hi, hope the week has gone well for everyone. > > > > So we are obviously working with qemu-dm-tradit

Re: [Xen-devel] [PATCH v4 7/7] xen/pciback: Restore configuration space when detaching from a guest.

2014-12-01 Thread Konrad Rzeszutek Wilk
On Mon, Dec 01, 2014 at 02:14:56PM +, David Vrabel wrote: > On 21/11/14 22:17, Konrad Rzeszutek Wilk wrote: > > The commit "xen/pciback: Don't deadlock when unbinding." was using > > the version of pci_reset_function which would lock the device lock. > > That is no good as we can dead-lock. As

Re: [Xen-devel] [PATCH] fix segfault in xl migrate --debug

2014-12-01 Thread Konrad Rzeszutek Wilk
On Fri, Nov 28, 2014 at 12:09:41PM +, Ian Campbell wrote: > On Wed, 2014-11-26 at 21:19 +, Andrew Cooper wrote: > > On 26/11/2014 19:54, M A Young wrote: > > > > > If differences are found during the verification phase of xl migrate > > > --debug then it is likely to crash with a segfault

Re: [Xen-devel] [PATCH for-4.5 2/3] python/xc: Fix multiple issues in pyxc_readconsolering()

2014-12-01 Thread Konrad Rzeszutek Wilk
On Fri, Nov 28, 2014 at 11:38:52AM +, Ian Campbell wrote: > On Thu, 2014-11-27 at 12:34 +, Andrew Cooper wrote: > > Don't leak a 16k allocation if PyArg_ParseTupleAndKeywords() or the first > > xc_readconsolering() fail. It is trivial to run throught the processes > > memory > > by repeat

Re: [Xen-devel] [PATCH for-4.5 3/3] python/xs: Correct the indirection of the NULL xshandle() check

2014-12-01 Thread Konrad Rzeszutek Wilk
On Thu, Nov 27, 2014 at 12:34:34PM +, Andrew Cooper wrote: > The code now now matches its comment, and will actually catch the case of a > bad xs handle. > > Signed-off-by: Andrew Cooper > Coverity-ID: 1055948 > CC: Ian Campbell > CC: Ian Jackson > CC: Wei Liu > CC: Xen Coverity Team Rel

Re: [Xen-devel] [PATCH] libxl: Don't derefence null new_name pointer in libxl_domain_rename()

2014-12-01 Thread Konrad Rzeszutek Wilk
On Mon, Dec 01, 2014 at 02:50:56PM +, Ian Campbell wrote: > On Mon, 2014-12-01 at 14:27 +, Euan Harris wrote: > > libxl__domain_rename() unconditionally dereferences its new_name > > parameter, to check whether it is an empty string. Add a check to > > avoid a segfault if new_name is null

[Xen-devel] Time dilation in XEN 4.2

2014-12-01 Thread leon zawodowiec
Hello, is it possible to implement time dilation in XEN 4.2 without modyfing kernel(also hints are welcome)? Thank you for replies. ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

[Xen-devel] [PATCH for-4.5] call xc_domain_irq_permission before xc_domain_irq_permission

2014-12-01 Thread Stefano Stabellini
xc_physdev_unmap_pirq might revoke the permission to map the irq from the domain causing the following xc_domain_irq_permission call to fail and return error (domain_pirq_to_irq returns 0). Call xc_domain_irq_permission first to prevent this from happening (xc_physdev_unmap_pirq calls irq_deny_acc

[Xen-devel] [rumpuserxen test] 31970: regressions - FAIL

2014-12-01 Thread xen . org
flight 31970 rumpuserxen real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/31970/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-rumpuserxen-i386 5 xen-boot fail REGR. vs. 31900 version targeted for

Re: [Xen-devel] [PATCH 1/2] xen-detect: fix strict-aliasing compilation warning.

2014-12-01 Thread John Haxby
> On 1 Dec 2014, at 17:15, Andrew Cooper wrote: > > On 01/12/14 14:37, John Haxby wrote: >> With gcc 4.8.3, compiling xen-detect gives a compilation warning if >> you're optimising: >> >> $ cc -Wall -Os xen-detect.c >> xen-detect.c: In function ‘check_for_xen’: >> xen-detect.c:65:9: warning: de

Re: [Xen-devel] [PATCH] xen: privcmd: schedule() after private hypercall when non CONFIG_PREEMPT

2014-12-01 Thread David Vrabel
On 01/12/14 16:19, Luis R. Rodriguez wrote: > On Mon, Dec 01, 2014 at 03:54:24PM +, David Vrabel wrote: >> On 01/12/14 15:44, Luis R. Rodriguez wrote: >>> On Mon, Dec 1, 2014 at 10:18 AM, David Vrabel >>> wrote: On 01/12/14 15:05, Luis R. Rodriguez wrote: > On Mon, Dec 01, 2014 at 11

[Xen-devel] [xen-unstable test] 31963: tolerable FAIL

2014-12-01 Thread xen . org
flight 31963 xen-unstable real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/31963/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-amd64-i386-pair17 guest-migrate/src_host/dst_host fail like 31932 Tests which did not succeed,

Re: [Xen-devel] PV DomU running linux 3.17.3 causing xen-netback fatal error in Dom0

2014-12-01 Thread David Vrabel
On 01/12/14 14:22, David Vrabel wrote: > On 28/11/14 15:19, Anthony Wright wrote: >> We have a 64 bit PV DomU that we recently upgraded from linux 3.3.2 to >> 3.17.3 running on a 64 bit 3.17.3 Dom0 with Xen 4.4.0. >> >> Shortly after the upgrade we started to lose network connectivity to the >> Dom

Re: [Xen-devel] [PATCH] xen: privcmd: schedule() after private hypercall when non CONFIG_PREEMPT

2014-12-01 Thread Luis R. Rodriguez
On Mon, Dec 01, 2014 at 06:07:48PM +0100, Juergen Gross wrote: > On 12/01/2014 05:19 PM, Luis R. Rodriguez wrote: >> On Mon, Dec 01, 2014 at 03:54:24PM +, David Vrabel wrote: >>> On 01/12/14 15:44, Luis R. Rodriguez wrote: On Mon, Dec 1, 2014 at 10:18 AM, David Vrabel wrote: > O

Re: [Xen-devel] [PATCH 1/2] xen-detect: fix strict-aliasing compilation warning.

2014-12-01 Thread Andrew Cooper
On 01/12/14 14:37, John Haxby wrote: > With gcc 4.8.3, compiling xen-detect gives a compilation warning if > you're optimising: > > $ cc -Wall -Os xen-detect.c > xen-detect.c: In function ‘check_for_xen’: > xen-detect.c:65:9: warning: dereferencing type-punned pointer will break > strict-aliasing r

Re: [Xen-devel] [PATCH] xen: privcmd: schedule() after private hypercall when non CONFIG_PREEMPT

2014-12-01 Thread Juergen Gross
On 12/01/2014 05:19 PM, Luis R. Rodriguez wrote: On Mon, Dec 01, 2014 at 03:54:24PM +, David Vrabel wrote: On 01/12/14 15:44, Luis R. Rodriguez wrote: On Mon, Dec 1, 2014 at 10:18 AM, David Vrabel wrote: On 01/12/14 15:05, Luis R. Rodriguez wrote: On Mon, Dec 01, 2014 at 11:11:43AM +

Re: [Xen-devel] Buggy interaction of live migration and p2m updates

2014-12-01 Thread Andrew Cooper
On 01/12/14 14:38, David Vrabel wrote: > On 20/11/14 18:28, Andrew Cooper wrote: >> 1) Freeze the guests p2m during live migrate >> 2) Deep p2m dirty tracking >> 3) Eagerly check for p2m structure changes. >> 4) Request p2m structure change updates from the guest >> Proposed solution: A combinatio

Re: [Xen-devel] [Patch V2] expand x86 arch_shared_info to support linear p2m list

2014-12-01 Thread Jürgen Groß
On 12/01/2014 05:28 PM, Jan Beulich wrote: On 01.12.14 at 15:33, wrote: On 12/01/2014 02:37 PM, Jan Beulich wrote: On 01.12.14 at 14:11, wrote: On 12/01/2014 12:29 PM, Jan Beulich wrote: On 01.12.14 at 12:19, wrote: On 01/12/14 10:15, Jan Beulich wrote: On 01.12.14 at 10:29, wrote: The

Re: [Xen-devel] [Patch V2] expand x86 arch_shared_info to support linear p2m list

2014-12-01 Thread Jan Beulich
>>> On 01.12.14 at 15:33, wrote: > On 12/01/2014 02:37 PM, Jan Beulich wrote: > On 01.12.14 at 14:11, wrote: >>> On 12/01/2014 12:29 PM, Jan Beulich wrote: >>> On 01.12.14 at 12:19, wrote: > On 01/12/14 10:15, Jan Beulich wrote: > On 01.12.14 at 10:29, wrote: >>> The x86

Re: [Xen-devel] [PATCH] xen: privcmd: schedule() after private hypercall when non CONFIG_PREEMPT

2014-12-01 Thread Luis R. Rodriguez
On Mon, Dec 01, 2014 at 03:54:24PM +, David Vrabel wrote: > On 01/12/14 15:44, Luis R. Rodriguez wrote: > > On Mon, Dec 1, 2014 at 10:18 AM, David Vrabel > > wrote: > >> On 01/12/14 15:05, Luis R. Rodriguez wrote: > >>> On Mon, Dec 01, 2014 at 11:11:43AM +, David Vrabel wrote: > On 2

[Xen-devel] [PATCH v2 18/19] libxlutil: nested list support

2014-12-01 Thread Wei Liu
This is done with three major changes: 1. Rework internal representation of setting. 2. Extend grammar of parser. 3. Introduce new APIs. New APIs introduced: 1. xlu_cfg_value_type 2. xlu_cfg_value_get_string 3. xlu_cfg_value_get_list 4. xlu_cfg_get_listitem2 Previous APIs work as before. Signed-

[Xen-devel] [PATCH v2 12/19] hvmloader: retrieve vNUMA information from hypervisor

2014-12-01 Thread Wei Liu
Hvmloader issues XENMEM_get_vnumainfo hypercall and stores the information retrieved in scratch space for later use. Signed-off-by: Wei Liu Cc: Jan Beulich --- tools/firmware/hvmloader/Makefile|2 +- tools/firmware/hvmloader/hvmloader.c |3 ++ tools/firmware/hvmloader/vnuma.c |

[Xen-devel] [PATCH v2 15/19] libxc: allocate memory with vNUMA information for HVM guest

2014-12-01 Thread Wei Liu
And then returns low memory end, high memory end and mmio start to caller. Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson Cc: Dario Faggioli Cc: Elena Ufimtseva --- tools/libxc/include/xenguest.h |7 ++ tools/libxc/xc_hvm_build_x86.c | 224 ++

[Xen-devel] [PATCH v2 17/19] libxl: disallow memory relocation when vNUMA is enabled

2014-12-01 Thread Wei Liu
Disallow memory relocation when vNUMA is enabled, because relocated memory ends up off node. Further more, even if we dynamically expand node coverage in hvmloader, low memory and high memory may reside in different physical nodes, blindly relocating low memory to high memory gives us a sub-optimal

[Xen-devel] [PATCH v2 11/19] xen: handle XENMEMF_get_vnumainfo in compat_memory_op

2014-12-01 Thread Wei Liu
Signed-off-by: Wei Liu Cc: Jan Beulich --- xen/common/compat/memory.c | 38 ++ xen/include/xlat.lst |2 ++ 2 files changed, 40 insertions(+) diff --git a/xen/common/compat/memory.c b/xen/common/compat/memory.c index 06c90be..58cb847 100644 --- a/x

[Xen-devel] [PATCH v2 16/19] libxl: build, check and pass vNUMA info to Xen for HVM guest

2014-12-01 Thread Wei Liu
Libxc has more involvement in building vmemranges in HVM case. The building of vmemranges is placed after xc_hvm_build returns, because it relies on memory hole information provided by xc_hvm_build. Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson Cc: Dario Faggioli Cc: Elena Ufimtseva

[Xen-devel] [PATCH v2 10/19] libxl: build, check and pass vNUMA info to Xen for PV guest

2014-12-01 Thread Wei Liu
Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson Cc: Dario Faggioli Cc: Elena Ufimtseva --- tools/libxl/libxl_dom.c | 71 +++ 1 file changed, 71 insertions(+) diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c index 74ea84b..73

[Xen-devel] [PATCH v2 14/19] hvmloader: construct SLIT

2014-12-01 Thread Wei Liu
Signed-off-by: Wei Liu Cc: Jan Beulich --- Changes in v2: 1. Adapt to new vNUMA retrieval routine. 2. Move SLIT very late in secondary table build. --- tools/firmware/hvmloader/acpi/acpi2_0.h |8 +++ tools/firmware/hvmloader/acpi/build.c | 40 ++- 2 files

[Xen-devel] [PATCH v2 13/19] hvmloader: construct SRAT

2014-12-01 Thread Wei Liu
Signed-off-by: Wei Liu Cc: Jan Beulich --- Changes in v2: 1. Remove explicit zero initializers. 2. Adapt to new vNUMA retrieval routine. 3. Move SRAT very late in secondary table build. --- tools/firmware/hvmloader/acpi/acpi2_0.h | 53 +++ tools/firmware/hvmloader/acpi/buil

[Xen-devel] [PATCH v2 19/19] xl: vNUMA support

2014-12-01 Thread Wei Liu
This patch includes configuration options parser and documentation. Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson Cc: Dario Faggioli Cc: Elena Ufimtseva --- Changes in v2: 1. Make vnuma_vdistances mandatory. 2. Use nested list to specify vdistances. 3. Update documentation. --- doc

Re: [Xen-devel] [PATCH] xen: privcmd: schedule() after private hypercall when non CONFIG_PREEMPT

2014-12-01 Thread David Vrabel
On 01/12/14 15:44, Luis R. Rodriguez wrote: > On Mon, Dec 1, 2014 at 10:18 AM, David Vrabel wrote: >> On 01/12/14 15:05, Luis R. Rodriguez wrote: >>> On Mon, Dec 01, 2014 at 11:11:43AM +, David Vrabel wrote: On 27/11/14 18:36, Luis R. Rodriguez wrote: > On Thu, Nov 27, 2014 at 07:36:3

Re: [Xen-devel] [PATCH] xen: privcmd: schedule() after private hypercall when non CONFIG_PREEMPT

2014-12-01 Thread Luis R. Rodriguez
On Mon, Dec 01, 2014 at 03:42:33PM +0100, Juergen Gross wrote: > On 12/01/2014 02:32 PM, Luis R. Rodriguez wrote: >> On Mon, Dec 01, 2014 at 11:01:18AM +, David Vrabel wrote: >>> On 28/11/14 04:49, Juergen Gross wrote: On 11/27/2014 07:50 PM, Andrew Cooper wrote: > > XenServer uses

Re: [Xen-devel] PV DomU running linux 3.17.3 causing xen-netback fatal error in Dom0

2014-12-01 Thread Anthony Wright
> On 28/11/14 15:19, Anthony Wright wrote: > > We have a 64 bit PV DomU that we recently upgraded from linux 3.3.2 > > to > > 3.17.3 running on a 64 bit 3.17.3 Dom0 with Xen 4.4.0. > > > > Shortly after the upgrade we started to lose network connectivity to > > the > > DomU a few times a day that r

Re: [Xen-devel] [Qemu-devel] [PATCH] increase maxmem before calling xc_domain_populate_physmap

2014-12-01 Thread Stefano Stabellini
On Mon, 1 Dec 2014, Don Slutz wrote: > On 11/27/14 05:48, Stefano Stabellini wrote: > > On Wed, 26 Nov 2014, Don Slutz wrote: > > > On 11/26/14 13:17, Stefano Stabellini wrote: > > > > On Tue, 25 Nov 2014, Andrew Cooper wrote: > > > > > On 25/11/14 17:45, Stefano Stabellini wrote: > > > > > > Incre

Re: [Xen-devel] [PATCH] xen: privcmd: schedule() after private hypercall when non CONFIG_PREEMPT

2014-12-01 Thread Luis R. Rodriguez
On Mon, Dec 1, 2014 at 10:18 AM, David Vrabel wrote: > On 01/12/14 15:05, Luis R. Rodriguez wrote: >> On Mon, Dec 01, 2014 at 11:11:43AM +, David Vrabel wrote: >>> On 27/11/14 18:36, Luis R. Rodriguez wrote: On Thu, Nov 27, 2014 at 07:36:31AM +0100, Juergen Gross wrote: > On 11/26/201

[Xen-devel] [PATCH v2 00/19] Virtual NUMA for PV and HVM

2014-12-01 Thread Wei Liu
Hi all This is version 2 of this series. This patch series implements virtual NUMA support for both PV and HVM guest. That is, admin can configure via libxl what virtual NUMA topology the guest sees. This is the stage 1 (basic vNUMA support) and part of stage 2 (vNUMA-ware ballooning, hypervisor

[Xen-devel] [PATCH v2 01/19] xen: dump vNUMA information with debug key "u"

2014-12-01 Thread Wei Liu
Signed-off-by: Elena Ufimsteva Signed-off-by: Wei Liu Cc: Jan Beulich --- Changes in v2: 1. Use unsigned int for loop vars. 2. Use strlcpy. 3. Properly align output. --- xen/arch/x86/numa.c | 47 ++- 1 file changed, 46 insertions(+), 1 deletion(-)

[Xen-devel] [PATCH v2 06/19] libxl: add vmemrange to libxl__domain_build_state

2014-12-01 Thread Wei Liu
Currently we haven't exported vmemrange interface to libxl user. Vmemranges are generated during domain build. Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson Cc: Dario Faggioli Cc: Elena Ufimtseva --- tools/libxl/libxl_internal.h |3 +++ 1 file changed, 3 insertions(+) diff --g

[Xen-devel] [PATCH v2 09/19] libxl: functions to build vmemranges for PV guest

2014-12-01 Thread Wei Liu
One vmemrange is generated for each vnode. And for those guests who care about machine E820 map, vmemranges are further split to accommodate memory holes. Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson Cc: Dario Faggioli Cc: Elena Ufimtseva --- tools/libxl/libxl_arch.h |6 ++

[Xen-devel] [PATCH v2 05/19] libxl: introduce vNUMA types

2014-12-01 Thread Wei Liu
Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson Cc: Dario Faggioli Cc: Elena Ufimtseva --- tools/libxl/libxl_types.idl |9 + 1 file changed, 9 insertions(+) diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl index f7fc695..75855fb 100644 --- a/tools/li

[Xen-devel] [PATCH v2 07/19] libxl: introduce libxl__vnuma_config_check

2014-12-01 Thread Wei Liu
This vNUMA function (and future ones) is placed in a new file called libxl_vnuma.c Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson Cc: Dario Faggioli Cc: Elena Ufimtseva --- tools/libxl/Makefile |2 +- tools/libxl/libxl_internal.h |5 ++ tools/libxl/libxl_vnuma.c|

[Xen-devel] [PATCH v2 04/19] libxl: add emacs local variables in libxl_{x86, arm}.c

2014-12-01 Thread Wei Liu
Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson Cc: Dario Faggioli Cc: Elena Ufimtseva --- tools/libxl/libxl_arm.c |8 tools/libxl/libxl_x86.c |8 2 files changed, 16 insertions(+) diff --git a/tools/libxl/libxl_arm.c b/tools/libxl/libxl_arm.c index 448ac07.

[Xen-devel] [PATCH v2 03/19] libxc: allocate memory with vNUMA information for PV guest

2014-12-01 Thread Wei Liu
Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson Cc: Dario Faggioli Cc: Elena Ufimtseva --- tools/libxc/include/xc_dom.h |5 +++ tools/libxc/xc_dom_x86.c | 72 +++--- tools/libxc/xc_private.h |2 ++ 3 files changed, 68 insertions(+)

[Xen-devel] [PATCH v2 02/19] xen: make two memory hypercalls vNUMA-aware

2014-12-01 Thread Wei Liu
Make XENMEM_increase_reservation and XENMEM_populate_physmap vNUMA-aware. That is, if guest requests Xen to allocate memory for specific vnode, Xen can translate vnode to pnode using vNUMA information of that guest. XENMEMF_vnode is introduced for the guest to mark the node number is in fact virt

[Xen-devel] [PATCH v2 08/19] libxl: x86: factor out e820_host_sanitize

2014-12-01 Thread Wei Liu
This function gets the machine E820 map and sanitize it according to PV guest configuration. This will be used in later patch. Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson Cc: Dario Faggioli Cc: Elena Ufimtseva --- tools/libxl/libxl_x86.c | 31 ++- 1

Re: [Xen-devel] [PATCH] xen: privcmd: schedule() after private hypercall when non CONFIG_PREEMPT

2014-12-01 Thread David Vrabel
On 01/12/14 15:05, Luis R. Rodriguez wrote: > On Mon, Dec 01, 2014 at 11:11:43AM +, David Vrabel wrote: >> On 27/11/14 18:36, Luis R. Rodriguez wrote: >>> On Thu, Nov 27, 2014 at 07:36:31AM +0100, Juergen Gross wrote: On 11/26/2014 11:26 PM, Luis R. Rodriguez wrote: > From: "Luis R. Ro

Re: [Xen-devel] [PATCH] xen: privcmd: schedule() after private hypercall when non CONFIG_PREEMPT

2014-12-01 Thread Luis R. Rodriguez
On Mon, Dec 01, 2014 at 11:11:43AM +, David Vrabel wrote: > On 27/11/14 18:36, Luis R. Rodriguez wrote: > > On Thu, Nov 27, 2014 at 07:36:31AM +0100, Juergen Gross wrote: > >> On 11/26/2014 11:26 PM, Luis R. Rodriguez wrote: > >>> From: "Luis R. Rodriguez" > >>> > >>> Some folks had reported t

Re: [Xen-devel] [PATCH] libxl: Don't derefence null new_name pointer in libxl_domain_rename()

2014-12-01 Thread Ian Campbell
On Mon, 2014-12-01 at 14:27 +, Euan Harris wrote: > libxl__domain_rename() unconditionally dereferences its new_name > parameter, to check whether it is an empty string. Add a check to > avoid a segfault if new_name is null. > > Signed-off-by: Euan Harris Acked-by: Ian Campbell I think t

Re: [Xen-devel] xl pci-attach silently fails the first time

2014-12-01 Thread Sander Eikelenboom
Monday, December 1, 2014, 3:34:09 PM, you wrote: > On Mon, Dec 01, Sander Eikelenboom wrote: >> Hmm the wiki also still mentions it: >> http://wiki.xen.org/wiki/Xen_PCI_Passthrough >> >> It was the ability with xend + qemu-trad to be able to specify the slot to >> use in the guest for the pci

Re: [Xen-devel] xl pci-attach silently fails the first time

2014-12-01 Thread Olaf Hering
On Mon, Dec 01, Ian Campbell wrote: > On Mon, 2014-12-01 at 15:34 +0100, Olaf Hering wrote: > > On Mon, Dec 01, Sander Eikelenboom wrote: > > > Hmm the wiki also still mentions it: > > > http://wiki.xen.org/wiki/Xen_PCI_Passthrough > > > > > > It was the ability with xend + qemu-trad to be able

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

2014-12-01 Thread xen . org
flight 31965 xen-4.3-testing real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/31965/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-pair 17 guest-migrate/src_host/dst_host fail REGR. vs. 31811 Tests which are f

Re: [Xen-devel] [PATCH] xen: privcmd: schedule() after private hypercall when non CONFIG_PREEMPT

2014-12-01 Thread Juergen Gross
On 12/01/2014 02:32 PM, Luis R. Rodriguez wrote: On Mon, Dec 01, 2014 at 11:01:18AM +, David Vrabel wrote: On 28/11/14 04:49, Juergen Gross wrote: On 11/27/2014 07:50 PM, Andrew Cooper wrote: XenServer uses https://github.com/xenserver/linux-3.x.pg/blob/master/master/0001-x86-xen-allow-p

Re: [Xen-devel] xl pci-attach silently fails the first time

2014-12-01 Thread Ian Campbell
On Mon, 2014-12-01 at 15:34 +0100, Olaf Hering wrote: > On Mon, Dec 01, Sander Eikelenboom wrote: > > > Hmm the wiki also still mentions it: > > http://wiki.xen.org/wiki/Xen_PCI_Passthrough > > > > It was the ability with xend + qemu-trad to be able to specify the slot to > > use in the guest f

Re: [Xen-devel] Buggy interaction of live migration and p2m updates

2014-12-01 Thread David Vrabel
On 20/11/14 18:28, Andrew Cooper wrote: > > 1) Freeze the guests p2m during live migrate > 2) Deep p2m dirty tracking > 3) Eagerly check for p2m structure changes. > 4) Request p2m structure change updates from the guest > Proposed solution: A combination of 2, 3 and 4. Option 5: don't change a

[Xen-devel] [PATCH 1/2] xen-detect: fix strict-aliasing compilation warning.

2014-12-01 Thread John Haxby
With gcc 4.8.3, compiling xen-detect gives a compilation warning if you're optimising: $ cc -Wall -Os xen-detect.c xen-detect.c: In function ‘check_for_xen’: xen-detect.c:65:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(uint32_t *)(si

[Xen-devel] Two miscellenous xen-detect patches.

2014-12-01 Thread John Haxby
I needed xen-detect this morning so as usual I pulled it from git and it didn't work and it threw a compilation warning. Thinking the problem was the strict-aliasing warning (patch 1) I fixed that and ... it still didn't work. Well, that's not entirely true, it was just over-enthusiastically cla

[Xen-devel] [PATCH 2/2] xen-detect: check for XEN_PV before XEN_HVM

2014-12-01 Thread John Haxby
At some stage, the cpuid instruction used to detect a xen hvm domain also started working in a pv domain so pv domains were being identified as hvm (dom0 excepted). Change the order so that pv is tested for first. Signed-off-by: John Haxby --- tools/misc/xen-detect.c | 12 ++-- 1 file c

Re: [Xen-devel] xl pci-attach silently fails the first time

2014-12-01 Thread Olaf Hering
On Mon, Dec 01, Sander Eikelenboom wrote: > Hmm the wiki also still mentions it: > http://wiki.xen.org/wiki/Xen_PCI_Passthrough > > It was the ability with xend + qemu-trad to be able to specify the slot to > use in the guest for the pci device. > > See docs/misc/vtd.txt .. that seems it has n

Re: [Xen-devel] [Patch V2] expand x86 arch_shared_info to support linear p2m list

2014-12-01 Thread Juergen Gross
On 12/01/2014 02:37 PM, Jan Beulich wrote: On 01.12.14 at 14:11, wrote: On 12/01/2014 12:29 PM, Jan Beulich wrote: On 01.12.14 at 12:19, wrote: On 01/12/14 10:15, Jan Beulich wrote: On 01.12.14 at 10:29, wrote: The x86 struct arch_shared_info field pfn_to_mfn_frame_list_list currently con

[Xen-devel] [PATCH] libxl: Don't derefence null new_name pointer in libxl_domain_rename()

2014-12-01 Thread Euan Harris
libxl__domain_rename() unconditionally dereferences its new_name parameter, to check whether it is an empty string. Add a check to avoid a segfault if new_name is null. Signed-off-by: Euan Harris --- tools/libxl/libxl.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --g

Re: [Xen-devel] PV DomU running linux 3.17.3 causing xen-netback fatal error in Dom0

2014-12-01 Thread David Vrabel
On 28/11/14 15:19, Anthony Wright wrote: > We have a 64 bit PV DomU that we recently upgraded from linux 3.3.2 to > 3.17.3 running on a 64 bit 3.17.3 Dom0 with Xen 4.4.0. > > Shortly after the upgrade we started to lose network connectivity to the > DomU a few times a day that required a reboot to

[Xen-devel] [PATCH v2] tools/Rules.mk: Don't optimize debug builds; add macro debugging information

2014-12-01 Thread Euan Harris
Tools debug builds are built with optimization level -O1, inherited from the CFLAGS definition in StdGNU.mk. Optimizations confuse the debugger, and the comment justifying -O1 in StdGNU.mk should not apply for a userspace library. Disable optimization by appending -O0 to CFLAGS, which overrides

Re: [Xen-devel] [PATCH v4 7/7] xen/pciback: Restore configuration space when detaching from a guest.

2014-12-01 Thread David Vrabel
On 21/11/14 22:17, Konrad Rzeszutek Wilk wrote: > The commit "xen/pciback: Don't deadlock when unbinding." was using > the version of pci_reset_function which would lock the device lock. > That is no good as we can dead-lock. As such we swapped to using > the lock-less version and requiring that th

Re: [Xen-devel] [PATCH] xen-netfront: Fix handling packets on compound pages with skb_linearize

2014-12-01 Thread Stefan Bader
On 01.12.2014 14:59, Zoltan Kiss wrote: > > > On 01/12/14 13:36, David Vrabel wrote: >> On 01/12/14 08:55, Stefan Bader wrote: >>> On 11.08.2014 19:32, Zoltan Kiss wrote: There is a long known problem with the netfront/netback interface: if the guest tries to send a packet which c

Re: [Xen-devel] [PATCH] xen-netfront: Fix handling packets on compound pages with skb_linearize

2014-12-01 Thread Zoltan Kiss
On 01/12/14 13:36, David Vrabel wrote: On 01/12/14 08:55, Stefan Bader wrote: On 11.08.2014 19:32, Zoltan Kiss wrote: There is a long known problem with the netfront/netback interface: if the guest tries to send a packet which constitues more than MAX_SKB_FRAGS + 1 ring slots, it gets dropped

Re: [Xen-devel] xl pci-attach silently fails the first time

2014-12-01 Thread Sander Eikelenboom
Monday, December 1, 2014, 2:42:11 PM, you wrote: > On Mon, Dec 01, Olaf Hering wrote: >> > # xl pci-attach domU :01:10.0 > "xl pci-attach -h" mentions [Virtual Slot], but the code does not seem > to handle an additional parameter, pciattach() ignores *vs. > What is the "Virtual Slot", why

[Xen-devel] xorg crash on Fedora 21 xen hvm domUs with qxl (log with backtrace included)

2014-12-01 Thread Fabio Fantoni
On my latest test with xen 4.5 and qemu 2.2 (from git) linux hvm domU (Fedora 21) has no more crashed without any useful information in log but was crashed only xorg on start: [20.653] (EE) [20.653] (EE) Backtrace: [20.668] (EE) 0: /usr/libexec/Xorg.bin (OsLookupColor+0x119) [0x59

Re: [Xen-devel] xl pci-attach silently fails the first time

2014-12-01 Thread Olaf Hering
On Mon, Dec 01, Olaf Hering wrote: > > # xl pci-attach domU :01:10.0 "xl pci-attach -h" mentions [Virtual Slot], but the code does not seem to handle an additional parameter, pciattach() ignores *vs. What is the "Virtual Slot", why is it ignored? Olaf _

Re: [Xen-devel] [PATCH] xen-netfront: Fix handling packets on compound pages with skb_linearize

2014-12-01 Thread David Vrabel
On 01/12/14 08:55, Stefan Bader wrote: > On 11.08.2014 19:32, Zoltan Kiss wrote: >> There is a long known problem with the netfront/netback interface: if the >> guest >> tries to send a packet which constitues more than MAX_SKB_FRAGS + 1 ring >> slots, >> it gets dropped. The reason is that netba

Re: [Xen-devel] [Patch V2] expand x86 arch_shared_info to support linear p2m list

2014-12-01 Thread Jan Beulich
>>> On 01.12.14 at 14:11, wrote: > On 12/01/2014 12:29 PM, Jan Beulich wrote: > On 01.12.14 at 12:19, wrote: >>> On 01/12/14 10:15, Jan Beulich wrote: >>> On 01.12.14 at 10:29, wrote: > The x86 struct arch_shared_info field pfn_to_mfn_frame_list_list > currently contains the mfn

Re: [Xen-devel] xl pci-attach silently fails the first time

2014-12-01 Thread Olaf Hering
On Mon, Dec 01, Olaf Hering wrote: > # xl pci-assignable-add 01:10.0 > # xl pci-assignable-list > :01:10.0 > # xl create -f domU.cfg > # xl console domU > ## lspci gives just emulated PCI devices ttyS0:Rescue:~ # lspci 00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev

Re: [Xen-devel] [Qemu-devel] [PATCH] increase maxmem before calling xc_domain_populate_physmap

2014-12-01 Thread Don Slutz
On 11/27/14 05:48, Stefano Stabellini wrote: On Wed, 26 Nov 2014, Don Slutz wrote: On 11/26/14 13:17, Stefano Stabellini wrote: On Tue, 25 Nov 2014, Andrew Cooper wrote: On 25/11/14 17:45, Stefano Stabellini wrote: Increase maxmem before calling xc_domain_populate_physmap_exact to avoid the r

Re: [Xen-devel] [PATCH] xen: privcmd: schedule() after private hypercall when non CONFIG_PREEMPT

2014-12-01 Thread Luis R. Rodriguez
On Mon, Dec 01, 2014 at 11:01:18AM +, David Vrabel wrote: > On 28/11/14 04:49, Juergen Gross wrote: > > On 11/27/2014 07:50 PM, Andrew Cooper wrote: > >> > >> XenServer uses > >> > >> https://github.com/xenserver/linux-3.x.pg/blob/master/master/0001-x86-xen-allow-privcmd-hypercalls-to-be-preem

Re: [Xen-devel] [PATCH] xen-netfront: Remove BUGs on paged skb data which crosses a page boundary

2014-12-01 Thread David Vrabel
On 26/11/14 17:28, David Miller wrote: > From: Seth Forshee > Date: Tue, 25 Nov 2014 20:28:24 -0600 > >> These BUGs can be erroneously triggered by frags which refer to >> tail pages within a compound page. The data in these pages may >> overrun the hardware page while still being contained withi

Re: [Xen-devel] [PATCH OSSTEST v3 00/19] add distro domU testing flight

2014-12-01 Thread Ian Campbell
On Mon, 2014-12-01 at 12:56 +, Ian Campbell wrote: > The exception to that good news is that sg-report-flight > --that-flight=NNN MMM doesn't seem to be considering failures in MMM > regressions vs NNN. e.g. test-amd64-i386-i386-daily-netboot-pvgrub > should appear as a regression from 31961 to

Re: [Xen-devel] Building 32-bit xen.efi for 32-bit EFI platforms

2014-12-01 Thread David Vrabel
On 24/11/14 14:59, Zhuan Chen wrote: > Hi, > > I am wondering whether it's possible to build 32-bit xen.efi for the > 32-bit EFI platform? One way of building xen.efi I learnt is to make > the binutils configured with the x86_64-pep emulation (according to > the document http://xenbits.xenproject.

Re: [Xen-devel] [Patch V2] expand x86 arch_shared_info to support linear p2m list

2014-12-01 Thread Juergen Gross
On 12/01/2014 12:29 PM, Jan Beulich wrote: On 01.12.14 at 12:19, wrote: On 01/12/14 10:15, Jan Beulich wrote: On 01.12.14 at 10:29, wrote: The x86 struct arch_shared_info field pfn_to_mfn_frame_list_list currently contains the mfn of the top level page frame of the 3 level p2m tree, which is

  1   2   >