[Qemu-devel] [PATCH v3 4/9] block: vhdx - log support struct and defines

2013-08-07 Thread Jeff Cody
This adds some magic number defines, and internal structure definitions for VHDX log replay support. The struct VHDXLogEntries does not reflect an on-disk data structure, and thus does not need to be packed. Some minor code style fixes are applied as well. Signed-off-by: Jeff Cody --- block/vh

[Qemu-devel] [PATCH v3 5/9] block: vhdx - break endian translation functions out

2013-08-07 Thread Jeff Cody
This moves the endian translation functions out from the vhdx.c source, into a separate source file. In addition to the previously defined endian functions, new endian translation functions for log support are added as well. Signed-off-by: Jeff Cody --- block/Makefile.objs | 2 +- block/vhdx-e

[Qemu-devel] [PATCH v3 7/9] block: vhdx - log parsing, replay, and flush support

2013-08-07 Thread Jeff Cody
This adds support for VHDX v0 logs, as specified in Microsoft's VHDX Specification Format v1.00: https://www.microsoft.com/en-us/download/details.aspx?id=34750 The following support is added: * Log parsing, and validation - validate that an existing log is correct. * Log search - search throug

[Qemu-devel] [PATCH v3 6/9] block: vhdx - update log guid in header, and first write tracker

2013-08-07 Thread Jeff Cody
Allow tracking of first file write in the VHDX image, as well as the ability to update the GUID in the header. This is in preparation for log support. Signed-off-by: Jeff Cody --- block/vhdx.c | 30 -- block/vhdx.h | 6 ++ 2 files changed, 30 insertions(+), 6 de

[Qemu-devel] [PATCH v3 8/9] block: vhdx - add log write support

2013-08-07 Thread Jeff Cody
This adds support for writing to the VHDX log. For spec details, see VHDX Specification Format v1.00: https://www.microsoft.com/en-us/download/details.aspx?id=34750 There are a few limitations to this log support: 1.) There is no caching yet 2.) The log is flushed after each entry The primary wr

[Qemu-devel] [PATCH v3 9/9] block: vhdx write support

2013-08-07 Thread Jeff Cody
This adds support for writing to VHDX image files, using coroutines. Writes into the BAT table goes through the VHDX log. Currently, BAT table writes occur when expanding a dynamic VHDX file, and allocating a new BAT entry. Signed-off-by: Jeff Cody --- block/vhdx.c | 150 +++

Re: [Qemu-devel] [PATCH v3 0/9] VHDX log replay and write support

2013-08-07 Thread Jeff Cody
On Wed, Aug 07, 2013 at 09:32:28PM -0400, Jeff Cody wrote: > This patch series contains the initial VHDX log parsing, replay, > and write support. > > === v3 changes === > > Thank you Kevin & Stefan for the feedback; incoporated in v3: > > Patch 1: --- nil --- > > Patch 2: * use sizeof(crc) i

Re: [Qemu-devel] [PATCH 5/6] xics: split to xics and xics-common

2013-08-07 Thread Alexey Kardashevskiy
On 08/08/2013 12:22 AM, Andreas Färber wrote: > Am 07.08.2013 09:26, schrieb Alexey Kardashevskiy: >> On 08/07/2013 05:03 PM, Andreas Färber wrote: >>> Am 07.08.2013 08:06, schrieb Alexey Kardashevskiy: [...] How do I test it? >>> >>> ./QMP/qom-list to find the path, if not fixed in code yet,

[Qemu-devel] [PATCH 7/7] hw/char/virtio-serial-bus: use virtio wrappers to access headers.

2013-08-07 Thread Rusty Russell
Signed-off-by: Rusty Russell --- hw/char/virtio-serial-bus.c | 34 ++ 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/hw/char/virtio-serial-bus.c b/hw/char/virtio-serial-bus.c index cc3d1dd..0421725 100644 --- a/hw/char/virtio-serial-bus.c +++ b/hw/

[Qemu-devel] [PATCH 3/7] hw/net/virtio-net: use virtio wrappers to access headers.

2013-08-07 Thread Rusty Russell
Signed-off-by: Rusty Russell --- hw/net/virtio-net.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 1ea9556..e77e28d 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -21,6 +21,7 @@ #include "hw/virt

[Qemu-devel] [PATCH 6/7] hw/scsi/virtio-scsi: use virtio wrappers to access headers.

2013-08-07 Thread Rusty Russell
Note that st*_raw and ld*_raw are effectively replaced by st*_p and ld*_p. Signed-off-by: Rusty Russell --- hw/scsi/virtio-scsi.c | 33 + 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c index 08dd3f3..c

[Qemu-devel] [PATCH 0/7] Virtio support for endian-curious guests.

2013-08-07 Thread Rusty Russell
Virtio is currently defined as "guest-endian", but that's a slippery concept when the target can change endian. In particular, virtio devices fail on little-endian powerpc 64. Feedback welcome! Rusty. Rusty Russell (7): virtio: allow byte swapping for vring and config access target-ppc: ppc6

