Re: [Qemu-devel] [PATCH 7/8] ipmi: introduce an ipmi_bmc_init_sensor() API

2016-01-12 Thread Cédric Le Goater
On 01/08/2016 09:18 PM, Corey Minyard wrote: > The way the SDR and sensors are handled currently in the code I wrote > is far from ideal, it's not scalable. In my mind, the BMC in qemu would > never be a very elaborate one, you would use an external BMC for that. Yes. I agree. It is a simulator

Re: [Qemu-devel] [PATCH 1/8] ipmi: fix SDR length value

2016-01-12 Thread Cédric Le Goater
On 01/08/2016 09:20 PM, Corey Minyard wrote: > On 01/06/2016 02:14 AM, Cédric Le Goater wrote: >> On 01/05/2016 08:59 PM, Eric Blake wrote: >>> On 01/05/2016 10:29 AM, Cédric Le Goater wrote: >>> >>> [meta-comment] Your messages were not marked in-reply-to: the 0/8 cover >>> letter, but came throug

Re: [Qemu-devel] [PATCH 06/13] HBitmap: Introduce "meta" bitmap to track bit changes

2016-01-12 Thread Vladimir Sementsov-Ogievskiy
On 11.01.2016 21:56, John Snow wrote: On 01/11/2016 10:40 AM, Vladimir Sementsov-Ogievskiy wrote: On 04.01.2016 13:27, Fam Zheng wrote: Upon each bit toggle, the corresponding bit in the meta bitmap will be set. Signed-off-by: Fam Zheng --- include/qemu/hbitmap.h | 8 +++ util/hbit

[Qemu-devel] [RFC PATCH] vhost: fix lost interrupts from slow reacting back-end

2016-01-12 Thread Victor Kaplansky
This RFC PATCH tries to solve the problem of lost interrupts from a slow back-end. Didier could you test it? Thanks, Victor When interrupts are unmasked, it could take some undefined time to the back-end to start routing events to guest_notifier. Till that the events will continue flow to masked_

Re: [Qemu-devel] [PATCH v6] spec: add qcow2 bitmaps extension specification

2016-01-12 Thread Vladimir Sementsov-Ogievskiy
On 11.01.2016 20:07, John Snow wrote: On 01/11/2016 07:20 AM, Vladimir Sementsov-Ogievskiy wrote: Are you sure? What about creation\last change dates, file links, user data, etc? For now, formally, current "For now, as no extra data is defined, extra_data_size is reserved and must be zero." is

Re: [Qemu-devel] [Xen-devel] [PATCH v4] igd-passthrough-i440FX: convert to realize()

2016-01-12 Thread Hao, Xudong
Yes, Linux VM update to a 3.18 kernel. The RHEL7.2 default kernel (should be 3.10) VM don't boot up with IGD pass-through, and Windows can't boot up either. Thanks, -Xudong > -Original Message- > From: Gerd Hoffmann [mailto:kra...@redhat.com] > Sent: Monday, January 11, 2016 6:32 PM > T

Re: [Qemu-devel] [PATCH] hmp: avoid redundant null termination of buffer

2016-01-12 Thread Markus Armbruster
Luiz Capitulino writes: > On Thu, 17 Dec 2015 18:10:59 +0530 (IST) > P J P wrote: > >>Hello, >> >> An OOB write issue was reported by Mr Ling Liu, CC'd here. It occurs while >> processing the 'sendkey' command, if the command argument was longer than >> the 'keyname_buf[16]' buffer. > > Ma

Re: [Qemu-devel] [PATCH] hmp: avoid redundant null termination of buffer

2016-01-12 Thread Markus Armbruster
Wolfgang Bumiller writes: > On Sun, Jan 10, 2016 at 10:56:55AM +0300, Michael Tokarev wrote: >> So, what's the status of this issue now? >> (it is CVE-2015-8619 btw, maybe worth to mention this in the commit message) > > Seems we concluded it's best to keep keyname_len around and simply check > i

Re: [Qemu-devel] [PATCH 4/5] block/backup: Add subclassed notifier

2016-01-12 Thread Paolo Bonzini
On 12/01/2016 01:36, John Snow wrote: > Instead of relying on peeking at bs->job, we want to explicitly get > a reference to the job that was involved in this notifier callback. > > Extend the Notifier to include a job pointer, and include a reference > to the job registering the callback. This

Re: [Qemu-devel] [Xen-devel] [PATCH v4] igd-passthrough-i440FX: convert to realize()

2016-01-12 Thread Michael S. Tsirkin
OK - it's possible that this patch commit 349a3b1cc9023f67f8fa336cb3c4a8f21a4aaaf3 Author: Cao jin Date: Sat Jan 2 16:02:20 2016 +0800 igd-passthrough: fix use of host_pci_config_read is required for older guests. This patch just went it - could you test lat

Re: [Qemu-devel] [RFC PATCH v2 02/10] Jhash: add linux kernel jhashtable in qemu

2016-01-12 Thread Dr. David Alan Gilbert
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote: > > > On 01/11/2016 08:50 PM, Dr. David Alan Gilbert wrote: > >* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote: > >> > >>On 01/08/2016 08:08 PM, Dr. David Alan Gilbert wrote: > >>>* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote: > From

Re: [Qemu-devel] [PATCH] net/vmxnet3: trace support for register access

2016-01-12 Thread Miao Yan
2016-01-12 15:57 GMT+08:00 Dmitry Fleytman : > >> On 12 Jan 2016, at 09:23 AM, Miao Yan wrote: >> >> Hi Dmitry, >> >> 2016-01-12 14:43 GMT+08:00 Dmitry Fleytman : >>> On 12 Jan 2016, at 04:38 AM, Miao Yan wrote: Turning debug printfs to trace points for register access >>> >>> Hell

Re: [Qemu-devel] [PATCH v4 1/1] xlnx-zynqmp: Add support for high DDR memory regions

