Re: [Xen-devel] [PATCH Remus v2 01/10] tools/libxc: adjust the memory allocation for migration

2015-05-11 Thread Hongyang Yang
On 05/11/2015 07:50 PM, Ian Campbell wrote: On Fri, 2015-05-08 at 17:33 +0800, Yang Hongyang wrote: Move the memory allocation before the concrete live/nolive save in order to avoid the free/alloc memory loop when using Remus. Rename the to_send bitmap to dirty_bitmap. Doing the rename in a

[Xen-devel] 答复: 答复: 答复: about xenalyze

2015-05-11 Thread 蒋雄伟(蒋冲)
Each number means what ? Each number means what ? -邮件原件- 发件人: dunl...@gmail.com [mailto:dunl...@gmail.com] 代表 George Dunlap 发送时间: 2015年5月11日 18:05 收件人: 蒋雄伟(蒋冲) 抄送: xen-de...@lists.xensource.com; xen-devel@lists.xen.org 主题: Re: [Xen-devel] 答复: 答复: about xenalyze On Fri, M

[Xen-devel] 答复: 答复: 答复: about xenalyze

2015-05-11 Thread 蒋雄伟(蒋冲)
I try again with "-e 0xaf000", and run xenalyze --summary. The attached is the output. -邮件原件- 发件人: dunl...@gmail.com [mailto:dunl...@gmail.com] 代表 George Dunlap 发送时间: 2015年5月11日 18:05 收件人: 蒋雄伟(蒋冲) 抄送: xen-de...@lists.xensource.com; xen-devel@lists.xen.org 主题: Re: [Xen-devel] 答复: 答复: about

[Xen-devel] [ovmf test] 55270: regressions - FAIL

2015-05-11 Thread osstest service user
flight 55270 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/55270/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-freebsd10-amd64 13 guest-localmigrate fail REGR. vs. 53940 Regressions which are regard

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

2015-05-11 Thread osstest service user
flight 55269 linux-next real [real] http://logs.test-lab.xenproject.org/osstest/logs/55269/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl-credit2 6 xen-boot fail REGR. vs. 54095 Regressions which are

Re: [Xen-devel] [PATCH] xen-netfront: reset skb transport header before checksum

2015-05-11 Thread Eric Dumazet
On Mon, 2015-05-11 at 18:34 -0700, Venkat Venkatsubra wrote: > In ed1f50c3a ("net: add skb_checksum_setup") some checksum functions > were introduced in core. Subsequent change b5cf66cd1 ("xen-netfront: > use new skb_checksum_setup function") made use of those functions to > replace its own impleme

[Xen-devel] [PATCH] xen-netfront: reset skb transport header before checksum

2015-05-11 Thread Venkat Venkatsubra
In ed1f50c3a ("net: add skb_checksum_setup") some checksum functions were introduced in core. Subsequent change b5cf66cd1 ("xen-netfront: use new skb_checksum_setup function") made use of those functions to replace its own implementation. With that change ip_hdr() and tcp_hdr() were not pointing at

Re: [Xen-devel] [PATCH v6 2/6] Qemu-Xen-vTPM: Xen frontend driver infrastructure