[Qemu-devel] [PATCH 2/7] target-ppc: ppc64 targets can be either endian.

2013-08-07 Thread Rusty Russell
Signed-off-by: Rusty Russell --- configure| 1 + target-ppc/misc_helper.c | 8 2 files changed, 9 insertions(+) diff --git a/configure b/configure index ad32f87..cee32af 100755 --- a/configure +++ b/configure @@ -4217,6 +4217,7 @@ case "$target_name" in ppc64) TA

[Qemu-devel] [PATCH 4/7] hw/net/virtio-balloon: use virtio wrappers to access page frame numbers.

2013-08-07 Thread Rusty Russell
Signed-off-by: Rusty Russell --- hw/virtio/virtio-balloon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c index d669756..c0b4f6e 100644 --- a/hw/virtio/virtio-balloon.c +++ b/hw/virtio/virtio-balloon.c @@ -30,6 +30,7

[Qemu-devel] [PATCH 7/7] patch virtio-serial-biendian.patch

2013-08-07 Thread Rusty Russell
--- hw/char/virtio-serial-bus.c | 34 ++ 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/hw/char/virtio-serial-bus.c b/hw/char/virtio-serial-bus.c index cc3d1dd..0421725 100644 --- a/hw/char/virtio-serial-bus.c +++ b/hw/char/virtio-serial-bus.c @@ -2

[Qemu-devel] [PATCH 1/7] virtio: allow byte swapping for vring and config access

2013-08-07 Thread Rusty Russell
Virtio is currently defined to work as "guest endian", but this is a problem if the guest can change endian. As most targets can't change endian, we make it a per-target option to avoid pessimising. This is based on a simpler patch by Anthony Liguouri, which only handled the vring accesses. We a

[Qemu-devel] [PATCH 5/7] hw/block/virtio-blk: use virtio wrappers to access headers.

2013-08-07 Thread Rusty Russell
Note that st*_raw and ld*_raw are effectively replaced by st*_p and ld*_p. Signed-off-by: Rusty Russell --- hw/block/virtio-blk.c | 35 ++- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index cf12469.

Re: [Qemu-devel] [PATCH for-next] spapr: Avoid "HOST@0" CPU node name in SLOF device tree for -cpu host

2013-08-07 Thread Prerna Saxena
On 08/01/2013 06:32 AM, Andreas Färber wrote: > By default on KVM or when user asks for it via -cpu host, cpu_model will > be "host" and sPAPR merely upper-cases it for the SLOF device tree. > > Change it so that we get the underlying CPU type, e.g., "POWER7_V2.3@0". > > Reported-by: Prerna Saxen

[Qemu-devel] [Bug 1208944] Re: -kernel option broken for some multiboot kernels

2013-08-07 Thread Martijn van den Broek
** Changed in: qemu Status: New => Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1208944 Title: -kernel option broken for some multiboot kernels Status in QEMU: Fix Committe

Re: [Qemu-devel] [SeaBIOS] [PATCH] acpi: hide 64-bit PCI hole for Windows XP

2013-08-07 Thread Michael S. Tsirkin
On Wed, Aug 07, 2013 at 09:29:39AM +0200, Gerd Hoffmann wrote: > We'll need some way for seabios to fill in the pci window information > into the qemu-provided tables. Easiest way to do that would be to > extend the COMMAND_ADD_POINTER bios linker script command. This idea certainly has an advant

Re: [Qemu-devel] [PATCH for-1.6 4/4] rdma: proper getaddrinfo() handling

2013-08-07 Thread Orit Wasserman
On 08/07/2013 07:05 PM, mrhi...@linux.vnet.ibm.com wrote: > From: "Michael R. Hines" > > getaddrinfo() already knows what it's doing, > wqand can potentially return multiple addresses. > > Signed-off-by: Michael R. Hines > --- > migration-rdma.c | 56 > --

Re: [Qemu-devel] [PATCH] tap: Use numbered tap/tun devices on all *BSD OS's

2013-08-07 Thread Brad Smith
On 05/08/13 7:57 AM, Stefan Hajnoczi wrote: On Sat, Aug 03, 2013 at 10:20:41PM -0400, Brad Smith wrote: The following patch simplifies the *BSD tap/tun code and makes use of numbered tap/tun interfaces on all *BSD OS's. NetBSD has a patch in their pkgsrc tree to make use of this feature and Drag

Re: [Qemu-devel] [RFC] [PATCHv7 07/22] aio / timers: Split QEMUClock into QEMUClock and QEMUTimerList

2013-08-07 Thread liu ping fan
On Wed, Aug 7, 2013 at 7:49 AM, Alex Bligh wrote: > Split QEMUClock into QEMUClock and QEMUTimerList so that we can > have more than one QEMUTimerList associated with the same clock. > > Introduce a default_timerlist concept and make existing > qemu_clock_* calls that actually should operate on a