2016-01-12 Thread Peter Maydell
On 12 January 2016 at 00:24, Alistair Francis wrote: > On Mon, Jan 11, 2016 at 8:04 AM, Peter Maydell > wrote: >> There are a couple of problems you're running into: >> >> (1) machine->ram_size is a ram_addr_t so might be 32 bit; you >> can do what virt.c does to avoid the warning and use a loca

Re: [Qemu-devel] live migration between different qemu versions

2016-01-12 Thread Dr. David Alan Gilbert
* Alexey (aluka...@alukardd.org) wrote: > Hi David. > > On 2016-01-11 22:51, Dr. David Alan Gilbert wrote: > >* Alexey (aluka...@alukardd.org) wrote: > >>Hello. > > > >Hi, > > > >>I have two servers between which I need have live migration. > >> > >>First server have QEMU emulator version 2.3.0 >

Re: [Qemu-devel] [PATCH] hmp: avoid redundant null termination of buffer

2016-01-12 Thread Wolfgang Bumiller
> On January 12, 2016 at 9:45 AM Markus Armbruster wrote: > > Wolfgang Bumiller writes: > > > When processing 'sendkey' command, hmp_sendkey routine null > > terminates the 'keyname_buf' array. This results in an OOB > > Well, it technically doesn't terminate, It does for combined keys where

Re: [Qemu-devel] [Xen-devel] [PATCH v4] igd-passthrough-i440FX: convert to realize()

2016-01-12 Thread Hao, Xudong
With latest qemu 7b8a354d4716, RHEL7.2 (with default kernel) VM still can't boot up with IGD. Thanks, -Xudong > -Original Message- > From: Michael S. Tsirkin [mailto:m...@redhat.com] > Sent: Tuesday, January 12, 2016 4:48 PM > To: Hao, Xudong > Cc: Gerd Hoffmann ; Stefano Stabellini >

Re: [Qemu-devel] x-input-send-event marked as experimental

2016-01-12 Thread Markus Armbruster
Marcelo Tosatti writes: > On Fri, Dec 18, 2015 at 09:01:33PM +0100, Markus Armbruster wrote: >> Marcelo Tosatti writes: >> >> > Gerd, >> > >> > commit df5b2adb7398d71016ee469f71e52075ed95e04e >> > Author: Gerd Hoffmann >> > Date: Tue Nov 25 14:54:17 2014 +0100 >> > >> > input: move input

Re: [Qemu-devel] [Xen-devel] [PATCH v4] igd-passthrough-i440FX: convert to realize()

2016-01-12 Thread Hao, Xudong
> -Original Message- > From: Stefano Stabellini [mailto:stefano.stabell...@eu.citrix.com] > Sent: Monday, January 11, 2016 6:46 PM > To: Hao, Xudong > Cc: Stefano Stabellini ; Lars Kurth > ; Lars Kurth ; Cao jin > ; xen-de...@lists.xensource.com; Stefano Stabellini > ; qemu-devel@nongnu.

Re: [Qemu-devel] live migration between different qemu versions

2016-01-12 Thread Alexey
Hello, On 2016-01-12 12:19, Dr. David Alan Gilbert wrote: * Alexey (aluka...@alukardd.org) wrote: Hi David. On 2016-01-11 22:51, Dr. David Alan Gilbert wrote: >* Alexey (aluka...@alukardd.org) wrote: >>Hello. > >Hi, > >>I have two servers between which I need have live migration. >> >>First se

Re: [Qemu-devel] live migration between different qemu versions

2016-01-12 Thread Dr. David Alan Gilbert
* Alexey (aluka...@alukardd.org) wrote: > Hello, > > On 2016-01-12 12:19, Dr. David Alan Gilbert wrote: > >* Alexey (aluka...@alukardd.org) wrote: > >>Hi David. > >> > >>On 2016-01-11 22:51, Dr. David Alan Gilbert wrote: > >>>* Alexey (aluka...@alukardd.org) wrote: > Hello. > >>> > >>>Hi, > >>

Re: [Qemu-devel] [PATCH 1/5] block: added lock image option and callback

2016-01-12 Thread Kevin Wolf
Am 12.01.2016 um 06:38 hat Denis V. Lunev geschrieben: > On 01/11/2016 08:31 PM, Kevin Wolf wrote: > >Am 23.12.2015 um 08:46 hat Denis V. Lunev geschrieben: > >>From: Olga Krishtal > >> > >>While opening the image we want to be sure that we are the > >>one who works with image, anf if it is not tr

Re: [Qemu-devel] [Bug 1529449] [NEW] serial is required for -device nvme

2016-01-12 Thread Markus Armbruster
Keith Busch writes: > On Mon, Jan 11, 2016 at 05:35:50PM +0100, Markus Armbruster wrote: >> Tom Yan writes: >> > Public bug reported: >> > >> > I am not exactly sure if this is a bug, but I don't see why the option >> > "serial" should be required for -device nvme like the option "drive". >> > T

Re: [Qemu-devel] [PATCH v2 4/5] vhost: move virtio 1.0 check to cross-endian helper

2016-01-12 Thread Greg Kurz
On Tue, 12 Jan 2016 01:23:56 +0100 Laurent Vivier wrote: > On 11/01/2016 17:13, Greg Kurz wrote: > > Indeed vhost doesn't need to ask for vring endian fixing if the device is > > virtio 1.0, since it is already handled by the in-kernel vhost driver. This > > patch simply consolidates the logic in

Re: [Qemu-devel] live migration between different qemu versions

2016-01-12 Thread Alexey
On 2016-01-12 13:04, Dr. David Alan Gilbert wrote: * Alexey (aluka...@alukardd.org) wrote: Hello, On 2016-01-12 12:19, Dr. David Alan Gilbert wrote: >* Alexey (aluka...@alukardd.org) wrote: >>Hi David. >> >>On 2016-01-11 22:51, Dr. David Alan Gilbert wrote: >>>* Alexey (aluka...@alukardd.org)