2015-05-11 Thread Xu, Quan
> -Original Message- > From: xen-devel-boun...@lists.xen.org > [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of Stefano Stabellini > Sent: Friday, May 08, 2015 1:26 AM > To: Xu, Quan > Cc: wei.l...@citrix.com; stef...@linux.vnet.ibm.com; > stefano.stabell...@eu.citrix.com; qemu-de...

[Xen-devel] Does Xen unstable tree work?

2015-05-11 Thread Hao, Xudong
Hi, Xen unstable tree doesn't update for about one month, I saw staging tree has many new commit these days, how often does it merging? Does unstable tree still work? Best Regards, Xudong ___ Xen-devel mailing list Xen-devel@lists.xen.org http://l

Re: [Xen-devel] Regression due to "device property: Make it possible to use secondary firmware nodes" Re: Xen-unstable + linux 4.1-mergewindow: problems with PV guest pci passthrough: pcifront pci-0:

2015-05-11 Thread Rafael J. Wysocki
On Monday, May 11, 2015 11:20:29 AM Konrad Rzeszutek Wilk wrote: > On Tue, May 05, 2015 at 12:18:49AM +0200, Sander Eikelenboom wrote: > > Hello Sander, > > > > Monday, April 27, 2015, 5:48:00 PM, you wrote: > > > > > Hi David / Konrad, > > > > > Here the other problem i found, which is introduc

Re: [Xen-devel] [RFC PATCH v2 09/22] xen/arm: its: Add helper functions to decode ITS Command

2015-05-11 Thread Julien Grall
Hi, On 11/05/2015 15:36, Vijay Kilari wrote: On Mon, May 11, 2015 at 7:55 PM, Julien Grall wrote: On 11/05/15 15:25, Julien Grall wrote: Hi Vijay, On 11/05/15 15:14, Vijay Kilari wrote: On Wed, Apr 1, 2015 at 5:10 PM, Ian Campbell wrote: On Thu, 2015-03-19 at 20:07 +0530, vijay.kil...@gma

[Xen-devel] [qemu-mainline test] 55268: regressions - FAIL

2015-05-11 Thread osstest service user
flight 55268 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/55268/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemuu-win7-amd64 9 windows-install fail REGR. vs. 54832 Regressions which a

Re: [Xen-devel] Is: grub2-mkconfig detecting ELF files the multiboot2 header and using proper module. Was:Re: [PATCH 0/5] multiboot2: Enable EFI boot services usage in loaded images

2015-05-11 Thread Konrad Rzeszutek Wilk
> > and using some of that logic to inspect the Xen to find > > the MB2 header? > > > See grub-file tool. Possibly it's still only in next branch I see it. Thank you. I also see 'faf4a65e1e1ce1d822d251c1e4b53d96ec7faec5' Revert grub-file usage in grub-mkconfig. but not much of an explana

[Xen-devel] [linux-linus test] 55255: regressions - FAIL

2015-05-11 Thread osstest service user
flight 55255 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/55255/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl-multivcpu 6 xen-boot fail REGR. vs. 50329 test-armhf-armhf-xl-a

Re: [Xen-devel] xen-netfront sets partial checksum at wrong offset

2015-05-11 Thread Venkat Venkatsubra
> > Please CC the maintainers of the driver. You can get that from > 'scripts/get_maintainer.pl' > > I've done that for you. Thanks, Konrad. I am copying Wei too who had fixed the below problem earlier. It fixed the incorrect ip_hdr(). tcp_hdr() still needs to fixed. commit d554f73df6bc35ac8f6

Re: [Xen-devel] [libvirt test] 55257: regressions - FAIL

2015-05-11 Thread Ian Campbell
On Mon, 2015-05-11 at 10:36 -0600, Jim Fehlig wrote: > Ian Campbell wrote: > > On Mon, 2015-05-11 at 12:46 +, osstest service user wrote: > > > >> flight 55257 libvirt real [real] > >> http://logs.test-lab.xenproject.org/osstest/logs/55257/ > >> > >> Regressions :-( > >> > >> Tests which did

Re: [Xen-devel] [PATCH] xen/netback: Properly initialize credit_bytes

2015-05-11 Thread Wei Liu
On Mon, May 11, 2015 at 04:58:29PM +0100, Ross Lagerwall wrote: > Commit e9ce7cb6b107 ("xen-netback: Factor queue-specific data into queue > struct") introduced a regression when moving queue-specific data into > the queue struct by failing to set the credit_bytes field. This > prevented bandwidth

Re: [Xen-devel] Is: grub2-mkconfig detecting ELF files the multiboot2 header and using proper module. Was:Re: [PATCH 0/5] multiboot2: Enable EFI boot services usage in loaded images

2015-05-11 Thread Vladimir 'phcoder' Serbinenko
On May 11, 2015 6:26 PM, "Konrad Rzeszutek Wilk" wrote: > > On Mon, Feb 09, 2015 at 06:55:05PM +0100, Daniel Kiper wrote: > > Hi all, > > > > On Fri, Jan 30, 2015 at 06:59:23PM +0100, Daniel Kiper wrote: > > > Hi, > > > > > > This patch series enable EFI boot services usage > > > in loaded images

Re: [Xen-devel] [libvirt test] 55257: regressions - FAIL

2015-05-11 Thread Jim Fehlig
Ian Campbell wrote: > On Mon, 2015-05-11 at 12:46 +, osstest service user wrote: > >> flight 55257 libvirt real [real] >> http://logs.test-lab.xenproject.org/osstest/logs/55257/ >> >> Regressions :-( >> >> Tests which did not succeed and are blocking, >> including tests which could not be ru

Re: [Xen-devel] [PATCH v3] OSSTEST: introduce a raisin build test

2015-05-11 Thread Ian Campbell
On Mon, 2015-05-11 at 15:44 +0100, Stefano Stabellini wrote: > > > Changes in v2: > > > - set revision_* variables in mfi-common; > > > - in ts-raisin-build set the *_REVISION config options based on the > > > revision_* variables; > > > - in ts-raisin-build, call store_revision appropriately; >

[Xen-devel] Is: grub2-mkconfig detecting ELF files the multiboot2 header and using proper module. Was:Re: [PATCH 0/5] multiboot2: Enable EFI boot services usage in loaded images

2015-05-11 Thread Konrad Rzeszutek Wilk
On Mon, Feb 09, 2015 at 06:55:05PM +0100, Daniel Kiper wrote: > Hi all, > > On Fri, Jan 30, 2015 at 06:59:23PM +0100, Daniel Kiper wrote: > > Hi, > > > > This patch series enable EFI boot services usage > > in loaded images by multiboot2 protocol. > > Guys, do you have any comments on this patch

[Xen-devel] [PATCH v9 3/4] libxc: Provide set_xen_guest_handle_offset macro

2015-05-11 Thread Boris Ostrovsky
Add set_xen_guest_handle_offset() macro that can be used for setting xen_guest_handle to an offset into hypercall buffer. Signed-off-by: Boris Ostrovsky --- Changes in v9: * set_xen_guest_handle_offset() takes offset in terms of number of elements * Drop unnecessary '#undef set_xen_guest_handle_o

[Xen-devel] [PATCH v9 2/4] libxl/libxc: Move libxl_get_numainfo()'s hypercall buffer management to libxc

2015-05-11 Thread Boris Ostrovsky
xc_numainfo() is not expected to be used on a hot path and therefore hypercall buffer management can be pushed into libxc. This will simplify life for callers. Also update error logging macros. Signed-off-by: Boris Ostrovsky Acked-by: Ian Campbell --- tools/libxc/include/xenctrl.h |4 +

[Xen-devel] [PATCH v9 4/4] libxl: Add interface for querying hypervisor about PCI topology

2015-05-11 Thread Boris Ostrovsky
.. and use this new interface to display it along with CPU topology and NUMA information when 'xl info -n' command is issued The output will look like ... cpu_topology : cpu:coresocket node 0: 000 ... device topology: device node

[Xen-devel] [PATCH v9 0/4] Display IO topology when PXM data is available (plus some cleanup)

2015-05-11 Thread Boris Ostrovsky
Changes in v9: * Re-work patch 3 to make set_xen_guest_handle_offset() take buffer offset in number of elements, not bytes * Update error printing in patch 4. Changes in v8: * Change sysctl's pcitopo interface such that if device is not found then XEN_INVALID_DEV is returned in nodes array. Ch

[Xen-devel] [PATCH v9 1/4] libxl/libxc: Move libxl_get_cpu_topology()'s hypercall buffer management to libxc

2015-05-11 Thread Boris Ostrovsky
xc_cputopoinfo() is not expected to be used on a hot path and therefore hypercall buffer management can be pushed into libxc. This will simplify life for callers. Also update error reporting macros. Signed-off-by: Boris Ostrovsky Acked-by: Ian Campbell --- tools/libxc/include/xenctrl.h |

[Xen-devel] [PATCH] xen/netback: Properly initialize credit_bytes

2015-05-11 Thread Ross Lagerwall
Commit e9ce7cb6b107 ("xen-netback: Factor queue-specific data into queue struct") introduced a regression when moving queue-specific data into the queue struct by failing to set the credit_bytes field. This prevented bandwidth limiting from working. Initialize the field as it was done before multiq

[Xen-devel] [PATCH v2] tools: add configure --with-dumpdir=DIR option

2015-05-11 Thread Olaf Hering
The current base directory /var/xen/dump for domU dumps will be patched to /var/lib/xen/dump by most distros to follow FHS. This change does three things: - change the default from /var/xen/dump to /var/lib/xen/dump - provide a configure option to avoid patching the source. - update docs to ref

[Xen-devel] [PATCH v2 4/7] tools: replace private INCLUDEDIR with automake includedir

2015-05-11 Thread Olaf Hering
Reuse automake variable instead of inventing a private variable. The result of this command: git grep -wnl INCLUDEDIR | xargs sed -i 's@INCLUDEDIR@includedir@g' Signed-off-by: Olaf Hering Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- config/Paths.mk.in

[Xen-devel] [PATCH v2 2/7] tools: replace private BINDIR with automake bindir

2015-05-11 Thread Olaf Hering
Reuse automake variable instead of inventing a private variable. The result of this command: git grep -wnl BINDIR | xargs sed -i 's@BINDIR@bindir@g' Signed-off-by: Olaf Hering Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu Cc: George Dunlap --- Config.mk

[Xen-devel] [PATCH v2 1/7] tools: replace private SBINDIR with automake sbindir

2015-05-11 Thread Olaf Hering
Reuse automake variable instead of inventing a private variable. The result of this command: git grep -wnl SBINDIR | xargs sed -i 's@SBINDIR@sbindir@g' Signed-off-by: Olaf Hering Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu Cc: Mukesh Rathor Cc: Tim Deegan Cc: Danie

[Xen-devel] [PATCH v2 6/7] tools: replace private LIBDIR with automake libdir

2015-05-11 Thread Olaf Hering
Reuse automake variable instead of inventing a private variable. The result of this command: git grep -wnl LIBDIR | xargs sed -i 's@LIBDIR@libdir@g' Signed-off-by: Olaf Hering Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- Config.mk

[Xen-devel] [PATCH v2 7/7] tools: replace private DOCDIR with automake docdir

2015-05-11 Thread Olaf Hering
Reuse automake variable instead of inventing a private variable. The result of this command: git grep -wnl DOCDIR | xargs sed -i 's@DOCDIR@docdir@g' Signed-off-by: Olaf Hering Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu Cc: Samuel Thibault --- config/Paths.mk.in

[Xen-devel] [PATCH v2 3/7] tools: replace private PREFIX with automake prefix

2015-05-11 Thread Olaf Hering
Reuse automake variable instead of inventing a private variable. Only qemu-traditional expects PREFIX in environment, which is provided by buildmakevars2shellvars. Signed-off-by: Olaf Hering Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- Config.mk | 6 +++--

[Xen-devel] [PATCH v2 0/7] tools: remove private Makefile variables

2015-05-11 Thread Olaf Hering
Replace all private variables in Makefiles with automake variables. This series is based on f48218fd2d35e274ef58caee889aecd6610c8cb6. changes between v1 and v2: - rebase to staging - update description of each patch Olaf Olaf Hering (7): tools: replace private SBINDIR with automake sbindir

[Xen-devel] [PATCH v2 5/7] tools: replace private MANDIR with automake mandir

2015-05-11 Thread Olaf Hering
Reuse automake variable instead of inventing a private variable. The result of this command: git grep -wnl MANDIR | xargs sed -i 's@MANDIR@mandir@g' Signed-off-by: Olaf Hering Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- config/Paths.mk.in | 5 ++--- docs/Makefil

[Xen-devel] Regression due to "device property: Make it possible to use secondary firmware nodes" Re: Xen-unstable + linux 4.1-mergewindow: problems with PV guest pci passthrough: pcifront pci-0: pcib

2015-05-11 Thread Konrad Rzeszutek Wilk
On Tue, May 05, 2015 at 12:18:49AM +0200, Sander Eikelenboom wrote: > Hello Sander, > > Monday, April 27, 2015, 5:48:00 PM, you wrote: > > > Hi David / Konrad, > > > Here the other problem i found, which is introduced somewhere in the > > 4.1 mergewindow: > > > on 4.1.0-rc1 (with the one rever

Re: [Xen-devel] [PATCH] x86: don't clear high 32 bits of RAX on sub-word guest I/O port reads

2015-05-11 Thread Konrad Rzeszutek Wilk
On Fri, May 08, 2015 at 01:08:05PM +0100, Jan Beulich wrote: > 1- or 2-byte operations never alter the high halves of registers. > That is impressive. How possibly did you spot this? Was it due to reviewing some other code that got you looking at this? Thanks! > Signed-off-by: Jan Beulich >

Re: [Xen-devel] [Y2038] [PATCH] xen/pcifront: Remove usage of struct timeval

2015-05-11 Thread Arnd Bergmann
On Monday 11 May 2015 08:14:48 Tina Ruchandani wrote: > struct timeval uses a 32-bit field for representing seconds, > which will overflow in the year 2038 and beyond. This patch replaces > struct timeval with 64-bit ktime_t which is 2038 safe. > The patch is part of a larger effort to remove insta

Re: [Xen-devel] xen-netfront sets partial checksum at wrong offset

2015-05-11 Thread Konrad Rzeszutek Wilk
On Thu, May 07, 2015 at 12:44:24PM -0700, Venkat Venkatsubra wrote: > Hello All, > > When handle_incoming_queue (xen-netfront.c) calls checksum_setup() > the transport header didn't seem to be initialized yet. > skb_checksum_setup_ipv4 ends up initializing the checksum at incorrect > offset. >

Re: [Xen-devel] Regression: qemu crash of hvm domUs with spice (backtrace included)

2015-05-11 Thread Fabio Fantoni
Il 21/04/2015 14:53, Stefano Stabellini ha scritto: On Tue, 21 Apr 2015, Fabio Fantoni wrote: Il 21/04/2015 12:49, Stefano Stabellini ha scritto: On Mon, 20 Apr 2015, Fabio Fantoni wrote: I updated xen and qemu from xen 4.5.0 with its upstream qemu included to xen 4.5.1-pre with qemu upstream

[Xen-devel] [PATCH v6 0/3] xen/pvh: use a custom IO bitmap for PVH hardware domains

2015-05-11 Thread Roger Pau Monne
Changes in this version include a build fix for XSM and trapping 0xcf8 and the RTC ports for PVH instead of adding them to ioports_deny_access. ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

[Xen-devel] [PATCH v6 1/2] xen/pvh: use a custom IO bitmap for PVH hardware domains

2015-05-11 Thread Roger Pau Monne
Since a PVH hardware domain has access to the physical hardware create a custom more permissive IO bitmap. The permissions set on the bitmap are populated based on the contents of the ioports rangeset. Signed-off-by: Roger Pau Monné Cc: Jan Beulich Cc: Andrew Cooper Cc: Boris Ostrovsky Cc: Sur

[Xen-devel] [PATCH v6 2/2] xen/pvh: trap access to sensitive IO ports

2015-05-11 Thread Roger Pau Monne
This is needed so Xen can properly trap 4 byte accesses to 0xcf8 in order to keep consistency with accesses to 0xcfc. The access to RTC ports also needs to be trapped in order to keep consistency, this includes RTC_PORT(0) and RTC_PORT(1) (0x70 and 0x71 respectively). Signed-off-by: Roger Pau Mon

Re: [Xen-devel] [RFC][PATCH 01/13] tools: introduce some new parameters to set rdm policy

2015-05-11 Thread Wei Liu
On Mon, May 11, 2015 at 01:35:06PM +0800, Chen, Tiejun wrote: > On 2015/5/8 21:04, Wei Liu wrote: > >Sorry for the late review. > > > > Really thanks for taking your time :) > > >On Fri, Apr 10, 2015 at 05:21:52PM +0800, Tiejun Chen wrote: > >>This patch introduces user configurable parameters to

Re: [Xen-devel] 4.5.1 situation

2015-05-11 Thread Fabio Fantoni
Il 11/05/2015 16:50, Konrad Rzeszutek Wilk ha scritto: On Fri, May 08, 2015 at 08:24:51AM +0100, Jan Beulich wrote: All, so after yesterday's push of the 4.5 tree itself we've now got a push on the second of the qemu trees too, but the month's worth of work stuck in the unstable staging tree me

Re: [Xen-devel] [PATCH v6 3/6] Qemu-Xen-vTPM: Xen frontend driver infrastructure

2015-05-11 Thread Xu, Quan
> -Original Message- > From: Stefan Berger [mailto:stef...@linux.vnet.ibm.com] > Sent: Monday, May 11, 2015 10:50 PM > To: Xu, Quan > Cc: qemu-de...@nongnu.org; wei.l...@citrix.com; dgde...@tycho.nsa.gov; > xen-devel@lists.xen.org; stefano.stabell...@eu.citrix.com; ebl...@redhat.com > Sub

Re: [Xen-devel] 4.5.1 situation

2015-05-11 Thread Konrad Rzeszutek Wilk
On Fri, May 08, 2015 at 08:24:51AM +0100, Jan Beulich wrote: > All, > > so after yesterday's push of the 4.5 tree itself we've now got a push > on the second of the qemu trees too, but the month's worth of work > stuck in the unstable staging tree means I've already accumulated a > list of about a

Re: [Xen-devel] [PATCH v6 3/6] Qemu-Xen-vTPM: Xen frontend driver infrastructure

2015-05-11 Thread Stefan Berger
On 05/11/2015 08:56 AM, Xu, Quan wrote: -Original Message- From: Stefan Berger [mailto:stef...@linux.vnet.ibm.com] Sent: Monday, May 04, 2015 11:36 PM To: Xu, Quan; stefano.stabell...@eu.citrix.com; ebl...@redhat.com Cc: qemu-de...@nongnu.org; wei.l...@citrix.com; dgde...@tycho.nsa.gov;

Re: [Xen-devel] [PATCH v2 1/8] xenalyze: add to tools/xentrace/xenalyze

2015-05-11 Thread Olaf Hering
On Mon, May 11, George Dunlap wrote: > It looks like olaf is only checking in the core xenalyze binary, not the > other side bits (like the html documentation), so keeping them in the > same directory might make sense. I'm planning to provide a man page, and merge dump-raw.c into xenalyze.c itsel

Re: [Xen-devel] [PATCH v3] OSSTEST: introduce a raisin build test

2015-05-11 Thread Stefano Stabellini
On Mon, 11 May 2015, Ian Campbell wrote: > On Fri, 2015-05-08 at 13:36 +0100, Stefano Stabellini wrote: > > Signed-off-by: Stefano Stabellini > > > > --- > > Changes in v3: > > - use $raisindir throughout ts-raisin-build > > - do not specify ENABLED_COMPONENTS so that empty REVISION variables can

Re: [Xen-devel] [PATCHv4 2/5] arm: provide add_sized()

2015-05-11 Thread David Vrabel
On 11/05/15 15:37, David Vrabel wrote: > add_sized(ptr, inc) adds inc to the value at ptr using only the correct > size of loads and stores for the type of *ptr. The add is /not/ atomic. > > This is needed for ticket locks to ensure the increment of the head ticket > does not affect the tail tick

[Xen-devel] [PATCHv5 0/5] Use ticket locks for spinlocks

2015-05-11 Thread David Vrabel
Use ticket locks for spin locks instead of the current byte locks. Ticket locks are fair. This is an important property for hypervisor locks. Note that spin_lock_irq() and spin_lock_irqsave() now spin with irqs disabled (previously, they would spin with irqs enabled if possible). This is required

[Xen-devel] [PATCHv4 3/5] xen: use ticket locks for spin locks

2015-05-11 Thread David Vrabel
Replace the byte locks with ticket locks. Ticket locks are: a) fair; and b) peform better when contented since they spin without an atomic operation. The lock is split into two ticket values: head and tail. A locker acquires a ticket by (atomically) increasing tail and using the previous tail va

