Re: [Qemu-devel] [PATCH 1/2] net: make iov_to_buf take right size argument in nc_sendv_compat()

2015-10-20 Thread Jason Wang
On 10/20/2015 09:51 AM, Yang Hongyang wrote: > We want "buf, sizeof(buf)" here. sizeof(buffer) is the size of a > pointer, which is wrong. > Thanks to Paolo for pointing it out. > > Signed-off-by: Yang Hongyang > Cc: Jason Wang > Cc: Paolo Bonzini > --- > net/net.c | 2 +- > 1 file changed,

[Qemu-devel] [PATCH v2] scripts/text2pod.pl: Escape left brace

2015-10-20 Thread Fam Zheng
Latest perl now deprecates "{" literal in regex and print warnings like "unescaped left brace in regex is deprecated". Add escapes to keep it happy. Signed-off-by: Fam Zheng --- v2: Drop superfluous hunk. --- scripts/texi2pod.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

Re: [Qemu-devel] [PATCH v9 04/17] vnc: hoist allocation of VncBasicInfo to callers

2015-10-20 Thread Markus Armbruster
Eric Blake writes: > A future qapi patch will rework generated structs with a base > class to be unboxed. In preparation for that, change the code > that allocates then populates an info struct to instead merely > populate the fields of an info field passed in as a parameter. > Add rudimentary E

Re: [Qemu-devel] Trouble with numlock and SDL

2015-10-20 Thread Gerd Hoffmann
On Mo, 2015-10-19 at 18:02 +0200, Erik Rull wrote: > Hi Gerd, > > any ideas if there was an update or patch on this point? I tried to check > the commits since April but didn't find something that may fit... Nobody coded this up so far ... cheers, Gerd

Re: [Qemu-devel] [RFC] transactions: add transaction-wide property

2015-10-20 Thread Fam Zheng
On Thu, 09/24 17:40, John Snow wrote: > This replaces the per-action property as in Fam's series. > Instead, we have a transaction-wide property that is shared > with each action. > > At the action level, if a property supplied transaction-wide > is disagreeable, we return error and the transactio

Re: [Qemu-devel] [PATCH COLO-Frame v9 06/32] migration: Integrate COLO checkpoint process into loadvm

2015-10-20 Thread zhanghailiang
On 2015/10/19 17:17, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: Switch from normal migration loadvm process into COLO checkpoint process if COLO mode is enabled. We add three new members to struct MigrationIncomingState, 'have_colo_incoming_thread' and

[Qemu-devel] [PULL v2 5/7] Enable fw_cfg DMA interface for ARM

2015-10-20 Thread Gerd Hoffmann
From: Marc Marí Enable the fw_cfg DMA interface for the ARM virt machine. Based on Gerd Hoffman's initial implementation. Signed-off-by: Marc Marí Reviewed-by: Peter Maydell Reviewed-by: Laszlo Ersek Signed-off-by: Gerd Hoffmann --- hw/arm/virt.c | 8 1 file changed, 4 insertions(

Re: [Qemu-devel] [ipxe-devel] EFI_PXE_BASE_CODE_PROTOCOL

2015-10-20 Thread Gerd Hoffmann
Hi, > The guids translate to: > > 245DCA21-FB7B-11D3-8F01-00A0C969723B gEfiPxeBaseCodeCallbackProtocolGuid > 41D94CD2-35B6-455A-8258-D4E51334AADD gEfiIp4ProtocolGuid > 3AD9DF29-4501-478D-B1F8-7F7FE70E50F3 gEfiUdp4ProtocolGuid > F4B427BB-BA21-4F16-BC4E-43E416AB619C gEfiArpProtocolGuid > 245DCA21

[Qemu-devel] [PULL v2 4/7] Implement fw_cfg DMA interface

2015-10-20 Thread Gerd Hoffmann
From: Marc Marí Based on the specifications on docs/specs/fw_cfg.txt This interface is an addon. The old interface can still be used as usual. Based on Gerd Hoffman's initial implementation. Signed-off-by: Marc Marí Reviewed-by: Laszlo Ersek Signed-off-by: Gerd Hoffmann --- hw/arm/virt.c

[Qemu-devel] Statically Compiling including SDL

2015-10-20 Thread sai pavan
Hi , I am trying to compile QEMU with --enable-sdl and --static. And i have installed libsdl-dev. I get the following error ERROR: User requested feature sdl configure was not able to find it. Install SDL devel Is there any know issue here ? or am i missing any more libraries. FYI

Re: [Qemu-devel] [PATCH COLO-Frame v9 08/32] COLO/migration: establish a new communication path from destination to source

2015-10-20 Thread zhanghailiang
On 2015/10/19 17:54, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: Add a new member 'to_src_file' to MigrationIncomingState and a new member 'from_dst_file' to MigrationState. They will be used for returning messages from destination to source. It will als

Re: [Qemu-devel] [PATCH v7 27/39] block: Add blk_remove_bs()

2015-10-20 Thread Kevin Wolf
Am 19.10.2015 um 17:53 hat Max Reitz geschrieben: > This function removes the BlockDriverState associated with the given > BlockBackend from that BB and sets the BDS pointer in the BB to NULL. > > Signed-off-by: Max Reitz > --- > block/block-backend.c | 12 > include/sysemu

Re: [Qemu-devel] [PATCH 03/17] rbd: add support for getting password from QCryptoSecret object