Re: [Qemu-devel] [PATCH 2/5] qemu_coroutine_self should not be marked coroutine_fn as it cannot yield

2013-08-07 Thread Gabriel Kerneis
On Thu, Aug 08, 2013 at 02:29:39AM +0100, Charlie Shepherd wrote: > On 07/08/2013 23:13, Gabriel Kerneis wrote: > >On Wed, Aug 07, 2013 at 09:18:05PM +0200, Stefan Hajnoczi wrote: > >>I guess the practical problem is that CPC will get > >>upset that it's being called by the coroutine implementation

Re: [Qemu-devel] [RFC] [PATCHv7 01/22] aio / timers: Add qemu_clock_free and expose qemu_clock_new and clock types

2013-08-07 Thread liu ping fan
On Wed, Aug 7, 2013 at 7:48 AM, Alex Bligh wrote: > Add qemu_clock_free and expose qemu_new_clock as qemu_clock_new. > > Expose clock types. > > Signed-off-by: Alex Bligh > --- > include/qemu/timer.h | 22 ++ > qemu-timer.c | 11 ++- > 2 files changed, 28

[Qemu-devel] [PATCH v1 0/5] make slirp subsystem self-contained

2013-08-07 Thread Liu Ping Fan
This series aims to port slirp onto GSource, so that it can be driven by g_main_dispatch. And clean up the #ifdef in main-loop. Liu Ping Fan (5): util: introduce gsource event abstraction slirp: make timeout local slirp: make slirp event dispatch based on slirp instance slirp: decouple t

[Qemu-devel] [PATCH v1 1/5] util: introduce gsource event abstraction

2013-08-07 Thread Liu Ping Fan
Introduce struct EventsGSource. It will ease the usage of GSource associated with a group of files, which are dynamically allocated and release, ex, slirp. Signed-off-by: Liu Ping Fan --- util/Makefile.objs | 1 + util/event_gsource.c | 94

[Qemu-devel] [PATCH v1 5/5] slirp: fold curtime into slirp instance

2013-08-07 Thread Liu Ping Fan
Each slirp instance will work on its own curtime updated when _prepare. This patch help to fold the remaining main-loop's related stuff into GSource, and isolated from main-loop. Signed-off-by: Liu Ping Fan --- main-loop.c | 3 --- slirp/ip_icmp.c | 4 ++-- slirp/libslirp.h| 2

[Qemu-devel] [PATCH v1 4/5] slirp: decouple timeout for gpoll

2013-08-07 Thread Liu Ping Fan
In order to decouple with main loop, we fill timeout for gpoll through slirp's GSource prepare. (Later, after curtime is decoupled, slirp system will be self-contained, and isolated from main-loop) Signed-off-by: Liu Ping Fan --- slirp/slirp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletion

[Qemu-devel] [PATCH v1 2/5] slirp: make timeout local

2013-08-07 Thread Liu Ping Fan
Each slirp has its own time to caculate timeout. Signed-off-by: Liu Ping Fan --- slirp/slirp.c | 22 ++ slirp/slirp.h | 3 +++ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/slirp/slirp.c b/slirp/slirp.c index 80b28ea..55654d5 100644 --- a/slirp/slirp.c +++

Re: [Qemu-devel] [PATCH 3/5] Convert BlockDriver to explicit coroutine annotations

2013-08-07 Thread Gabriel Kerneis
On Wed, Aug 07, 2013 at 09:30:25PM +0200, Stefan Hajnoczi wrote: > I have mixed feelings about removing coroutine_fn annotations from a > function when it does not yield or call other coroutine_fn functions. > > These functions were probably written as part of a coroutine code path. > The coroutin

[Qemu-devel] [PATCH v1 3/5] slirp: make slirp event dispatch based on slirp instance

2013-08-07 Thread Liu Ping Fan
Executing slirp_pollfds_fill/_poll actions based on each slirp instance, so we can decouple the slirp_pollfds_fill/_poll from main-loop. Inside each slirp instance, it contains a GSource. The GSource holds a group of GPollFD, which is the foundation of slirp-sockets. So the state-change of GPollFD

Re: [Qemu-devel] [RFC] [PATCHv7 01/22] aio / timers: Add qemu_clock_free and expose qemu_clock_new and clock types

2013-08-07 Thread Alex Bligh
Pingfan, --On 8 August 2013 14:21:34 +0800 liu ping fan wrote: Go through this series, I can not find the caller of it. I think as clock source, the QEMUClock can not be destroyed, except exit(2), so could we let exit to reclaim the resource? Or at least, this interface should not be public.

[Qemu-devel] [RFC] will qemu support websockt console?

2013-08-07 Thread Sheldon
Now, There is websocket VNC available. I can log in the terminal in VNC by web browser, but the performance of this terminal is not very well. IMO, we should a individual webscoket console. Does qemu plan to support this feature? -- Sheldon Feng(冯少合) IBM Linux Technology Center

<    1   2