[Xen-devel] [PATCHv4 4/5] x86, arm: remove asm/spinlock.h from all architectures

2015-05-11 Thread David Vrabel
Now that all architecture use a common ticket lock implementation for spinlocks, remove the architecture specific byte lock implementations. Signed-off-by: David Vrabel Reviewed-by: Tim Deegan Acked-by: Jan Beulich Acked-by: Ian Campbell --- xen/arch/arm/README.LinuxPrimitives | 28 ---

[Xen-devel] [PATCHv4 2/5] arm: provide add_sized()

2015-05-11 Thread David Vrabel
add_sized(ptr, inc) adds inc to the value at ptr using only the correct size of loads and stores for the type of *ptr. The add is /not/ atomic. This is needed for ticket locks to ensure the increment of the head ticket does not affect the tail ticket. Signed-off-by: David Vrabel Acked-by: Ian C

[Xen-devel] [PATCHv4 1/5] x86: provide add_sized()

2015-05-11 Thread David Vrabel
add_sized(ptr, inc) adds inc to the value at ptr using only the correct size of loads and stores for the type of *ptr. The add is /not/ atomic. This is needed for ticket locks to ensure the increment of the head ticket does not affect the tail ticket. Signed-off-by: David Vrabel --- xen/includ

[Xen-devel] [PATCHv4 5/5] x86: reduce struct hvm_domain size