2015-10-20 Thread Daniel P. Berrange
On Mon, Oct 19, 2015 at 03:57:29PM -0700, Josh Durgin wrote: > On 10/19/2015 08:09 AM, Daniel P. Berrange wrote: > >Currently RBD passwords must be provided on the command line > >via > > > > $QEMU -drive file=rbd:pool/image:id=myname:\ > > key=QVFDVm41aE82SHpGQWhBQXEwTkN2OGp0SmNJY0UrSE9CbE1R

Re: [Qemu-devel] Statically Compiling including SDL

2015-10-20 Thread Peter Maydell
On 20 October 2015 at 07:59, sai pavan wrote: > Hi , > > I am trying to compile QEMU with --enable-sdl and --static. And i have > installed libsdl-dev. > I get the following error > > ERROR: User requested feature sdl >configure was not able to find it. >Install SDL devel > > Is th

[Qemu-devel] [PULL 1/3] usb-host: add wakeup call for iso xfers

2015-10-20 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/usb/host-libusb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c index 5e492fd..7695a97 100644 --- a/hw/usb/host-libusb.c +++ b/hw/usb/host-libusb.c @@ -451,6 +451,7 @@ static void usb_host_req_complete_iso(struc

Re: [Qemu-devel] [PATCH] vmxnet3: Do not fill stats if device is inactive

2015-10-20 Thread Jason Wang
On 10/20/2015 03:11 PM, Dmitry Fleytman wrote: > Hi Jason, > > Sure. No problem. > > Acked-by: Dmitry Fleytman mailto:dmi...@daynix.com>> > > Dmitry. Thanks. > >> On 20 Oct 2015, at 06:08 AM, Jason Wang > > wrote: >> >> >> >> On 10/18/2015 03:16 PM, Dmitry Fleytman w

[Qemu-devel] [PULL 2/3] usb: print device id in "info usb" monitor command

2015-10-20 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/usb/bus.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/usb/bus.c b/hw/usb/bus.c index 5f39e1e..ee6b43a 100644 --- a/hw/usb/bus.c +++ b/hw/usb/bus.c @@ -655,9 +655,12 @@ void hmp_info_usb(Monitor *mon, const QDict *qdict)

Re: [Qemu-devel] [PATCH v9 04/17] vnc: hoist allocation of VncBasicInfo to callers

2015-10-20 Thread Gerd Hoffmann
Hi, > > -static VncBasicInfo *vnc_basic_info_get(struct sockaddr_storage *sa, > > -socklen_t salen) > > +static void vnc_basic_info_get(struct sockaddr_storage *sa, > > + socklen_t salen, > > + Vn

Re: [Qemu-devel] [PATCH 0/6] e1000: Various fixes and registers' implementation

2015-10-20 Thread Jason Wang
On 10/18/2015 03:53 PM, Leonid Bloch wrote: > This series fixes several issues with incorrect packet/octet counting in > e1000's Statistic registers, fixes a bug in the packet address filtering > procedure, and implements many MAC registers that were absent before. > Additionally, some cosmetic c

[Qemu-devel] [PATCH v3 5/5] virtio-9p: add savem handlers

2015-10-20 Thread Greg Kurz
We don't support migration of mounted 9p shares. This is handled by a migration blocker. One would expect, however, to be able to migrate if the share is unmounted. Unfortunately virtio-9p-device does not register savevm handlers at all ! Migration succeeds and leaves the guest with a dangling dev

[Qemu-devel] [PATCH v3 4/5] virtio-9p: add unrealize handler

2015-10-20 Thread Greg Kurz
This patch allows to hot-unplug a quiescent virtio-9p device, and free its allocated resources. A refcount is added to the v9fs thread pool, so that its resources are freed as well when the last virtio-9p device is unplugged. Note that we have an unplug blocker which prevents this code to be reach

Re: [Qemu-devel] [PATCH 1/2] vl: trivial: minor tweaks to a max-cpu error msg

2015-10-20 Thread Markus Armbruster
Andrew Jones writes: > Signed-off-by: Andrew Jones > --- > vl.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/vl.c b/vl.c > index 7c806a2428399..9a64b75ebbd24 100644 > --- a/vl.c > +++ b/vl.c > @@ -4080,8 +4080,8 @@ int main(int argc, char **argv, char **envp) >

[Qemu-devel] [PATCH v3 2/5] qdev: add the @unplug_is_blocked handler

2015-10-20 Thread Greg Kurz
This handler allows to ask a device instance if it can be hot-unplugged. It is to be defined in device classes where hot-unpluggability depends on the device state (for example, virtio-9p devices cannot be unplugged if the 9p share is mounted in the guest). Signed-off-by: Greg Kurz --- hw/core/q

[Qemu-devel] [PATCH v3 3/5] virtio-9p: block hot-unplug when device is active

2015-10-20 Thread Greg Kurz
Hot-unplug of an active virtio-9p device is not currently supported. Until we have that, let's block hot-unplugging when the 9p share is mounted in the guest. This patch implements a hot-unplug blocker feature like we already have for migration. Both virtio-9p-pci and virtio-9p-ccw were adapted ac

Re: [Qemu-devel] [PULL v4 00/14] qemu-ga patch queue

2015-10-20 Thread Peter Maydell
On 20 October 2015 at 00:38, Michael Roth wrote: > Hi Peter, > > Please note that 'glib-compat: add 2.38/2.40/2.46 asserts' is also in > Marc-André's recent ivshmem PULL. The 2 versions of the patches are identical, > but let me know if you'd prefer a re-send/re-base later. > > The following chang

[Qemu-devel] [RFC PATCH v2 4/5] kvm_arm: Implement support for ITS emulation by KVM

2015-10-20 Thread Pavel Fedin
This patch relies on new kernel API which is not released yet. Signed-off-by: Pavel Fedin --- hw/intc/Makefile.objs | 1 + hw/intc/arm_gicv3_its_common.c | 2 +- hw/intc/arm_gicv3_its_kvm.c| 88 ++ 3 files changed, 90 insertions(+), 1 deleti

[Qemu-devel] [RFC PATCH v2 1/5] hw/intc: Implement ITS base class

2015-10-20 Thread Pavel Fedin
This is the basic skeleton for both KVM and software-emulated ITS. Signed-off-by: Pavel Fedin --- hw/intc/Makefile.objs | 1 + hw/intc/arm_gicv3_its_common.c | 154 + include/hw/intc/arm_gicv3_its_common.h | 72 +++ target-a

Re: [Qemu-devel] [PATCH] xen-platform: Replace assert() with appropriate error reporting

2015-10-20 Thread Stefano Stabellini
On Mon, 19 Oct 2015, Paolo Bonzini wrote: > On 19/10/2015 20:39, Eduardo Habkost wrote: > > Commit dbb7405d8caad0814ceddd568cb49f163a847561 made it possible to > > trigger an assert using "-device xen-platform". Replace it with > > appropriate error reporting. > > > > Before: > > > > $ qemu-sys

Re: [Qemu-devel] [PATCH v8 00/27] vhost-user: add migration support

2015-10-20 Thread Michael S. Tsirkin
On Tue, Oct 20, 2015 at 08:30:49AM +0200, Thibaut Collet wrote: > On Mon, Oct 19, 2015 at 11:12 PM, Michael S. Tsirkin wrote: > > On Mon, Oct 19, 2015 at 06:42:43PM +0200, Thibaut Collet wrote: > >> > > >> > Can you pls check refs/heads/for_thibaut? > >> > It should have your patch as the latest c

Re: [Qemu-devel] [PATCH v7 31/42] Page request: Process incoming page request

2015-10-20 Thread Juan Quintela
"Dr. David Alan Gilbert" wrote: > * Juan Quintela (quint...@redhat.com) wrote: >> Once here, do we care about calling malloc with the rcu set? or could >> we just call malloc at the beggining of the function and free it in case >> that it is not needed on err? > > Why would that be better? We w

[Qemu-devel] [PULL 0/1] virtio-input: ignore events until the guest driver is ready

2015-10-20 Thread Gerd Hoffmann
ailable in the git repository at: git://git.kraxel.org/qemu tags/pull-input-20151020-1 for you to fetch changes up to d9460a7557672af9c4d9d4f153200d1075ed5a78: virtio-input: ignore events until the guest driver is ready (2015-10-20 08:5

[Qemu-devel] [PATCH v3 0/5] virtio-9p: hotplug and migration support

2015-10-20 Thread Greg Kurz
We already have a blocker to prevent migration of an active virtio-9p device. But in fact, there is no migration support at all for 9p, even if the device is considered to be quiescent (when the VirtFS share is not mounted): migration succeeds but the device is lost in the restarted guest. Hotunplu

[Qemu-devel] [PULL 1/1] virtio-input: ignore events until the guest driver is ready

2015-10-20 Thread Gerd Hoffmann
Cc: qemu-sta...@nongnu.org Signed-off-by: Gerd Hoffmann --- hw/input/virtio-input.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/input/virtio-input.c b/hw/input/virtio-input.c index 7b25d27..1f5a40d 100644 --- a/hw/input/virtio-input.c +++ b/hw/input/virtio-input.c @@ -20,6 +20,10 @

[Qemu-devel] [PULL 0/3] usb patch queue

2015-10-20 Thread Gerd Hoffmann
ble in the git repository at: git://git.kraxel.org/qemu tags/pull-usb-20151020-1 for you to fetch changes up to 37bc43f7fbfb38003550b327002e59d21b80a3e4: usb-audio: increate default buffer size (2015-10-20 09:15:23 +0200) usb:

Re: [Qemu-devel] [PATCH 4/6] e1000: Fixing the received/transmitted octets' counters

2015-10-20 Thread Jason Wang
On 10/18/2015 03:53 PM, Leonid Bloch wrote: > Previously, the lower parts of these counters (TORL, TOTL) were > resetting after reaching their maximal values, and since the continuation > of counting in the higher parts (TORH, TOTH) was triggered by an > overflow event of the lower parts, the cou

Re: [Qemu-devel] [PATCH 1/3] block/gluster: add support for multiple gluster servers

2015-10-20 Thread Prasanna Kumar Kalever
On Tuesday, October 20, 2015 1:38:37 AM, Eric Blake wrote: > On 10/19/2015 06:13 AM, Prasanna Kumar Kalever wrote: > > This patch adds a way to specify multiple volfile servers to the gluster > > block backend of QEMU with tcp|rdma transport types and their port numbers. > > When sending a multi

[Qemu-devel] [RFC PATCH v2 5/5] arm/virt: Add ITS to the virt board

2015-10-20 Thread Pavel Fedin
If supported by the configuration, ITS will be added automatically. This patch also renames v2m_phandle to msi_phandle because it's now used by both MSI implementations. Signed-off-by: Pavel Fedin --- hw/arm/virt.c | 47 +-- 1 file changed, 41 inserti

Re: [Qemu-devel] [PULL 0/3] usb patch queue

2015-10-20 Thread Peter Maydell
tes/sstabellini/tags/2015-10-19-tag' into > staging (2015-10-19 12:13:27 +0100) > > are available in the git repository at: > > > git://git.kraxel.org/qemu tags/pull-usb-20151020-1 > > for you to fetch changes up to 37bc43f7fbfb38003550b327002e59d21b80a3e4: > >

[Qemu-devel] [PULL 3/3] usb-audio: increate default buffer size

2015-10-20 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/usb/dev-audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/usb/dev-audio.c b/hw/usb/dev-audio.c index f092bb8..02fb110 100644 --- a/hw/usb/dev-audio.c +++ b/hw/usb/dev-audio.c @@ -664,7 +664,7 @@ static const VMStateDescription vmsta

[Qemu-devel] [PATCH] gdb command: qemu aios, qemu aiohandlers

2015-10-20 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Two new gdb commands are added: qemu iohandlers that dumps the list of waiting iohandlers, this is particularly useful for trying to figure out where an incoming migration is blocked. For 'fd_coroutine_enter' cases we dump a full backtrace. qe

Re: [Qemu-devel] [PATCH v7 00/39] blockdev: BlockBackend and media

2015-10-20 Thread Kevin Wolf
Am 19.10.2015 um 17:53 hat Max Reitz geschrieben: > This series reworks a lot regarding BlockBackend and media. Basically, > it allows empty BlockBackends, that is BBs without a BDS tree. > > Before this series, empty drives are represented by a BlockBackend with > an empty BDS attached to it (a B

Re: [Qemu-devel] [PATCH v8 18/54] Migration commands

2015-10-20 Thread Juan Quintela
"Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > Create QEMU_VM_COMMAND section type for sending commands from > source to destination. These commands are not intended to convey > guest state but to control the migration process. > > For use in postcopy. > > Signed-off-

Re: [Qemu-devel] [PATCH v8 19/54] Return path: Control commands

2015-10-20 Thread Juan Quintela
"Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > Add two src->dest commands: >* OPEN_RETURN_PATH - To request that the destination open the return path >* PING - Request an acknowledge from the destination > > Signed-off-by: Dr. David Alan Gilbert > Reviewed-by:

Re: [Qemu-devel] [PATCH v8 21/54] Return path: Source handling of return path

2015-10-20 Thread Juan Quintela
"Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > Open a return path, and handle messages that are received upon it. > > Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Juan Quintela > +/* > + * Return true if we're already in the middle of a migration > + * (i.e.

[Qemu-devel] PING: [PATCH v4 0/7] qom: more efficient object property handling

2015-10-20 Thread Pavel Fedin
Hello! Is there any progress on this? 6/7 significantly improves startup performance, i'd like to have it accepted. Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia > -Original Message- > From: qemu-devel-bounces+p.fedin=samsung@nongnu.org [mailt

Re: [Qemu-devel] [PATCH v8 00/27] vhost-user: add migration support

2015-10-20 Thread Thibaut Collet
On Tue, Oct 20, 2015 at 12:21 PM, Michael S. Tsirkin wrote: > On Tue, Oct 20, 2015 at 08:30:49AM +0200, Thibaut Collet wrote: >> On Mon, Oct 19, 2015 at 11:12 PM, Michael S. Tsirkin wrote: >> > On Mon, Oct 19, 2015 at 06:42:43PM +0200, Thibaut Collet wrote: >> >> > >> >> > Can you pls check refs/

[Qemu-devel] [RFC PATCH v2 0/5] vITS support

2015-10-20 Thread Pavel Fedin
This series introduces support for in-kernel GICv3 ITS emulation. It is based on kernel API which is not released yet, therefore i post it as an RFC. Kernel patches which implement this functionality are: - [PATCH v2 00/15] KVM: arm64: GICv3 ITS emulation http://www.spinics.net/lists/arm-kernel/

[Qemu-devel] [PATCH v3 1/5] virtio-9p-coth: fix init function

2015-10-20 Thread Greg Kurz
The v9fs thread pool is a singleton, shared by all virtio-9p devices. The current code leaks underlying glib pointers each time a new virtio-9p device gets realized. Let's fix that ! While we're here, we also fix the trivial error path when memory allocation is failing. Signed-off-by: Greg Kurz

Re: [Qemu-devel] [PATCH v8 24/54] Add wrappers and handlers for sending/receiving the postcopy-ram migration messages.

2015-10-20 Thread Juan Quintela
"Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > The state of the postcopy process is managed via a series of messages; >* Add wrappers and handlers for sending/receiving these messages >* Add state variable that track the current state of postcopy > > Signed-off

Re: [Qemu-devel] [PATCH] vmxnet3: Do not fill stats if device is inactive

2015-10-20 Thread Dmitry Fleytman
Hi Jason, Sure. No problem. Acked-by: Dmitry Fleytman mailto:dmi...@daynix.com>> Dmitry. > On 20 Oct 2015, at 06:08 AM, Jason Wang wrote: > > > > On 10/18/2015 03:16 PM, Dmitry Fleytman wrote: >> ACK > > Hi Dmitry: > > Thanks a lot for the reviewing. > > As I want to add your "Acked-by"

Re: [Qemu-devel] [PATCH v8 01/54] Add postcopy documentation

2015-10-20 Thread Juan Quintela
Rsend to proper list. Removed cc'd Juan Quintela wrote: > "Dr. David Alan Gilbert (git)" wrote: >> From: "Dr. David Alan Gilbert" >> >> Signed-off-by: Dr. David Alan Gilbert >> Reviewed-by: Amit Shah Reviewed-by: Juan Quintela

Re: [Qemu-devel] [PATCH v8 04/54] Move configuration section writing

2015-10-20 Thread Juan Quintela
Juan Quintela wrote: Post proper list remove cc'd > "Dr. David Alan Gilbert (git)" wrote: >> From: "Dr. David Alan Gilbert" >> >> The vmstate_configuration is currently written >> in 'qemu_savevm_state_begin', move it to >> 'qemu_savevm_state_header' since it's got a hard >> requirement that

Re: [Qemu-devel] [PULL v4 00/14] qemu-ga patch queue

2015-10-20 Thread Peter Maydell
On 20 October 2015 at 10:52, Peter Maydell wrote: > On 20 October 2015 at 00:38, Michael Roth wrote: >> >> qemu-ga patch queue >> >> * add unit tests for qemu-ga >> * add guest-exec support for posix/w32 guests >> * added 'qemu-ga'

Re: [Qemu-devel] [PATCH v8 06/54] Rename mis->file to from_src_file

2015-10-20 Thread Juan Quintela
Juan Quintela wrote: > "Dr. David Alan Gilbert (git)" wrote: Post proper list Remove cc'd >> From: "Dr. David Alan Gilbert" >> >> 'file' becomes confusing when you have flows in each direction; >> rename to make it clear. >> This leaves just the main forward direction ms->file, which is used

Re: [Qemu-devel] [PATCH v8 09/54] Add QEMU_MADV_NOHUGEPAGE

2015-10-20 Thread Juan Quintela
Juan Quintela wrote: Post proper list Remove cc'd > "Dr. David Alan Gilbert (git)" wrote: >> From: "Dr. David Alan Gilbert" >> >> Add QEMU_MADV_NOHUGEPAGE as an OS-independent version of >> MADV_NOHUGEPAGE. >> >> We include sys/mman.h before making the test to ensure >> that we pick up the s

Re: [Qemu-devel] [PULL 0/2] vga: enable virtio-vga for pseries, vmsvga cursor checks.

2015-10-20 Thread Peter Maydell
tabellini/tags/2015-10-19-tag' into > staging (2015-10-19 12:13:27 +0100) > > are available in the git repository at: > > > git://git.kraxel.org/qemu tags/pull-vga-20151020-1 > > for you to fetch changes up to 5829b097204189c56dd1fb62c7f827360394b

Re: [Qemu-devel] [PATCH v8 10/54] migration/ram.c: Use RAMBlock rather than MemoryRegion

2015-10-20 Thread Juan Quintela
Juan Quintela wrote: Post proper list Remove cc'd > "Dr. David Alan Gilbert (git)" wrote: >> From: "Dr. David Alan Gilbert" >> >> RAM migration mainly works on RAMBlocks but in a few places >> uses data from MemoryRegions to access the same information that's >> already held in RAMBlocks; cle

Re: [Qemu-devel] [PATCH v8 17/54] Return path: socket_writev_buffer: Block even on non-blocking fd's

2015-10-20 Thread Juan Quintela
Juan Quintela wrote: Post proper list Remove cc'd > "Dr. David Alan Gilbert (git)" wrote: >> From: "Dr. David Alan Gilbert" >> >> The destination sets the fd to non-blocking on incoming migrations; >> this also affects the return path from the destination, and thus we >> need to make sure we

Re: [Qemu-devel] [PATCH] file_ram_alloc: propagate error to caller instead of terminating QEMU

2015-10-20 Thread Paolo Bonzini
On 19/10/2015 19:11, Igor Mammedov wrote: > QEMU shouldn't exits from file_ram_alloc() if -mem-prealloc option is > specified > and "object_add memory-backend-file,..." fails allocation during memory > hotplug. > > Propagate error to a caller and let it decide what to do with allocation > fai

Re: [Qemu-devel] Question about xen disk unplug support for ahci missed in qemu

2015-10-20 Thread Stefano Stabellini
On Mon, 19 Oct 2015, Laszlo Ersek wrote: > On 10/16/15 21:09, Laszlo Ersek wrote: > > On 10/16/15 13:34, Fabio Fantoni wrote: > >> Il 16/10/2015 12:47, Stefano Stabellini ha scritto: > >>> On Fri, 16 Oct 2015, Fabio Fantoni wrote: > Il 16/10/2015 12:13, Anthony PERARD ha scritto: > > On Fr

Re: [Qemu-devel] [PATCH] xen: fix invalid assertion

2015-10-20 Thread Stefano Stabellini
On Mon, 19 Oct 2015, Paolo Bonzini wrote: > Asserting "true" is not that useful. > > Reported by Coverity. > > Signed-off-by: Paolo Bonzini Acked-by: Stefano Stabellini > hw/xen/xen_pt_config_init.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/hw/xen/xen_pt_

Re: [Qemu-devel] [PATCH v2 6/9] target-i386: Handle I/O breakpoints

2015-10-20 Thread Paolo Bonzini
On 19/10/2015 19:57, Eduardo Habkost wrote: > On Mon, Oct 19, 2015 at 07:46:51AM -1000, Richard Henderson wrote: >> On 10/19/2015 07:30 AM, Eduardo Habkost wrote: > +/* Notice when we should enable calls to bpt_io. */ > +return (hw_breakpoint_enabled(env->dr[7], index) >>

Re: [Qemu-devel] [PATCH 1/2] vl: trivial: minor tweaks to a max-cpu error msg

2015-10-20 Thread Paolo Bonzini
On 19/10/2015 20:51, Eduardo Habkost wrote: > On Sun, Oct 18, 2015 at 07:35:27PM +0200, Andrew Jones wrote: >> Signed-off-by: Andrew Jones > > Reviewed-by: Eduardo Habkost > Acked-by: Eduardo Habkost > > If this can go through my tree, please let me know. Sure, why not. Paolo >> --- >> v

Re: [Qemu-devel] [PATCH v2 02/16] sockets: move qapi_copy_SocketAddress into qemu-sockets.c

2015-10-20 Thread Paolo Bonzini
On 20/10/2015 00:05, Eric Blake wrote: > > -qiv = qmp_input_visitor_new(obj); > > -iv = qmp_input_get_visitor(qiv); > > -visit_type_SocketAddress(iv, p_dest, NULL, &error_abort); > > -qmp_input_visitor_cleanup(qiv); > > -qobject_decref(obj); > Interesting approach - it means t

Re: [Qemu-devel] [PATCH v9 05/17] qapi: Unbox base members

2015-10-20 Thread Markus Armbruster
Eric Blake writes: > Rather than storing a base class as a pointer to a box, just > store the fields of that base class in the same order, so that > a child struct can be safely cast to its parent. This gives > less malloc overhead, less pointer dereferencing, and even less > generated code. Lo

[Qemu-devel] [PULL 2/2] vmsvga: more cursor checks

2015-10-20 Thread Gerd Hoffmann
Check the cursor size more carefully. Also switch to unsigned while being at it, so they can't be negative. Signed-off-by: Gerd Hoffmann --- hw/display/vmware_vga.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c

Re: [Qemu-devel] [PATCH] qxl: lock current_async update in qxl_soft_reset

2015-10-20 Thread Paolo Bonzini
On 20/10/2015 09:58, Gerd Hoffmann wrote: > Cc: Paolo Bonzini > Signed-off-by: Gerd Hoffmann > --- > hw/display/qxl.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/hw/display/qxl.c b/hw/display/qxl.c > index 9c961da..20dc72e 100644 > --- a/hw/display/qxl.c > +++ b/hw/display/qxl.c

[Qemu-devel] [PULL 1/2] ppc/spapr: Allow VIRTIO_VGA

2015-10-20 Thread Gerd Hoffmann
From: Benjamin Herrenschmidt It works fine with the Linux driver out of the box Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Gerd Hoffmann --- default-configs/ppc64-softmmu.mak | 1 + hw/ppc/spapr.c| 1 + 2 files changed, 2 insertions(+) diff --git a/default-confi

Re: [Qemu-devel] PING: [PATCH v4 0/7] qom: more efficient object property handling

2015-10-20 Thread Paolo Bonzini
On 20/10/2015 13:38, Pavel Fedin wrote: > Hello! Is there any progress on this? > 6/7 significantly improves startup performance, i'd like to have it accepted. Me too. :) I am waiting for Andreas, since he's the maintainer for QOM. Paolo > >> -Original Message- >> From: qemu-devel-

[Qemu-devel] [PULL 0/2] vga: enable virtio-vga for pseries, vmsvga cursor checks.

2015-10-20 Thread Gerd Hoffmann
in the git repository at: git://git.kraxel.org/qemu tags/pull-vga-20151020-1 for you to fetch changes up to 5829b097204189c56dd1fb62c7f827360394bb39: vmsvga: more cursor checks (2015-10-20 09:26:36 +0200) vga: enable virtio-vga f

Re: [Qemu-devel] [PATCH 1/2] net: make iov_to_buf take right size argument in nc_sendv_compat()

2015-10-20 Thread Paolo Bonzini
On 20/10/2015 09:20, Jason Wang wrote: > > > On 10/20/2015 09:51 AM, Yang Hongyang wrote: >> We want "buf, sizeof(buf)" here. sizeof(buffer) is the size of a >> pointer, which is wrong. >> Thanks to Paolo for pointing it out. >> >> Signed-off-by: Yang Hongyang >> Cc: Jason Wang >> Cc: Paolo

Re: [Qemu-devel] PING: [PATCH v4 0/7] qom: more efficient object property handling

2015-10-20 Thread Daniel P. Berrange
On Tue, Oct 20, 2015 at 02:15:53PM +0200, Paolo Bonzini wrote: > > > On 20/10/2015 13:38, Pavel Fedin wrote: > > Hello! Is there any progress on this? > > 6/7 significantly improves startup performance, i'd like to have it > > accepted. > > Me too. :) > > I am waiting for Andreas, since he's

[Qemu-devel] [PATCH] seccomp: loosen library version dependency

2015-10-20 Thread dann frazier
Drop the libseccomp required version back to 2.1.0, restoring the ability to build w/ --enable-seccomp on Ubuntu 14.04. Commit 4cc47f8b3cc4f32586ba2f7fce1dc267da774a69 tightened the dependency on libseccomp from version 2.1.0 to 2.1.1. This broke building on Ubuntu 14.04, the current Ubuntu LTS re

[Qemu-devel] [RFC PATCH v2 2/5] kernel: Add vGICv3 ITS definitions

2015-10-20 Thread Pavel Fedin
This temporary patch adds kernel API definitions. Use proper header update procedure after these features are released. Signed-off-by: Pavel Fedin --- linux-headers/asm-arm64/kvm.h | 1 + linux-headers/linux/kvm.h | 9 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/

[Qemu-devel] [RFC PATCH v2 3/5] kvm_arm: Pass requester ID to MSI routing functions

2015-10-20 Thread Pavel Fedin
Introduce global kvm_arm_msi_use_devid flag and pass device IDs in kvm_arch_fixup_msi_route(). Device IDs are required by the ITS. Signed-off-by: Pavel Fedin --- target-arm/kvm.c | 6 ++ target-arm/kvm_arm.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/target-arm/kvm.c b/targe

Re: [Qemu-devel] [PATCH] net: Remove duplicate data from query-rx-filter on multiqueue net devices

2015-10-20 Thread Jason Wang
On 10/19/2015 09:04 PM, Vladislav Yasevich wrote: > When responding to a query-rx-filter command on a multiqueue > netdev, qemu reports the data for each queue. The data, however, > is not per-queue, but per device and the same data is reported > multiple times. This causes confusion and may al

Re: [Qemu-devel] PING: [PATCH v4 0/7] qom: more efficient object property handling

2015-10-20 Thread Andreas Färber
Am 20.10.2015 um 14:15 schrieb Paolo Bonzini: > On 20/10/2015 13:38, Pavel Fedin wrote: >> Hello! Is there any progress on this? >> 6/7 significantly improves startup performance, i'd like to have it >> accepted. > > Me too. :) > > I am waiting for Andreas, since he's the maintainer for QOM.

[Qemu-devel] [PATCH] qxl: lock current_async update in qxl_soft_reset

2015-10-20 Thread Gerd Hoffmann
Cc: Paolo Bonzini Signed-off-by: Gerd Hoffmann --- hw/display/qxl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/display/qxl.c b/hw/display/qxl.c index 9c961da..20dc72e 100644 --- a/hw/display/qxl.c +++ b/hw/display/qxl.c @@ -1156,7 +1156,9 @@ static void qxl_soft_reset(PCIQXLDevice

Re: [Qemu-devel] [PULL 0/1] virtio-input: ignore events until the guest driver is ready

2015-10-20 Thread Peter Maydell
remotes/sstabellini/tags/2015-10-19-tag' into > staging (2015-10-19 12:13:27 +0100) > > are available in the git repository at: > > > git://git.kraxel.org/qemu tags/pull-input-20151020-1 > > for you to fetch changes up to d9460a7557672af9c4d9d4f153200d1075ed5a78: &

Re: [Qemu-devel] [PATCH v3 3/5] virtio-9p: block hot-unplug when device is active

2015-10-20 Thread Michael S. Tsirkin
On Tue, Oct 20, 2015 at 11:17:00AM +0200, Greg Kurz wrote: > Hot-unplug of an active virtio-9p device is not currently supported. Until > we have that, let's block hot-unplugging when the 9p share is mounted in > the guest. > > This patch implements a hot-unplug blocker feature like we already hav

Re: [Qemu-devel] [PULL v2 0/7] fw_cfg: add dma interface, add strings via cmdline.

2015-10-20 Thread Peter Maydell
e remote-tracking branch 'remotes/bonzini/tags/for-upstream' into > staging (2015-10-19 10:52:39 +0100) > > are available in the git repository at: > > > git://git.kraxel.org/qemu tags/pull-fw_cfg-20151020-1 > > for you to fetch changes up to 2cc06a8843ace3d03464

Re: [Qemu-devel] Question about xen disk unplug support for ahci missed in qemu

2015-10-20 Thread Laszlo Ersek
On 10/20/15 13:59, Stefano Stabellini wrote: > On Mon, 19 Oct 2015, Laszlo Ersek wrote: >> On 10/16/15 21:09, Laszlo Ersek wrote: >>> On 10/16/15 13:34, Fabio Fantoni wrote: Il 16/10/2015 12:47, Stefano Stabellini ha scritto: > On Fri, 16 Oct 2015, Fabio Fantoni wrote: >> Il 16/10/2015

Re: [Qemu-devel] x86 amd64 singlestepping bug through syscall instruction

2015-10-20 Thread Rudolf Marek
Hi all, It seems this problem was not picked by anyone from QEMU community. Is there other way to report this bug? Thanks Rudolf -- S přátelským pozdravem / Best regards / Mit freundlichen Grüßen Ing. Rudolf Marek SYSGO s.r.o. Zelený pruh 99 CZ-14800 Praha 4 Phone: +420 222138 111, +49 6136

[Qemu-devel] [PATCH v2 2/3] target-i386: calculate vcpu's TSC rate to be migrated

2015-10-20 Thread Haozhong Zhang
If vcpu's TSC rate is not specified by the cpu option 'tsc-freq', we will use the value returned by KVM_GET_TSC_KHZ; otherwise, we use the user-specified value. Signed-off-by: Haozhong Zhang --- target-i386/kvm.c | 33 + 1 file changed, 33 insertions(+) diff --gi

[Qemu-devel] [PATCH v2 3/3] target-i386: load the migrated vcpu's TSC rate

2015-10-20 Thread Haozhong Zhang
Set vcpu's TSC rate to the migrated value (if any). If KVM supports TSC scaling, guest programs will observe TSC increasing in the migrated rate other than the host TSC rate. The loading is controlled by a new cpu option 'load-tsc-freq'. If it is present, then the loading will be enabled and the m

Re: [Qemu-devel] [PATCH v3 0/5] virtio-9p: hotplug and migration support

2015-10-20 Thread Michael S. Tsirkin
On Tue, Oct 20, 2015 at 11:16:40AM +0200, Greg Kurz wrote: > We already have a blocker to prevent migration of an active virtio-9p device. > But in fact, there is no migration support at all for 9p, even if the device > is considered to be quiescent (when the VirtFS share is not mounted): > migrat

Re: [Qemu-devel] PING: [PATCH v4 0/7] qom: more efficient object property handling

2015-10-20 Thread Daniel P. Berrange
On Tue, Oct 20, 2015 at 02:38:43PM +0200, Andreas Färber wrote: > Am 20.10.2015 um 14:15 schrieb Paolo Bonzini: > > On 20/10/2015 13:38, Pavel Fedin wrote: > >> Hello! Is there any progress on this? > >> 6/7 significantly improves startup performance, i'd like to have it > >> accepted. > > > >

Re: [Qemu-devel] What's the intended use of log.h logging?

2015-10-20 Thread Kevin Wolf
Am 19.10.2015 um 16:29 hat Markus Armbruster geschrieben: > Points I'd like to make: > > 1. Logging is not tracing. Logging logs events interesting for the > user. Tracing logs code execution. It's a debugging aid. The two > overlap to a degree, but they're not the same. It's hard to draw a l

Re: [Qemu-devel] PING: [PATCH v4 0/7] qom: more efficient object property handling

2015-10-20 Thread Andreas Färber
Am 20.10.2015 um 14:54 schrieb Daniel P. Berrange: > On Tue, Oct 20, 2015 at 02:38:43PM +0200, Andreas Färber wrote: >> Two problems apart from time: 1) Discussions about iterator design, 2) >> lack of test cases, and that applies to iterator-less v2, too. Circles >> back to me (or someone) looking

Re: [Qemu-devel] [PATCH v2 03/16] sockets: allow port to be NULL when listening on IP address

2015-10-20 Thread Daniel P. Berrange
On Mon, Oct 19, 2015 at 04:12:00PM -0600, Eric Blake wrote: > On 10/12/2015 05:14 AM, Daniel P. Berrange wrote: > > If the port in the SocketAddress struct is NULL, it can allow > > the kernel to automatically select a free port. This is useful > > in particular in unit tests to avoid a race trying

Re: [Qemu-devel] [PATCH v2 01/16] sockets: add helpers for creating SocketAddress from a socket

2015-10-20 Thread Daniel P. Berrange
On Mon, Oct 19, 2015 at 03:43:27PM -0600, Eric Blake wrote: > On 10/12/2015 05:14 AM, Daniel P. Berrange wrote: > > Add two helper methods that, given a socket file descriptor, > > can return a populated SocketAddress struct containing either > > the local or remote address information. > > > > Si

Re: [Qemu-devel] [PATCH v8 13/54] Move dirty page search state into separate structure

2015-10-20 Thread Juan Quintela
Juan Quintela wrote: Post proper list Remove cc'd > "Dr. David Alan Gilbert (git)" wrote: >> From: "Dr. David Alan Gilbert" >> >> Pull the search state for one iteration of the dirty page >> search into a structure. >> >> Signed-off-by: Dr. David Alan Gilbert >> Reviewed-by: Amit Shah Rev

[Qemu-devel] [PATCH v2 1/3] target-i386: add a subsection for migrating vcpu's TSC rate

2015-10-20 Thread Haozhong Zhang
The newly added subsection 'vmstate_tsc_khz' is used by following patches to migrate vcpu's TSC rate. For the back migration compatibility, this subsection is not migrated on pc-*-2.4 and older machine types by default. If users do want to migrate this subsection on older machine types, they can en

Re: [Qemu-devel] [PATCH 1/1] vhost: set the correct queue index in case of migration with multiqueue

2015-10-20 Thread Michael S. Tsirkin
On Mon, Oct 19, 2015 at 06:41:38PM +0200, Thibaut Collet wrote: > On Mon, Oct 19, 2015 at 5:41 PM, Michael S. Tsirkin wrote: > > On Mon, Oct 19, 2015 at 02:59:27PM +0200, Thibaut Collet wrote: > >> When a live migration is started the log address to mark dirty pages is > >> provided > >> to the v

Re: [Qemu-devel] [PATCH v8 27/54] postcopy: OS support test

2015-10-20 Thread Juan Quintela
"Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > Provide a check to see if the OS we're running on has all the bits > needed for postcopy. > > Creates postcopy-ram.c which will get most of the other helpers we need. > > Signed-off-by: Dr. David Alan Gilbert > Reviewed-b

Re: [Qemu-devel] [PATCH v8 28/54] migrate_start_postcopy: Command to trigger transition to postcopy

2015-10-20 Thread Juan Quintela
"Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > Once postcopy is enabled (with migrate_set_capability), the migration > will still start on precopy mode. To cause a transition into postcopy > the: > > migrate_start_postcopy > > command must be issued. Postcopy will

Re: [Qemu-devel] [PATCH 1/1] vhost: set the correct queue index in case of migration with multiqueue

2015-10-20 Thread Michael S. Tsirkin
On Mon, Oct 19, 2015 at 02:59:27PM +0200, Thibaut Collet wrote: > When a live migration is started the log address to mark dirty pages is > provided > to the vhost backend through the vhost_dev_set_log function. > This function is called for each queue pairs but the queue index is wrongly > set:

Re: [Qemu-devel] [PATCH v8 29/54] MIGRATION_STATUS_POSTCOPY_ACTIVE: Add new migration state

2015-10-20 Thread Juan Quintela
"Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > 'MIGRATION_STATUS_POSTCOPY_ACTIVE' is entered after migrate_start_postcopy > > 'migration_in_postcopy' is provided for other sections to know if > they're in postcopy. > > Signed-off-by: Dr. David Alan Gilbert > Reviewed-

[Qemu-devel] [PATCH v2 0/3] target-i386: save/restore vcpu's TSC rate during migration

2015-10-20 Thread Haozhong Zhang
This patchset enables QEMU to save/restore vcpu's TSC rate during the migration. When cooperating with KVM which supports TSC scaling, guest programs can observe a consistent guest TSC rate even though they are migrated among machines with different host TSC rates. A pair of cpu options 'save-tsc-

Re: [Qemu-devel] [PATCH v8 30/54] Avoid sending vmdescription during postcopy

2015-10-20 Thread Juan Quintela
"Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > VMDescription is normally sent at the end, after all > of the devices; however that's not the end for postcopy, > so just don't send it when in postcopy. > > Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Juan Quinte

  1   2   3   >