Re: [Qemu-devel] [Xen-devel] [PATCH v4] igd-passthrough-i440FX: convert to realize()

2016-01-12 Thread Gerd Hoffmann
On Di, 2016-01-12 at 09:50 +, Hao, Xudong wrote: > With latest qemu 7b8a354d4716, RHEL7.2 (with default kernel) VM still can't > boot up with IGD. There is another bug, using pci_default_write_config() doesn't fly as this checks writes against wmask and the registers in question are not white

[Qemu-devel] [Bug 1533141] [NEW] qemu/disas/libvixl/vixl/invalset.h: 2 * sanity check after use ?

2016-01-12 Thread dcb
Public bug reported: 1. [qemu/disas/libvixl/vixl/invalset.h:442]: (style) Array index 'low' is used before limits check. while (!IsValid(elements[low]) && (low < high)) ++low; 2. [qemu/disas/libvixl/vixl/invalset.h:450]: (style) Array index 'middle' is used before limits check. while (!IsV

Re: [Qemu-devel] x-input-send-event marked as experimental

2016-01-12 Thread Gerd Hoffmann
Hi, > Where "the latter" refers to "IIRC the question was [whether] we'll > leave it as-is (console=), or [whether] we'll do something like > display=,head= instead." Oh joy, third addressing scheme. No, that isn't a third, that is what the command line actually uses, and '' is the qdev id of

Re: [Qemu-devel] Possible reference leak in device_set_realized(...)

2016-01-12 Thread Knut Omang
On Fri, 2016-01-01 at 23:37 +0100, Paolo Bonzini wrote: > > On 31/12/2015 19:13, Ilya Lesokhin wrote: > > I was able to overcome this issue by calling object_unparent on my > > device but I’m not sure that the correct way of fixing it. > > Yes, it's definitely the right way to fix it. Sorry for

[Qemu-devel] [PATCH v1 3/5] kvm/x86: Pass return code of kvm_emulate_hypercall

2016-01-12 Thread Andrey Smetanin
Pass the return code from kvm_emulate_hypercall on to the caller, in order to allow it to indicate to the userspace that the hypercall has to be handled there. Also adjust all the existing code paths to return 1 to make sure the hypercall isn't passed to the userspace without setting kvm_run appro

[Qemu-devel] [PATCH v1 1/5] kvm/x86: Rename Hyper-V long spin wait hypercall

2016-01-12 Thread Andrey Smetanin
Rename HV_X64_HV_NOTIFY_LONG_SPIN_WAIT by HV_X64_HCALL_NOTIFY_LONG_SPIN_WAIT. So the name better reflects hypercall codes accessory. Signed-off-by: Andrey Smetanin Reviewed-by: Roman Kagan CC: Gleb Natapov CC: Paolo Bonzini CC: Joerg Roedel CC: "K. Y. Srinivasan" CC: Haiyang Zhang CC: Roman

[Qemu-devel] [PATCH v1 5/5] kvm/x86: Reject Hyper-V hypercall continuation

2016-01-12 Thread Andrey Smetanin
Currently we do not support Hyper-V hypercall continuation so reject it. Signed-off-by: Andrey Smetanin Reviewed-by: Roman Kagan CC: Gleb Natapov CC: Paolo Bonzini CC: Joerg Roedel CC: "K. Y. Srinivasan" CC: Haiyang Zhang CC: Roman Kagan CC: Denis V. Lunev CC: qemu-devel@nongnu.org --- a

[Qemu-devel] [PATCH v1 4/5] kvm/x86: Hyper-V VMBus hypercall userspace exit

2016-01-12 Thread Andrey Smetanin
The patch implements KVM_EXIT_HV_HCALL functionality for Hyper-V VMBus hypercalls: HV_X64_HCALL_POST_MESSAGE, HV_X64_HCALL_SIGNAL_EVENT. Signed-off-by: Andrey Smetanin Reviewed-by: Roman Kagan CC: Gleb Natapov CC: Paolo Bonzini CC: Joerg Roedel CC: "K. Y. Srinivasan" CC: Haiyang Zhang CC: R

[Qemu-devel] [PATCH v1 0/5] KVM: Hyper-V VMBus hypercalls

2016-01-12 Thread Andrey Smetanin
The patch implements userspace exit 'KVM_EXIT_HYPERV_HCALL' for Hyper-V VMBus hypercalls(postmsg, signalevent) to handle these hypercalls by QEMU. Signed-off-by: Andrey Smetanin Reviewed-by: Roman Kagan CC: Gleb Natapov CC: Paolo Bonzini CC: Joerg Roedel CC: "K. Y. Srinivasan" CC: Haiyang Zh

[Qemu-devel] [PATCH v1 2/5] drivers/hv: Move VMBus hypercall codes into Hyper-V UAPI header

2016-01-12 Thread Andrey Smetanin
VMBus hypercall codes inside Hyper-V UAPI header will be used by QEMU to implement VMBus host devices support. Signed-off-by: Andrey Smetanin Reviewed-by: Roman Kagan CC: Gleb Natapov CC: Paolo Bonzini CC: Joerg Roedel CC: "K. Y. Srinivasan" CC: Haiyang Zhang CC: Roman Kagan CC: Denis V. L

[Qemu-devel] [PATCH v1] KVM-UNIT-TESTS:x86/hyperv: Hyper-V hypercalls test

2016-01-12 Thread Andrey Smetanin
This is a simple test which performs the following: * setup hypecall page * do some hypercalls and output their results Signed-off-by: Andrey Smetanin CC: Paolo Bonzini CC: Marcelo Tosatti CC: Roman Kagan CC: Denis V. Lunev CC: qemu-devel@nongnu.org --- config/config-x86-common.mak | 4 ++

Re: [Qemu-devel] [PULL 14/55] ipmi: Add a local BMC simulation

2016-01-12 Thread Michael S. Tsirkin
On Fri, Jan 08, 2016 at 10:05:44AM +0100, Paolo Bonzini wrote: > > > On 22/12/2015 17:53, Michael S. Tsirkin wrote: > > +{ > > +if ((netfn & 1) || (netfn > MAX_NETFNS) || (s->netfns[netfn / 2])) { > > Off by one. The check should be >=, not >. > > Paolo Corey, can you look into this pleas

[Qemu-devel] [PATCH v1 1/2] headers: Hyper-V VMBus hypercall codes and exit

2016-01-12 Thread Andrey Smetanin
This patch just for completeness, this changes should be received by scripts/update-linux-headers.sh Signed-off-by: Andrey Smetanin Reviewed-by: Roman Kagan CC: Paolo Bonzini CC: Richard Henderson CC: Eduardo Habkost CC: "Andreas Färber" CC: Marcelo Tosatti CC: Roman Kagan CC: Denis V. Lun

[Qemu-devel] [PATCH v1 0/2] QEMU: Hyper-V VMBus hypercalls blank handlers

2016-01-12 Thread Andrey Smetanin
The patches adds blank handlers for Hyper-V VMBus hypercalls routed by KVM_EXIT_HYPERV_HCALL KVM exit. Signed-off-by: Andrey Smetanin Reviewed-by: Roman Kagan CC: Paolo Bonzini CC: Richard Henderson CC: Eduardo Habkost CC: "Andreas Färber" CC: Marcelo Tosatti CC: Roman Kagan CC: Denis V. L

[Qemu-devel] [PATCH v1 2/2] target-i386/kvm: Hyper-V VMBus hypercalls blank handlers

2016-01-12 Thread Andrey Smetanin
Add Hyper-V VMBus hypercalls blank handlers which just returns error code - HV_STATUS_INVALID_HYPERCALL_CODE. Signed-off-by: Andrey Smetanin Reviewed-by: Roman Kagan CC: Paolo Bonzini CC: Richard Henderson CC: Eduardo Habkost CC: "Andreas Färber" CC: Marcelo Tosatti CC: Roman Kagan CC: Den

Re: [Qemu-devel] [PATCH v1 0/5] KVM: Hyper-V VMBus hypercalls

2016-01-12 Thread Andrey Smetanin
Paolo, Could you please force these patches applied during current merge window. We need them very, because they are last patches for KVM which are required to start development of Hyper-V VMBus devices in QEMU side. P.S.: We have created our public repo (based on current kvm/queue) to fetch our

Re: [Qemu-devel] [PULL v2 00/11] Ide patches

2016-01-12 Thread Peter Maydell
On 11 January 2016 at 19:33, John Snow wrote: > The following changes since commit 7b8a354d4716ab2c201fad04c22b8d4a16a1b8c6: > > Merge remote-tracking branch > 'remotes/pmaydell/tags/pull-target-arm-20160111-1' into staging (2016-01-11 > 16:09:50 +) > > are available in the git repository

Re: [Qemu-devel] [PATCH 1/5] block: added lock image option and callback

2016-01-12 Thread Fam Zheng
On Tue, 01/12 11:10, Kevin Wolf wrote: > > The problem is that libvirt already takes a lock, as Dan mentioned in > another reply in this thread, so we can't enable locking in qemu by > default. It would always fail when run under libvirt. > > Unless I'm seriously mistaken, this means that flock()

[Qemu-devel] [Bug 1533141] Re: qemu/disas/libvixl/vixl/invalset.h: 2 * sanity check after use ?

2016-01-12 Thread Peter Maydell
libvixl is not part of QEMU proper, but is an upstream library which we use (as documented in disas/libvixl/README). If you want to suggest coding style changes to it I would recommend reporting them to the upstream project: https://github.com/armvixl/vixl . QEMU just takes the most recent releas

[Qemu-devel] [PATCH v1 00/22] Convert migration to QIOChannel & support TLS

2016-01-12 Thread Daniel P. Berrange
This is a formal posting of patches that were previously previewed at: FYI: https://lists.gnu.org/archive/html/qemu-devel/2015-09/msg00829.html The primary goal of this series of patches is to support TLS on the migration data channel. The bulk of the work in this series though, is converting t

Re: [Qemu-devel] [PATCH v2 2/2] nbd: Coroutine based nbd_send_negotiate

2016-01-12 Thread Fam Zheng
On Mon, 01/11 15:00, Paolo Bonzini wrote: > > > On 11/01/2016 04:36, Fam Zheng wrote: > > > > +aio_set_fd_handler(ctx, client->sock, true, > > + nbd_negotiate_continue, > > + nbd_negotiate_continue, data->co); > > TRACE("Beginning negotiation

[Qemu-devel] [PATCH v1 01/22] s390: use FILE instead of QEMUFile for creating text file

2016-01-12 Thread Daniel P. Berrange
The s390 skeys monitor command needs to write out a plain text file. Currently it is using the QEMUFile class for this. There is no real benefit to this, and the downside is that it needs to snprintf via an intermediate buffer. Switching to regular FILE objects simplifies the code. Signed-off-by:

[Qemu-devel] [PATCH v1 04/22] migration: split migration hooks out of QEMUFileOps

2016-01-12 Thread Daniel P. Berrange
The QEMUFileOps struct contains the I/O subsystem callbacks and the migration stage hooks. Split the hooks out into a separate QEMUFileHooks struct to make it easier to refactor the I/O side of QEMUFile without affecting the hooks. Signed-off-by: Daniel P. Berrange --- include/migration/qemu-fil

[Qemu-devel] [PATCH v1 03/22] migration: ensure qemu_fflush() always writes full data amount

2016-01-12 Thread Daniel P. Berrange
The QEMUFile writev_buffer / put_buffer functions are expected to write out the full set of requested data, blocking until complete. The qemu_fflush() caller does not expect to deal with partial writes. Clarify the function comments and add a sanity check to the code to catch mistaken implementatio

[Qemu-devel] [PATCH v1 08/22] migration: convert post-copy to use QIOChannelBuffer

2016-01-12 Thread Daniel P. Berrange
The post-copy code does some I/O to/from an intermediate in-memory buffer rather than direct to the underlying I/O channel. Switch this code to use QIOChannelBuffer instead of QEMUSizedBuffer. Signed-off-by: Daniel P. Berrange --- docs/migration.txt | 4 ++-- include/sysemu/sysemu.h | 2 +

[Qemu-devel] [PATCH v1 02/22] migration: remove use of qemu_bufopen from vmstate tests

2016-01-12 Thread Daniel P. Berrange
Some of the test-vmstate.c test cases use a temporary file while others use a memory buffer. To facilitate the future removal of the qemu_bufopen() function, convert all the tests to use a temporary file. Signed-off-by: Daniel P. Berrange --- tests/Makefile | 2 +- tests/test-vmstate.c |

[Qemu-devel] [PATCH v1 06/22] migration: force QEMUFile to blocking mode for outgoing migration

2016-01-12 Thread Daniel P. Berrange
Instead of relying on the default QEMUFile I/O blocking flag state, explicitly turn on blocking I/O for outgoing migration since it takes place in a background thread. Signed-off-by: Daniel P. Berrange --- migration/migration.c | 1 + 1 file changed, 1 insertion(+) diff --git a/migration/migrat

[Qemu-devel] [PATCH v1 05/22] migration: introduce set_blocking function in QEMUFileOps

2016-01-12 Thread Daniel P. Berrange
Remove the assumption that every QEMUFile implementation has a file descriptor available by introducing a new function in QEMUFileOps to change the blocking state of a QEMUFile. If not set, it will fallback to the original code using the get_fd method. Signed-off-by: Daniel P. Berrange --- incl

[Qemu-devel] [PATCH v1 20/22] migration: support TLS encryption with TCP migration backend

2016-01-12 Thread Daniel P. Berrange
This extends the TCP migration backend so that it can make use of QIOChannelTLS to provide transparent TLS encryption. To trigger enablement the URI on the incoming and outgoing sides should have 'tls-creds=ID' appended, eg tcp:$HOST:$PORT,tls-creds=ID where ID is the object identifier of a se

[Qemu-devel] [PATCH v1 07/22] migration: introduce a new QEMUFile impl based on QIOChannel

2016-01-12 Thread Daniel P. Berrange
Introduce a new QEMUFile implementation that is based on the QIOChannel objects. This impl is different from existing impls in that there is no file descriptor that can be made available, as some channels may be based on higher level protocols such as TLS. Although the QIOChannel based implementat

[Qemu-devel] [PATCH v1 10/22] migration: convert tcp socket protocol to use QIOChannel

2016-01-12 Thread Daniel P. Berrange
Convert the tcp socket migration protocol driver to use QIOChannel and QEMUFileChannel, instead of plain sockets APIs. While this now looks pretty similar to the migration/unix.c file from the previous patch, it was decided not to merge the two, because when TLS is added to the TCP impl later, thi

[Qemu-devel] [PATCH v1 09/22] migration: convert unix socket protocol to use QIOChannel

2016-01-12 Thread Daniel P. Berrange
Convert the unix socket migration protocol driver to use QIOChannel and QEMUFileChannel, instead of plain sockets APIs. It can be unconditionally built, since the socket impl of QIOChannel will report a suitable error on platforms where UNIX sockets are unavailable. Signed-off-by: Daniel P. Berran

[Qemu-devel] [PATCH v1 11/22] migration: convert fd socket protocol to use QIOChannel

2016-01-12 Thread Daniel P. Berrange
Convert the fd socket migration protocol driver to use QIOChannel and QEMUFileChannel, instead of plain sockets APIs. It can be unconditionally built because the QIOChannel APIs it uses will take care to report suitable error messages if needed. Signed-off-by: Daniel P. Berrange --- migration/Ma

[Qemu-devel] [PATCH v1 14/22] migration: convert savevm to use QIOChannel for writing to files

2016-01-12 Thread Daniel P. Berrange
Convert the exec savevm code to use QIOChannel and QEMUFileChannel, instead of the stdio APIs. Signed-off-by: Daniel P. Berrange --- migration/savevm.c | 8 +--- tests/Makefile | 4 ++-- tests/test-vmstate.c | 11 ++- 3 files changed, 17 insertions(+), 6 deletions(-) diff

[Qemu-devel] [PATCH v1 12/22] migration: convert exec socket protocol to use QIOChannel

2016-01-12 Thread Daniel P. Berrange
Convert the exec socket migration protocol driver to use QIOChannel and QEMUFileChannel, instead of the stdio popen APIs. It can be unconditionally built because the QIOChannelCommand class can report suitable error messages on platforms which can't fork processes. Signed-off-by: Daniel P. Berrang

[Qemu-devel] [PATCH v1 21/22] migration: remove support for non-iovec based write handlers

2016-01-12 Thread Daniel P. Berrange
All the remaining QEMUFile implementations provide an iovec based write handler, so the put_buffer callback can be removed to simplify the code. Signed-off-by: Daniel P. Berrange --- include/migration/qemu-file.h | 9 - migration/qemu-file.c | 36

[Qemu-devel] [PATCH v1 16/22] migration: delete QEMUSizedBuffer struct

2016-01-12 Thread Daniel P. Berrange
Now that we don't have have a buffer based QemuFile implementation, the QEMUSizedBuffer code is also unused and can be deleted. A simpler buffer class also exists in util/buffer.c which other code can used as needed. Signed-off-by: Daniel P. Berrange --- include/migration/qemu-file.h | 16 -- i

[Qemu-devel] [PATCH v1 17/22] migration: delete QEMUFile sockets implementation

2016-01-12 Thread Daniel P. Berrange
Now that the tcp, unix and fd migration backends have converted to use the QIOChannel based QEMUFile, there is no user remaining for the sockets based QEMUFile impl and it can be deleted. Signed-off-by: Daniel P. Berrange --- include/migration/qemu-file.h | 2 - migration/Makefile.objs |

[Qemu-devel] [PATCH v1 19/22] migration: move definition of struct QEMUFile back into qemu-file.c

2016-01-12 Thread Daniel P. Berrange
Now that the memory buffer based QEMUFile impl is gone, there is no need for any backend to be accessing internals of the QEMUFile struct, so it can be moved back into qemu-file.c Signed-off-by: Daniel P. Berrange --- migration/qemu-file-internal.h | 54 --

[Qemu-devel] [PATCH v1 22/22] migration: remove qemu_get_fd method from QEMUFile

2016-01-12 Thread Daniel P. Berrange
Now that there is a set_blocking callback in QEMUFileOps, and all users needing non-blocking support have been converted to QIOChannel, there is no longer any codepath requiring the qemu_get_fd() method for QEMUFile. Remove it to avoid further code being introduced with an expectation of direct fil

Re: [Qemu-devel] [PATCH] net/slirp: Tell the users when they are using deprecated options

2016-01-12 Thread Cleber Rosa
- Original Message - > From: "Thomas Huth" > To: "Jason Wang" , "Jan Kiszka" > , qemu-devel@nongnu.org > Cc: "Paolo Bonzini" , avocado-de...@redhat.com, "Markus > Armbruster" > Sent: Tuesday, January 12, 2016 5:26:36 AM > Subject: Re: [Qemu-devel] [PATCH] net/slirp: Tell the users whe

Re: [Qemu-devel] [PATCH v1 01/22] s390: use FILE instead of QEMUFile for creating text file

2016-01-12 Thread Cornelia Huck
On Tue, 12 Jan 2016 11:43:55 + "Daniel P. Berrange" wrote: > The s390 skeys monitor command needs to write out a plain text > file. Currently it is using the QEMUFile class for this. There > is no real benefit to this, and the downside is that it needs to > snprintf via an intermediate buffer

[Qemu-devel] [PATCH] config.status: Pass extra parameters

2016-01-12 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" This allows you to do: ./config.status --the-option-you-forgot Signed-off-by: Dr. David Alan Gilbert --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 44ac9ab..9a9e978 100755 --- a/configure +++ b/conf

Re: [Qemu-devel] [PATCH v1 00/22] Convert migration to QIOChannel & support TLS

2016-01-12 Thread Daniel P. Berrange
BTW, also available at https://github.com/berrange/qemu/tree/io-channel-migration-1 On Tue, Jan 12, 2016 at 11:43:54AM +, Daniel P. Berrange wrote: > This is a formal posting of patches that were previously > previewed at: > > FYI: https://lists.gnu.org/archive/html/qemu-devel/2015-09/ms

Re: [Qemu-devel] Possible reference leak in device_set_realized(...)

2016-01-12 Thread Paolo Bonzini
On 12/01/2016 11:44, Knut Omang wrote: > On Fri, 2016-01-01 at 23:37 +0100, Paolo Bonzini wrote: >> >> On 31/12/2015 19:13, Ilya Lesokhin wrote: >>> I was able to overcome this issue by calling object_unparent on my >>> device but I’m not sure that the correct way of fixing it. >> >> Yes, it's de

Re: [Qemu-devel] live migration between different qemu versions

2016-01-12 Thread Gerd Hoffmann
Hi, > In my libvirt domain I have option . Why? cheers, Gerd

Re: [Qemu-devel] [PATCH v1 01/22] s390: use FILE instead of QEMUFile for creating text file

2016-01-12 Thread Daniel P. Berrange
On Tue, Jan 12, 2016 at 12:58:10PM +0100, Cornelia Huck wrote: > On Tue, 12 Jan 2016 11:43:55 + > "Daniel P. Berrange" wrote: > > > The s390 skeys monitor command needs to write out a plain text > > file. Currently it is using the QEMUFile class for this. There > > is no real benefit to this,

Re: [Qemu-devel] [PULL 14/55] ipmi: Add a local BMC simulation

2016-01-12 Thread Paolo Bonzini
On 12/01/2016 12:06, Michael S. Tsirkin wrote: >>> > > +{ >>> > > +if ((netfn & 1) || (netfn > MAX_NETFNS) || (s->netfns[netfn / 2])) >>> > > { >> > >> > Off by one. The check should be >=, not >. >> > >> > Paolo > Corey, can you look into this please? > He already posted some fixes ye

Re: [Qemu-devel] [PATCH v1 01/22] s390: use FILE instead of QEMUFile for creating text file

2016-01-12 Thread Cornelia Huck
On Tue, 12 Jan 2016 12:01:21 + "Daniel P. Berrange" wrote: > On Tue, Jan 12, 2016 at 12:58:10PM +0100, Cornelia Huck wrote: > > On Tue, 12 Jan 2016 11:43:55 + > > "Daniel P. Berrange" wrote: > > > > > The s390 skeys monitor command needs to write out a plain text > > > file. Currently i

Re: [Qemu-devel] [PATCH] PCI: add param check for api

2016-01-12 Thread Paolo Bonzini
On 12/01/2016 08:22, Cao jin wrote: > Thanks for your time. I almost forget this one... > > On 01/11/2016 05:20 PM, Paolo Bonzini wrote: >> >> >> On 11/01/2016 09:32, Michael Tokarev wrote: > > +assert(size > 0); > +assert(offset >= PCI_CONFIG_HEADER_SIZE || !offset); > +

Re: [Qemu-devel] [RFC PATCH] vhost: fix lost interrupts from slow reacting back-end

2016-01-12 Thread Didier Pallard
On 01/12/2016 09:26 AM, Victor Kaplansky wrote: This RFC PATCH tries to solve the problem of lost interrupts from a slow back-end. Didier could you test it? Thanks, Victor When interrupts are unmasked, it could take some undefined time to the back-end to start routing events to guest_notifier.

Re: [Qemu-devel] [PATCH v9 1/2] mirror: Rewrite mirror_iteration

2016-01-12 Thread Fam Zheng
On Wed, 01/06 18:53, Max Reitz wrote: > On 05.01.2016 09:46, Fam Zheng wrote: > > The "pnum < nb_sectors" condition in deciding whether to actually copy > > data is unnecessarily strict, and the qiov initialization is > > unnecessarily for bdrv_aio_write_zeroes and bdrv_aio_discard. > > > > Rewrit

Re: [Qemu-devel] live migration between different qemu versions

2016-01-12 Thread Dr. David Alan Gilbert
* Alexey (aluka...@alukardd.org) wrote: > > > On 2016-01-12 13:04, Dr. David Alan Gilbert wrote: > >* Alexey (aluka...@alukardd.org) wrote: > >>Hello, > >> > >>On 2016-01-12 12:19, Dr. David Alan Gilbert wrote: > >>>* Alexey (aluka...@alukardd.org) wrote: > Hi David. > > On 2016-01-1

[Qemu-devel] [PATCH v1 15/22] migration: delete QEMUFile buffer implementation

2016-01-12 Thread Daniel P. Berrange
The qemu_bufopen() method is no longer used, so the memory buffer based QEMUFile backend can be deleted entirely. Signed-off-by: Daniel P. Berrange --- include/migration/qemu-file.h | 6 --- migration/qemu-file-buf.c | 96 --- 2 files changed, 102 del

Re: [Qemu-devel] [RFC 0/2] tcg-icount: Add and use tcg_set_insn_param to update tcg insn params

2016-01-12 Thread Lluís Vilanova
Peter Maydell writes: > On 11 January 2016 at 20:16, Lluís Vilanova wrote: >> Great! I implemented a similar thing long time ago. In my case the machinery >> is >> completely hidden under the concept of "value promises" in TCG (i.e., the >> user >> does not need to know about TCG internals like

[Qemu-devel] [PATCH v1 18/22] migration: delete QEMUFile stdio implementation

2016-01-12 Thread Daniel P. Berrange
Now that the exec migration backend and savevm have converted to use the QIOChannel based QEMUFile, there is no user remaining for the stdio based QEMUFile impl and it can be deleted. Signed-off-by: Daniel P. Berrange --- include/migration/qemu-file.h | 2 - migration/Makefile.objs | 2

[Qemu-devel] [Bug 1533141] Re: qemu/disas/libvixl/vixl/invalset.h: 2 * sanity check after use ?

2016-01-12 Thread dcb
>If you want to suggest coding style changes to it I would recommend reporting >them to the upstream project: Thanks. Done here: https://github.com/armvixl/vixl/issues -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.l

Re: [Qemu-devel] [PATCH 1/5] block: added lock image option and callback

2016-01-12 Thread Denis V. Lunev
On 01/12/2016 02:33 PM, Fam Zheng wrote: On Tue, 01/12 11:10, Kevin Wolf wrote: The problem is that libvirt already takes a lock, as Dan mentioned in another reply in this thread, so we can't enable locking in qemu by default. It would always fail when run under libvirt. Unless I'm seriously mi

[Qemu-devel] [PATCH v1 13/22] migration: convert RDMA to use QIOChannel interface

2016-01-12 Thread Daniel P. Berrange
This converts the RDMA code to provide a subclass of QIOChannel that uses RDMA for the data transport. The RDMA code would be much better off it it could be split up in a generic RDMA layer, a QIOChannel impl based on RMDA, and then the RMDA migration glue. This is left as a future exercise for th

Re: [Qemu-devel] [PATCH 1/5] block: added lock image option and callback

2016-01-12 Thread Kevin Wolf
Am 12.01.2016 um 12:33 hat Fam Zheng geschrieben: > On Tue, 01/12 11:10, Kevin Wolf wrote: > > > > The problem is that libvirt already takes a lock, as Dan mentioned in > > another reply in this thread, so we can't enable locking in qemu by > > default. It would always fail when run under libvirt.

[Qemu-devel] [PATCH 1/7] console: add qemu_console_lookup_by_device_name

2016-01-12 Thread Gerd Hoffmann
We have two places needing this, and a third one will come shortly. So create a helper function for that so we don't diplicate code. Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 2 ++ ui/console.c | 23 +++ 2 files changed, 25 insertions(+) diff --git a/i

[Qemu-devel] [PATCH 3/7] console: use qemu_console_lookup_by_device_name in vnc_display_open

2016-01-12 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/vnc.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/ui/vnc.c b/ui/vnc.c index 09756cd..95ef3bd 100644 --- a/ui/vnc.c +++ b/ui/vnc.c @@ -3725,19 +3725,12 @@ void vnc_display_open(const char *id, Error **errp) device_

[Qemu-devel] [PATCH 2/7] console: use qemu_console_lookup_by_device_name in qemu_input_handler_bind

2016-01-12 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/input.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/ui/input.c b/ui/input.c index 006667b..1409e01 100644 --- a/ui/input.c +++ b/ui/input.c @@ -81,19 +81,12 @@ void qemu_input_handler_bind(QemuInputHandlerState *s,

[Qemu-devel] [PATCH 6/7] qapi: rename input axises

2016-01-12 Thread Gerd Hoffmann
Lowercase them. Signed-off-by: Gerd Hoffmann --- qapi-schema.json | 5 + qmp-commands.hx | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json index 511702f..35ef71c 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3672,12 +3672

[Qemu-devel] [PATCH 7/7] qapi: promote input-send-event to stable

2016-01-12 Thread Gerd Hoffmann
With all fixups being in place now, we can promote input-send-event to stable abi by removing the x- prefix. Signed-off-by: Gerd Hoffmann --- qapi-schema.json | 12 +++- qmp-commands.hx | 14 +++--- ui/input.c | 6 +++--- 3 files changed, 13 insertions(+), 19 deletions(-)

[Qemu-devel] [PATCH 4/7] qapi: switch x-input-send-event from console to device+head

2016-01-12 Thread Gerd Hoffmann
Use display device qdev id and head number instead of console index to specify the QemuConsole. This makes things consistent with input devices (for input routing) and vnc server configuration, which both use display and head too. Signed-off-by: Gerd Hoffmann --- qapi-schema.json | 32 +

[Qemu-devel] [PATCH 5/7] qapi: rename input buttons

2016-01-12 Thread Gerd Hoffmann
All lowercase, use-dash instead of CamelCase. Signed-off-by: Gerd Hoffmann --- hw/input/hid.c | 4 ++-- hw/input/ps2.c | 4 ++-- hw/input/virtio-input-hid.c | 4 ++-- monitor.c | 2 +- qapi-schema.json| 5 + qmp-commands.hx

Re: [Qemu-devel] [PATCH 1/7] console: add qemu_console_lookup_by_device_name

2016-01-12 Thread Daniel P. Berrange
On Tue, Jan 12, 2016 at 01:29:33PM +0100, Gerd Hoffmann wrote: > We have two places needing this, and a third one will come shortly. > So create a helper function for that so we don't diplicate code. > > Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel P. Berrange Regards, Daniel -- |: http:/

Re: [Qemu-devel] [PATCH 2/7] console: use qemu_console_lookup_by_device_name in qemu_input_handler_bind

2016-01-12 Thread Daniel P. Berrange
On Tue, Jan 12, 2016 at 01:29:34PM +0100, Gerd Hoffmann wrote: > Signed-off-by: Gerd Hoffmann > --- > ui/input.c | 15 --- > 1 file changed, 4 insertions(+), 11 deletions(-) Reviewed-by: Daniel P. Berrange Regards, Daniel -- |: http://berrange.com -o-http://www.flickr.co

Re: [Qemu-devel] [PATCH 3/7] console: use qemu_console_lookup_by_device_name in vnc_display_open

2016-01-12 Thread Daniel P. Berrange
On Tue, Jan 12, 2016 at 01:29:35PM +0100, Gerd Hoffmann wrote: > Signed-off-by: Gerd Hoffmann > --- > ui/vnc.c | 15 --- > 1 file changed, 4 insertions(+), 11 deletions(-) Reviewed-by: Daniel P. Berrange Regards, Daniel -- |: http://berrange.com -o-http://www.flickr.com/p

Re: [Qemu-devel] [PATCH 4/7] qapi: switch x-input-send-event from console to device+head

2016-01-12 Thread Daniel P. Berrange
On Tue, Jan 12, 2016 at 01:29:36PM +0100, Gerd Hoffmann wrote: > Use display device qdev id and head number instead of console index to > specify the QemuConsole. This makes things consistent with input > devices (for input routing) and vnc server configuration, which both use > display and head t

Re: [Qemu-devel] [PATCH 5/7] qapi: rename input buttons

2016-01-12 Thread Daniel P. Berrange
On Tue, Jan 12, 2016 at 01:29:37PM +0100, Gerd Hoffmann wrote: > All lowercase, use-dash instead of CamelCase. > > Signed-off-by: Gerd Hoffmann > --- > hw/input/hid.c | 4 ++-- > hw/input/ps2.c | 4 ++-- > hw/input/virtio-input-hid.c | 4 ++-- > monitor.c

Re: [Qemu-devel] [PATCH 6/7] qapi: rename input axises

2016-01-12 Thread Daniel P. Berrange
On Tue, Jan 12, 2016 at 01:29:38PM +0100, Gerd Hoffmann wrote: > Lowercase them. > > Signed-off-by: Gerd Hoffmann > --- > qapi-schema.json | 5 + > qmp-commands.hx | 4 ++-- > 2 files changed, 3 insertions(+), 6 deletions(-) Reviewed-by: Daniel P. Berrange Regards, Daniel -- |: http://b

Re: [Qemu-devel] [PATCH 7/7] qapi: promote input-send-event to stable

2016-01-12 Thread Daniel P. Berrange
On Tue, Jan 12, 2016 at 01:29:39PM +0100, Gerd Hoffmann wrote: > With all fixups being in place now, we can promote input-send-event > to stable abi by removing the x- prefix. > > Signed-off-by: Gerd Hoffmann > --- > qapi-schema.json | 12 +++- > qmp-commands.hx | 14 +++--- > u

[Qemu-devel] [PATCH] vnc: clear vs->tlscreds after unparenting it

2016-01-12 Thread Wolfgang Bumiller
This pointer should be cleared in vnc_display_close() otherwise a use-after-free can happen when when using the old style 'x509' and 'tls' options rather than a persistent tls-creds -object, by issuing monitor commands to change the vnc server like so: Start with: -vnc unix:test.socket,x509,tls Th

Re: [Qemu-devel] [PATCH COLO-Frame v12 11/38] COLO: Add a new RunState RUN_STATE_COLO

2016-01-12 Thread Hailiang Zhang
On 2016/1/11 21:16, Markus Armbruster wrote: Hailiang Zhang writes: On 2015/12/19 17:27, Markus Armbruster wrote: zhanghailiang writes: Guest will enter this state when paused to save/restore VM state under colo checkpoint. Cc: Eric Blake Cc: Markus Armbruster Signed-off-by: zhanghailia

  1   2   3   >