2015-05-11 Thread David Vrabel
Pack struct hvm_domain to reduce it by 8 bytes. Thus reducing the size of struct domain by 8 bytes. Signed-off-by: David Vrabel --- xen/include/asm-x86/hvm/domain.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xen/include/asm-x86/hvm/domain.h b/xen/include/

Re: [Xen-devel] [RFC PATCH v2 09/22] xen/arm: its: Add helper functions to decode ITS Command

2015-05-11 Thread Vijay Kilari
On Mon, May 11, 2015 at 7:55 PM, Julien Grall wrote: > On 11/05/15 15:25, Julien Grall wrote: >> Hi Vijay, >> >> On 11/05/15 15:14, Vijay Kilari wrote: >>> On Wed, Apr 1, 2015 at 5:10 PM, Ian Campbell >>> wrote: On Thu, 2015-03-19 at 20:07 +0530, vijay.kil...@gmail.com wrote: > From: Vi

Re: [Xen-devel] [PATCH v2 1/8] xenalyze: add to tools/xentrace/xenalyze

2015-05-11 Thread George Dunlap
On 05/11/2015 03:23 PM, Ian Campbell wrote: > On Mon, 2015-05-11 at 16:15 +0200, Olaf Hering wrote: >> On Thu, May 07, George Dunlap wrote: >> >>> On Thu, May 7, 2015 at 11:35 AM, Olaf Hering wrote: >> tools/xentrace/xenalyze/Makefile |21 + >> >>> I personally think it would make more

Re: [Xen-devel] [PATCH v2 1/8] xenalyze: add to tools/xentrace/xenalyze

2015-05-11 Thread Olaf Hering
On Mon, May 11, Ian Campbell wrote: > On Mon, 2015-05-11 at 16:15 +0200, Olaf Hering wrote: > > On Thu, May 07, George Dunlap wrote: > > > > > On Thu, May 7, 2015 at 11:35 AM, Olaf Hering wrote: > > > > > > tools/xentrace/xenalyze/Makefile |21 + > > > > > I personally think it would mak

Re: [Xen-devel] [RFC PATCH v2 09/22] xen/arm: its: Add helper functions to decode ITS Command

2015-05-11 Thread Julien Grall
On 11/05/15 15:25, Julien Grall wrote: > Hi Vijay, > > On 11/05/15 15:14, Vijay Kilari wrote: >> On Wed, Apr 1, 2015 at 5:10 PM, Ian Campbell wrote: >>> On Thu, 2015-03-19 at 20:07 +0530, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K Add helper functions to decode ITS command

[Xen-devel] [PATCH v6 1/4] xen: introduce a helper to allocate non-contiguous memory

2015-05-11 Thread Roger Pau Monne
The allocator uses independent calls to alloc_domheap_pages in order to get the desired amount of memory and then maps all the independent physical addresses into a contiguous virtual address space. Signed-off-by: Roger Pau Monné Tested-by: Julien Grall (ARM) Cc: Stefano Stabellini Cc: Ian Camp

[Xen-devel] [PATCH v6 4/4] xen: rework paging_log_dirty_op to work with hvm guests

2015-05-11 Thread Roger Pau Monne
When the caller of paging_log_dirty_op is a hvm guest Xen would choke when trying to copy the dirty bitmap to the guest because the paging lock is already held. Fix this by independently mapping each page of the guest bitmap as needed without the paging lock held. Signed-off-by: Roger Pau Monné

[Xen-devel] [PATCH v6 3/4] xen/hap: make hap_track_dirty_vram use non-contiguous memory for temporary map

2015-05-11 Thread Roger Pau Monne
Just like it's done for shadow_track_dirty_vram allocate the temporary buffer using non-contiguous memory. Signed-off-by: Roger Pau Monné Reviewed-by: Tim Deegan Cc: Tim Deegan Cc: Jan Beulich Cc: Andrew Cooper --- Changes since v4: - Use vzalloc in order to allocate zeroed memory. --- xen/

Re: [Xen-devel] [RFC PATCH v2 09/22] xen/arm: its: Add helper functions to decode ITS Command

2015-05-11 Thread Julien Grall
Hi Vijay, On 11/05/15 15:14, Vijay Kilari wrote: > On Wed, Apr 1, 2015 at 5:10 PM, Ian Campbell wrote: >> On Thu, 2015-03-19 at 20:07 +0530, vijay.kil...@gmail.com wrote: >>> From: Vijaya Kumar K >>> >>> Add helper functions to decode ITS command >>> This will be useful for Virtual ITS driver >>

[Xen-devel] [PATCH v6 2/4] xen/shadow: fix shadow_track_dirty_vram to work on hvm guests

2015-05-11 Thread Roger Pau Monne
Modify shadow_track_dirty_vram to use a local buffer and then flush to the guest without the paging_lock held. This is modeled after hap_track_dirty_vram. Signed-off-by: Roger Pau Monné Reviewed-by: Tim Deegan Cc: Tim Deegan Cc: Jan Beulich Cc: Andrew Cooper --- Changes since v5: - Restore d

[Xen-devel] [PATCH v6 0/4] xen/pvh: enable migration on PVH Dom0

2015-05-11 Thread Roger Pau Monne
Changes in this version include fixes for vfree and restoring the previous map in shadow_track_dirty_vram if the copy to guest fails. Thanks, Roger. ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v2 1/8] xenalyze: add to tools/xentrace/xenalyze

2015-05-11 Thread Ian Campbell
On Mon, 2015-05-11 at 16:15 +0200, Olaf Hering wrote: > On Thu, May 07, George Dunlap wrote: > > > On Thu, May 7, 2015 at 11:35 AM, Olaf Hering wrote: > > > > tools/xentrace/xenalyze/Makefile |21 + > > > I personally think it would make more sense to just put the xenalyze > > directory i

Re: [Xen-devel] [SeaBIOS] [PATCH] Make CONFIG_ATA_DMA and CONFIG_ATA_PIO32 default on

2015-05-11 Thread Paul Durrant
> -Original Message- > From: Kevin O'Connor [mailto:ke...@koconnor.net] > Sent: 11 May 2015 14:41 > To: Paul Durrant > Cc: seab...@seabios.org; xen-de...@lists.xenproject.org > Subject: Re: [SeaBIOS] [PATCH] Make CONFIG_ATA_DMA and > CONFIG_ATA_PIO32 default on > > On Mon, May 11, 2015 at

Re: [Xen-devel] [PATCH v4.1] Support CPU list parsing in xentrace.

2015-05-11 Thread Konrad Rzeszutek Wilk
On Fri, May 08, 2015 at 03:58:50PM +0100, Ian Campbell wrote: > On Thu, 2015-04-23 at 09:29 -0400, Konrad Rzeszutek Wilk wrote: > > Hey George, Ian, > > > > > > Ian: I copied your comment and stuffed it in, please Ack: > > [PATCH v4.1 1/3] libxl/cpumap: Add xc_cpumap_[setcpu, clearcpu, > > > >

Re: [Xen-devel] [PATCH v2] tools: add configure --with-dumpdir=DIR option

2015-05-11 Thread Olaf Hering
On Fri, May 08, Ian Campbell wrote: > On Fri, 2015-05-08 at 08:54 +0200, Olaf Hering wrote: > > On Thu, May 07, Ian Campbell wrote: > > > > > On Thu, 2015-05-07 at 10:10 +0200, Olaf Hering wrote: > > > Does anyone actually use the non-FHS compliant current default > > > of /var/xen/dump? Should w

Re: [Xen-devel] [PATCH v2 1/8] xenalyze: add to tools/xentrace/xenalyze

2015-05-11 Thread Olaf Hering
On Thu, May 07, George Dunlap wrote: > On Thu, May 7, 2015 at 11:35 AM, Olaf Hering wrote: > > tools/xentrace/xenalyze/Makefile |21 + > I personally think it would make more sense to just put the xenalyze > directory in tools/. Ok, so shall I resend with a new subdir tools/xenalyze/ ins

Re: [Xen-devel] [RFC PATCH v2 09/22] xen/arm: its: Add helper functions to decode ITS Command

2015-05-11 Thread Vijay Kilari
On Wed, Apr 1, 2015 at 5:10 PM, Ian Campbell wrote: > On Thu, 2015-03-19 at 20:07 +0530, vijay.kil...@gmail.com wrote: >> From: Vijaya Kumar K >> >> Add helper functions to decode ITS command >> This will be useful for Virtual ITS driver > > It depends slightly on the answer to the quesiton I ask

[Xen-devel] [linux-3.4 test] 55174: regressions - FAIL

2015-05-11 Thread osstest service user
flight 55174 linux-3.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/55174/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-pair15 debian-install/dst_host fail REGR. vs. 32769-bisect test-amd64-amd64-xl

Re: [Xen-devel] [V4] x86/cpuidle: get accurate C0 value with xenpm tool

2015-05-11 Thread Han, Huaitong
On Mon, 2015-05-11 at 12:10 +0100, Jan Beulich wrote: > >>> On 11.05.15 at 11:34, wrote: > > --- > > ChangeLog: > > V4: > > delete pointless initializers and hard tabs. > > Thanks, but ... > > > V3: > > 1.Don't use tick_to_ns inside lock in print_acpi_power. > > ... note that this also was not

Re: [Xen-devel] [win-pv-devel] Question about windows domU long boot time in xen and help for update libxl virtio patch (for a test)

2015-05-11 Thread Wei Liu
On Mon, May 11, 2015 at 03:53:44PM +0200, Fabio Fantoni wrote: [...] > > Can someone help me to complete/fix it please? > > Can someone help me about virtio disks support in libxl please? > > After this reply about seabios seems can be useful try virtio: > http://lists.xen.org/archives

Re: [Xen-devel] [PATCH v1 3/4] libxl: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler

2015-05-11 Thread Dario Faggioli
On Thu, 2015-05-07 at 12:05 -0500, Chong Li wrote: > Change sched_rtds_domain_get/set functions to support per-VCPU settings for > RTDS scheduler. > > Signed-off-by: Chong Li > Signed-off-by: Meng Xu > Signed-off-by: Sisu Xi > --- > tools/libxl/libxl.c | 143 > +++

Re: [Xen-devel] [win-pv-devel] Question about windows domU long boot time in xen and help for update libxl virtio patch (for a test)

2015-05-11 Thread Fabio Fantoni
Il 08/05/2015 18:47, Paul Durrant ha scritto: -Original Message- From: Fabio Fantoni [mailto:fabio.fant...@m2r.biz] Sent: 08 May 2015 16:11 To: Paul Durrant; xen-devel; win-pv-de...@lists.xenproject.org Cc: Anthony Perard; Wei Liu; Ian Campbell; Stefano Stabellini Subject: Re: [win-pv-dev

Re: [Xen-devel] [PATCH v5 2/4] xen/shadow: fix shadow_track_dirty_vram to work on hvm guests

2015-05-11 Thread Tim Deegan
At 15:46 +0200 on 11 May (1431359176), Roger Pau Monné wrote: > El 08/05/15 a les 17.34, Andrew Cooper ha escrit: > > On 08/05/15 16:28, Jan Beulich wrote: > > On 08.05.15 at 16:34, wrote: > >>> @@ -3668,21 +3671,19 @@ int shadow_track_dirty_vram(struct domain *d, > >>> if ( map_sl1p

Re: [Xen-devel] [PATCH] xen/pcifront: Remove usage of struct timeval

2015-05-11 Thread Konrad Rzeszutek Wilk
On Mon, May 11, 2015 at 08:14:48AM +0530, Tina Ruchandani wrote: > struct timeval uses a 32-bit field for representing seconds, > which will overflow in the year 2038 and beyond. This patch replaces > struct timeval with 64-bit ktime_t which is 2038 safe. > The patch is part of a larger effort to r

Re: [Xen-devel] [PATCH v5 2/4] xen/shadow: fix shadow_track_dirty_vram to work on hvm guests

2015-05-11 Thread Roger Pau Monné
El 08/05/15 a les 17.34, Andrew Cooper ha escrit: > On 08/05/15 16:28, Jan Beulich wrote: > On 08.05.15 at 16:34, wrote: >>> @@ -3668,21 +3671,19 @@ int shadow_track_dirty_vram(struct domain *d, >>> if ( map_sl1p ) >>> sh_unmap_domain_page(map_sl1p); >>> >>> -rc

[Xen-devel] [PATCH v7 2/6] Qemu-Xen-vTPM: Xen frontend driver infrastructure

2015-05-11 Thread Quan Xu
This patch adds infrastructure for xen front drivers living in qemu, so drivers don't need to implement common stuff on their own. It's mostly xenbus management stuff: some functions to access XenStore, setting up XenStore watches, callbacks on device discovery and state changes, and handle event

[Xen-devel] [PATCH v7 0/6] QEMU:Xen stubdom vTPM for HVM virtual machine(QEMU Part)

2015-05-11 Thread Quan Xu
*INTRODUCTION* The goal of virtual Trusted Platform Module (vTPM) is to provide a TPM functionality to virtual machines (Fedora, Ubuntu, Redhat, Windows .etc). This allows programs to interact with a TPM in a virtual machine the same way they interact with a TPM on the physical system. Each virt

[Xen-devel] [PATCH v7 4/6] Qemu-Xen-vTPM: Move tpm_passthrough_is_selftest() into tpm_util.c

2015-05-11 Thread Quan Xu
and rename it to tpm_util_is_selftest(). Signed-off-by: Quan Xu Reviewed-by: Stefan Berger --- hw/tpm/Makefile.objs | 2 +- hw/tpm/tpm_passthrough.c | 13 + hw/tpm/tpm_util.c| 39 +++ include/sysemu/tpm_backend

[Xen-devel] [PATCH v7 6/6] Qemu-Xen-vTPM: QEMU machine class is initialized before tpm_init()

2015-05-11 Thread Quan Xu
make sure QEMU machine class is initialized and QEMU has registered Xen stubdom vTPM driver when call tpm_init() Signed-off-by: Quan Xu Reviewed-by: Stefan Berger --- vl.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/vl.c b/vl.c index 74c2681..7bc87f1 1

[Xen-devel] [PATCH v7 5/6] Qemu-Xen-vTPM: Qemu vTPM xenstubdoms backen.

2015-05-11 Thread Quan Xu
This Patch provides the glue for the TPM_TIS(Qemu frontend) to Xen stubdom vTPM domain that provides the actual TPM functionality. It sends data and TPM commends with xen_vtpm_frontend. It is similar as another two vTPM backens: *vTPM passthrough backen Since QEMU 1.5. *vTPM libtpms-based backe

[Xen-devel] [PATCH v7 1/6] Qemu-Xen-vTPM: Support for Xen stubdom vTPM command line options

2015-05-11 Thread Quan Xu
Signed-off-by: Quan Xu Reviewed-by: Eric Blake --- configure| 14 ++ hmp.c| 2 ++ qapi-schema.json | 16 ++-- qemu-options.hx | 13 +++-- tpm.c| 7 ++- 5 files changed, 47 insertions(+), 5 deletions(-) diff --git a/configure

[Xen-devel] [PATCH v7 3/6] Qemu-Xen-vTPM: Register Xen stubdom vTPM frontend driver

2015-05-11 Thread Quan Xu
This drvier transfers any request/repond between TPM xenstubdoms driver and Xen vTPM stubdom, and facilitates communications between Xen vTPM stubdom domain and vTPM xenstubdoms driver. It is a glue for the TPM xenstubdoms driver and Xen stubdom vTPM domain that provides the actual TPM functionalit

Re: [Xen-devel] [SeaBIOS] [PATCH] Make CONFIG_ATA_DMA and CONFIG_ATA_PIO32 default on

2015-05-11 Thread Kevin O'Connor
On Mon, May 11, 2015 at 01:47:57PM +0100, Paul Durrant wrote: > Currently running make defconfig will leave the above turned off which, > at least for the Xen/QEMU use-case, means VMs will boot very slowly. > There seems to have been some concern over non-QEMU use of ATA_DMA about > five years ago,

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

2015-05-11 Thread osstest service user
flight 55256 rumpuserxen real [real] http://logs.test-lab.xenproject.org/osstest/logs/55256/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-rumpuserxen 5 rumpuserxen-build fail REGR. vs. 33866 build-i386-rumpuserxe

Re: [Xen-devel] [PATCHv4 5/8] xen: use ticket locks for spin locks

2015-05-11 Thread Tim Deegan
At 14:13 +0100 on 11 May (1431353629), David Vrabel wrote: > On 08/05/15 10:36, Jan Beulich wrote: > >> > >> +} > >> +} > >> smp_mb(); > >> } > > > > The old code had smp_mb() before _and_ after the check - is it really > > correct to drop the one before (or effectively replace i

Re: [Xen-devel] [PATCH v1 2/4] libxc: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler

2015-05-11 Thread Dario Faggioli
On Thu, 2015-05-07 at 12:05 -0500, Chong Li wrote: > Add xc_sched_rtds_vcpu_get/set functions to interact with Xen to get/set a > domain's > per-VCPU parameters. > > Signed-off-by: Chong Li > Signed-off-by: Meng Xu > Signed-off-by: Sisu Xi > These looks same xc wrappers to the hypercall to me.

Re: [Xen-devel] [libvirt test] 55257: regressions - FAIL

2015-05-11 Thread Ian Campbell
On Mon, 2015-05-11 at 12:46 +, osstest service user wrote: > flight 55257 libvirt real [real] > http://logs.test-lab.xenproject.org/osstest/logs/55257/ > > Regressions :-( > > Tests which did not succeed and are blocking, > including tests which could not be run: > test-amd64-amd64-libvirt

Re: [Xen-devel] [PATCH v5 1/4] xen: introduce a helper to allocate non-contiguous memory

2015-05-11 Thread Jan Beulich
>>> On 11.05.15 at 14:11, wrote: > El 11/05/15 a les 12.41, Jan Beulich ha escrit: > On 11.05.15 at 11:52, wrote: >>> El 11/05/15 a les 9.42, Jan Beulich ha escrit: >>> On 08.05.15 at 16:34, wrote: There actually is another problem here: You must not free the pages before havin

Re: [Xen-devel] [PATCHv4 8/8] x86: reduce struct hvm_domain size

2015-05-11 Thread David Vrabel
On 08/05/15 10:47, Jan Beulich wrote: On 30.04.15 at 17:33, wrote: >> Pack struct hvm_domain to reduce it by 8 bytes. Thus reducing the >> size of struct domain by 8 bytes. > > Is that really true _after_ the change to ticket locks? Yes. >> @@ -137,6 +131,12 @@ struct hvm_domain { >>

Re: [Xen-devel] [libvirt test] 53854: tolerable FAIL - PUSHED

2015-05-11 Thread Ian Campbell
On Sat, 2015-05-09 at 08:26 +0100, Ian Campbell wrote: > On Sat, 2015-05-09 at 03:10 +, osstest service user wrote: > > flight 53854 libvirt real [real] > > http://logs.test-lab.xenproject.org/osstest/logs/53854/ > > > > Failures :-/ but no regressions. > > > > Tests which did not succeed, bu

Re: [Xen-devel] [PATCHv4 5/8] xen: use ticket locks for spin locks

2015-05-11 Thread David Vrabel
On 08/05/15 10:36, Jan Beulich wrote: >> >> +} >> +} >> smp_mb(); >> } > > The old code had smp_mb() before _and_ after the check - is it really > correct to drop the one before (or effectively replace it by smp_rmb() > in observe_{lock,head}())? Typical usage is: d->is_dyi

Re: [Xen-devel] [PATCH v1 1/4] xen: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler

2015-05-11 Thread Dario Faggioli
On Thu, 2015-05-07 at 12:05 -0500, Chong Li wrote: > Add two hypercalls(XEN_DOMCTL_SCHEDOP_getvcpuinfo/putvcpuinfo) to get/set a > domain's > per-VCPU parameters. Hypercalls are handled in function rt_dom_cntl. > And that is because, right now, only code in sched_rt.c is able to deal with per-vcp

Re: [Xen-devel] [PATCH v6 3/6] Qemu-Xen-vTPM: Xen frontend driver infrastructure

2015-05-11 Thread Xu, Quan
> -Original Message- > From: Stefan Berger [mailto:stef...@linux.vnet.ibm.com] > Sent: Monday, May 04, 2015 11:36 PM > To: Xu, Quan; stefano.stabell...@eu.citrix.com; ebl...@redhat.com > Cc: qemu-de...@nongnu.org; wei.l...@citrix.com; dgde...@tycho.nsa.gov; > xen-devel@lists.xen.org > Sub

  1   2   >