Re: [Qemu-devel] [PATCH 1/7] error: De-duplicate code creating Error objects

2015-06-22 Thread Markus Armbruster
Eric Blake writes: > On 06/22/2015 01:26 PM, Markus Armbruster wrote: >> Duplicated when commit 680d16d added error_set_errno(), and again when >> commit 20840d4 added error_set_win32(). >> >> Make the original copy in error_set() reusable by factoring out >> error_setv(), then rewrite error_set

Re: [Qemu-devel] [PULL v2 58/60] qdev: add 64bit properties

2015-06-22 Thread Markus Armbruster
Gonglei writes: > On 2015/6/21 5:10, Paolo Bonzini wrote: >> >> >> On 01/06/2015 14:25, Michael S. Tsirkin wrote: >>> +static uint64_t qdev_get_prop_mask64(Property *prop) >>> +{ >>> +assert(prop->info == &qdev_prop_bit); >>> +return 0x1 << prop->bitnr; >> >> This needs to be 1ull. >>

Re: [Qemu-devel] [PATCH qemu v8 14/14] spapr_pci/spapr_pci_vfio: Support Dynamic DMA Windows (DDW)

2015-06-22 Thread David Gibson
On Thu, Jun 18, 2015 at 09:37:36PM +1000, Alexey Kardashevskiy wrote: > This adds support for Dynamic DMA Windows (DDW) option defined by > the SPAPR specification which allows to have additional DMA window(s) > > This implements DDW for emulated and VFIO devices. As all TCE root regions > are map

Re: [Qemu-devel] [PATCH qemu v8 00/14] spapr: vfio: Enable Dynamic DMA windows (DDW)

2015-06-22 Thread David Gibson
On Thu, Jun 18, 2015 at 09:37:22PM +1000, Alexey Kardashevskiy wrote: > > (cut-n-paste from kernel patchset) > > Each Partitionable Endpoint (IOMMU group) has an address range on a PCI bus > where devices are allowed to do DMA. These ranges are called DMA windows. > By default, there is a single

Re: [Qemu-devel] [PATCH v8 2/7] Qemu-Xen-vTPM: Create a new file xen_pvdev.c

2015-06-22 Thread Xu, Quan
> -Original Message- > From: Stefano Stabellini [mailto:stefano.stabell...@eu.citrix.com] > Sent: Tuesday, June 23, 2015 12:37 AM > To: Xu, Quan > Cc: stefano.stabell...@eu.citrix.com; qemu-devel@nongnu.org; > stef...@linux.vnet.ibm.com; ebl...@redhat.com; wei.l...@citrix.com; > dgde...@t

Re: [Qemu-devel] [Qemu-block] [PATCH COLO-Block v6 07/16] Add new block driver interface to connect/disconnect the remote target

2015-06-22 Thread Wen Congyang
On 06/19/2015 12:06 AM, Stefan Hajnoczi wrote: > On Thu, Jun 18, 2015 at 10:36:39PM +0800, Wen Congyang wrote: >> At 2015/6/18 20:55, Stefan Hajnoczi Wrote: >>> On Thu, Jun 18, 2015 at 04:49:12PM +0800, Wen Congyang wrote: +void bdrv_connect(BlockDriverState *bs, Error **errp) +{ +

Re: [Qemu-devel] [PATCH v5 1/3] ich9: add TCO interface emulation

2015-06-22 Thread Michael S. Tsirkin
On Mon, Jun 22, 2015 at 08:10:27PM -0300, Paulo Alcantara wrote: > This interface provides some registers within a 32-byte range and can be > acessed through PCI-to-LPC bridge interface (PMBASE + 0x60). > > It's commonly used as a watchdog timer to detect system lockups through > SMIs that are gen

Re: [Qemu-devel] [Qemu-block] RFC cdrom in own thread?

2015-06-22 Thread Peter Lieven
Am 22.06.2015 um 23:54 schrieb John Snow: On 06/22/2015 09:09 AM, Peter Lieven wrote: Am 22.06.2015 um 11:25 schrieb Stefan Hajnoczi: On Fri, Jun 19, 2015 at 2:14 PM, Peter Lieven wrote: Am 18.06.2015 um 11:36 schrieb Stefan Hajnoczi: On Thu, Jun 18, 2015 at 10:29 AM, Peter Lieven wrote:

Re: [Qemu-devel] [PATCH 1/2] virito-pci: fix OVERRUN problem

2015-06-22 Thread Michael S. Tsirkin
Although the subject is virtio-pci. Fixed up.

[Qemu-devel] [PATCH] MAINTAINERS: add ACPI entry

2015-06-22 Thread Michael S. Tsirkin
Igor agreed to help review ACPI patches, add an entry to MAINTAINERS with all ACPI stuff I could think of. Note: I listed ARM ACPI files here just to make sure we are Cc'd, no plan to maintain ACPI for ARM through my tree :) Signed-off-by: Michael S. Tsirkin --- MAINTAINERS | 12 1

Re: [Qemu-devel] [PATCH] thread-win32: fix GetThreadContext() permanently fails

2015-06-22 Thread Stefan Weil
Am 22.06.2015 um 23:54 schrieb Zavadovsky Yan: Calling SuspendThread() is not enough to suspend Win32 thread. We need to call GetThreadContext() after SuspendThread() to make sure that OS have really suspended target thread. But GetThreadContext() needs for THREAD_GET_CONTEXT access right on thre

Re: [Qemu-devel] [PATCH v3 1/2] vhost user: add support of live migration

2015-06-22 Thread Michael S. Tsirkin
On Wed, Jun 10, 2015 at 03:43:02PM +0200, Thibaut Collet wrote: > Some vhost client/backend are able to support live migration. > To provide this service the following features must be added: > 1. GARP from guest after live migration: >the VIRTIO_NET_F_GUEST_ANNOUNCE capability is added to vhos

Re: [Qemu-devel] [PATCH 0/2] fix two overflow problems

2015-06-22 Thread Michael S. Tsirkin
On Tue, Jun 23, 2015 at 09:53:03AM +0800, arei.gong...@huawei.com wrote: > From: Gonglei > > > Gonglei (2): > virito-pci: fix OVERRUN problem > qdev: fix OVERFLOW_BEFORE_WIDEN Applied, thanks a lot. > hw/core/qdev-properties.c | 2 +- > hw/virtio/virtio-pci.c| 4 ++-- > 2 files chang

Re: [Qemu-devel] [PATCH v3 2/2] vhost user: Add RARP injection for legacy guest

2015-06-22 Thread Michael S. Tsirkin
On Tue, Jun 23, 2015 at 10:12:17AM +0800, Jason Wang wrote: > > > On 06/18/2015 11:16 PM, Thibaut Collet wrote: > > On Tue, Jun 16, 2015 at 10:05 AM, Jason Wang wrote: > >> > >> On 06/16/2015 03:24 PM, Thibaut Collet wrote: > >>> If my understanding is correct, on a resume operation, we have the

Re: [Qemu-devel] [PATCH qemu v8 02/14] vfio: spapr: Move SPAPR-related code to a separate file

2015-06-22 Thread David Gibson
On Thu, Jun 18, 2015 at 09:37:24PM +1000, Alexey Kardashevskiy wrote: > This moves SPAPR bits to a separate file to avoid pollution of x86 code. > > This enables spapr-vfio on CONFIG_SOFTMMU (not CONFIG_PSERIES) as > the config options are only visible in makefiles and not in the source code > so

[Qemu-devel] [Bug 1329956] Re: multi-core FreeBSD guest hangs after warm reboot

2015-06-22 Thread Vasiliy Tolstov
In my testing disable apicv does not needed, but i need latest stable seabios from seabios site. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1329956 Title: multi-core FreeBSD guest hangs after wa

Re: [Qemu-devel] [PATCH v7 0/1] balloon: add a feature bit to let Guest OS deflate

2015-06-22 Thread Michael S. Tsirkin
On Mon, Jun 22, 2015 at 02:09:48PM -0700, James Bottomley wrote: > On Mon, 2015-06-22 at 15:56 +0300, Denis V. Lunev wrote: > > On 15/06/15 13:52, Denis V. Lunev wrote: > > > Excessive virtio_balloon inflation can cause invocation of OOM-killer, > > > when Linux is under severe memory pressure. Var

Re: [Qemu-devel] [PATCH v4 0/4] Extend TPM support with a QEMU-external TPM

2015-06-22 Thread Michael S. Tsirkin
On Mon, Jun 08, 2015 at 07:17:33AM -0400, Stefan Berger wrote: > The following series of patches extends TPM support with an > external TPM that offers a Linux CUSE (character device in userspace) > interface. This TPM lets each VM access its own private vTPM. > The CUSE TPM supports suspend/resume

[Qemu-devel] [PATCH QEMU] target-arm: A64: Print ELR when taking exceptions

2015-06-22 Thread Soren Brinkmann
When taking an exception print the content of the exception link register. This is useful especially for synchronous exceptions because in that case this registers holds the address of the instruction that generated the exception. Signed-off-by: Soren Brinkmann --- target-arm/helper-a64.c | 2 ++

Re: [Qemu-devel] [PATCH v5] i386: Introduce ARAT CPU feature

2015-06-22 Thread Jan Kiszka
On 2015-06-23 04:50, Wanpeng Li wrote: > > > On 6/22/15 1:38 AM, Jan Kiszka wrote: >> On 2015-06-18 22:21, Eduardo Habkost wrote: >>> On Sun, Jun 07, 2015 at 11:15:08AM +0200, Jan Kiszka wrote: From: Jan Kiszka ARAT signals that the APIC timer does not stop in power saving states.

[Qemu-devel] [PATCH] Re-attach usb device to kernel while usb_host_open fails

2015-06-22 Thread Lin Ma
Signed-off-by: Lin Ma --- hw/usb/host-libusb.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c index 10f4735..7258c4d 100644 --- a/hw/usb/host-libusb.c +++ b/hw/usb/host-libusb.c @@ -888,6 +888,11 @@ static int usb_host_open(USBHostDevice *s, l

Re: [Qemu-devel] [PATCH] rdma: fix memory leak

2015-06-22 Thread Amit Shah
On (Tue) 23 Jun 2015 [09:02:28], arei.gong...@huawei.com wrote: > From: Gonglei > > Variable "r" going out of scope leaks the storage > it points to in line 3268. Interestingly Dave posted a different patch for the same issue. I prefer this approach. Reviewed-by: Amit Shah Am

Re: [Qemu-devel] [PATCH] iov: don't touch iov in iov_send_recv()

2015-06-22 Thread Wen Congyang
Ping again. This patch is bugfix. The old discussion is here: http://lists.nongnu.org/archive/html/qemu-devel/2015-02/msg00245.html On 05/21/2015 09:50 AM, Wen Congyang wrote: > Signed-off-by: Wen Congyang > --- > include/qemu/iov.h | 2 +- > util/iov.c | 14 +- > 2 files c

Re: [Qemu-devel] [PATCH] vhost: correctly pass error to caller in vhost_dev_enable_notifiers()

2015-06-22 Thread Jason Wang
On 05/29/2015 02:13 PM, Jason Wang wrote: > We override the error value r in fail_vq, this will cause the caller > can't detect the failure which may cause the caller may disable the > notifiers twice if vhost is failed to start. Fix this by using another > variable to keep track the return value

Re: [Qemu-devel] Greate difference of disk I/O performance for guest on Qemu-2.30 of CentOS.

2015-06-22 Thread cauchy-love
thanks for your help. I don't think it is the filesystem that causes this problem since when I updated the kernel of CentOS6.5 to the CentOS 7.0's version and the disk io performance was nearly the same as CentOS 7.0. -- 发自我的网易邮箱手机智能版 在 2015-06-19 16:37:23,"Paolo Bonzini" 写道: > > >On 19/06

Re: [Qemu-devel] [RFC PATCH v4 1/5] spapr: Initialize hotplug memory address space

2015-06-22 Thread David Gibson
On Fri, Jun 19, 2015 at 03:47:53PM +0530, Bharata B Rao wrote: > Initialize a hotplug memory region under which all the hotplugged > memory is accommodated. Also enable memory hotplug by setting > CONFIG_MEM_HOTPLUG. > > Modelled on i386 memory hotplug. > > Signed-off-by: Bharata B Rao > --- >

Re: [Qemu-devel] [RFC PATCH v4 4/5] spapr: Make hash table size a factor of maxram_size

2015-06-22 Thread David Gibson
On Fri, Jun 19, 2015 at 03:47:56PM +0530, Bharata B Rao wrote: > The hash table size is dependent on ram_size, but since with hotplug > the memory can grow till maxram_size. Hence make hash table size dependent > on maxram_size. > > This allows to hotplug huge amounts of memory to the guest. > >

Re: [Qemu-devel] [RFC PATCH v4 3/5] spapr: Support ibm, dynamic-reconfiguration-memory

2015-06-22 Thread David Gibson
On Fri, Jun 19, 2015 at 03:47:55PM +0530, Bharata B Rao wrote: > Parse ibm,architecture.vec table obtained from the guest and enable > memory node configuration via ibm,dynamic-reconfiguration-memory if guest > supports it. This is in preparation to support memory hotplug for > sPAPR guests. > > T

Re: [Qemu-devel] [RFC PATCH v4 5/5] spapr: Memory hotplug support

2015-06-22 Thread David Gibson
On Fri, Jun 19, 2015 at 03:47:57PM +0530, Bharata B Rao wrote: > Make use of pc-dimm infrastructure to support memory hotplug > for PowerPC. > > Signed-off-by: Bharata B Rao Reviewed-by: David Gibson -- David Gibson| I'll have my music baroque, and my code david AT gibson.

Re: [Qemu-devel] [RFC PATCH v4 2/5] spapr: Add LMB DR connectors

2015-06-22 Thread David Gibson
On Fri, Jun 19, 2015 at 03:47:54PM +0530, Bharata B Rao wrote: > Enable memory hotplug for pseries 2.4 and add LMB DR connectors. > With memory hotplug, enforce NUMA node memory size and maxmem to be > a multiple of SPAPR_MEMORY_BLOCK_SIZE (256M) since that's the granularity > in which LMBs are rep

Re: [Qemu-devel] [PATCH v3 10/10] ui: convert VNC to use generic cipher API

2015-06-22 Thread Gonglei
On 2015/6/19 1:02, Daniel P. Berrange wrote: > if (!vs->vd->password) { > VNC_DEBUG("No password configured on server"); > @@ -2534,9 +2536,29 @@ static int protocol_client_auth_vnc(VncState *vs, > uint8_t *data, size_t len) > pwlen = strlen(vs->vd->password); > for (i=0; i

Re: [Qemu-devel] [PATCH v4] hmp: add info iothreads command

2015-06-22 Thread Ting Wang
Hi Luiz and Markus, Would you like to pick up this patch, which has been reviewed by Stefan and Fam? Thanks. Ting On 2015-3-13 16:58, Ting Wang wrote: > Make "info iothreads" available on the HMP monitor. > > The results are as follows: > id1: thread_id=thread_id1 > id2: thread_id=thread_id2 >

Re: [Qemu-devel] [PATCH v3 09/10] block: convert qcow/qcow2 to use generic cipher API

2015-06-22 Thread Gonglei
On 2015/6/19 1:02, Daniel P. Berrange wrote: > Switch the qcow/qcow2 block driver over to use the generic cipher > API, this allows it to use the pluggable AES implementations, > instead of being hardcoded to use QEMU's built-in impl. > > Signed-off-by: Daniel P. Berrange > --- > block/qcow.c

Re: [Qemu-devel] [PATCH v3 08/10] ui: convert VNC websockets to use crypto APIs

2015-06-22 Thread Gonglei
On 2015/6/19 1:02, Daniel P. Berrange wrote: > Remove the direct use of gnutls for hash processing in the > websockets code, in favour of using the crypto APIs. This > allows the websockets code to be built unconditionally > removing countless conditional checks from the VNC code. > > Signed-off-b

Re: [Qemu-devel] [PATCH v3 06/10] crypto: add a nettle cipher implementation

2015-06-22 Thread Gonglei
On 2015/6/19 1:02, Daniel P. Berrange wrote: > If we are linking to gnutls already and gnutls is built against > nettle, then we should use nettle as a cipher backend in > preference to our built-in backend. > > This will be used when linking against some GNUTLS 2.x versions > and all GNUTLS 3.x v

Re: [Qemu-devel] [PATCH v3 07/10] block: convert quorum blockdrv to use crypto APIs

2015-06-22 Thread Gonglei
On 2015/6/19 1:02, Daniel P. Berrange wrote: > Get rid of direct use of gnutls APIs in quorum blockdrv in > favour of using the crypto APIs. This avoids the need to > do conditional compilation of the quorum driver. It can > simply report an error at file open file instead if the > required hash al

Re: [Qemu-devel] [PATCH v3 04/10] crypto: introduce generic cipher API & built-in implementation

2015-06-22 Thread Gonglei
On 2015/6/19 1:02, Daniel P. Berrange wrote: > Introduce a generic cipher API and an implementation of it that > supports only the built-in AES and DES-RFB algorithms. > > The test suite checks the supported algorithms + modes to > validate that every backend implementation is actually correctly >

Re: [Qemu-devel] [PATCH v3 03/10] crypto: move built-in D3DES implementation into crypto/

2015-06-22 Thread Gonglei
On 2015/6/19 1:02, Daniel P. Berrange wrote: > To prepare for a generic internal cipher API, move the > built-in D3DES implementation into the crypto/ directory. > > This is not in fact a normal D3DES implementation, it is > D3DES with double & triple length modes removed, and the > key bytes in r

Re: [Qemu-devel] [PATCH v3 2/2] vhost user: Add RARP injection for legacy guest

2015-06-22 Thread Jason Wang
On 06/18/2015 11:16 PM, Thibaut Collet wrote: > On Tue, Jun 16, 2015 at 10:05 AM, Jason Wang wrote: >> >> On 06/16/2015 03:24 PM, Thibaut Collet wrote: >>> If my understanding is correct, on a resume operation, we have the >>> following callback trace: >>> 1. virtio_pci_restore function that cal

Re: [Qemu-devel] [PATCH v3 02/10] crypto: move built-in AES implementation into crypto/

2015-06-22 Thread Gonglei
On 2015/6/19 1:02, Daniel P. Berrange wrote: > To prepare for a generic internal cipher API, move the > built-in AES implementation into the crypto/ directory > > Signed-off-by: Daniel P. Berrange > --- > block/qcow.c | 2 +- > block/qcow2.c | 1 - > block/qcow

Re: [Qemu-devel] [PATCH v3 01/10] crypto: introduce new module for computing hash digests

2015-06-22 Thread Gonglei
On 2015/6/19 1:02, Daniel P. Berrange wrote: > Introduce a new crypto/ directory that will (eventually) contain > all the cryptographic related code. This initially defines a > wrapper for initializing gnutls and for computing hashes with > gnutls. The former ensures that gnutls is guaranteed to be

[Qemu-devel] [PATCH 2/2] qdev: fix OVERFLOW_BEFORE_WIDEN

2015-06-22 Thread arei.gonglei
From: Gonglei Potentially overflowing expression "1 << prop->bitnr" with type "int" (32 bits, signed) is evaluated using 32-bit arithmetic, and then used in a context that expects an expression of type "uint64_t" (64 bits, unsigned). Cc: Gerd Hoffmann Signed-off-by: Paolo Bonzini Signed-off-by

[Qemu-devel] [PATCH 1/2] virito-pci: fix OVERRUN problem

2015-06-22 Thread arei.gonglei
From: Gonglei Overrunning array "proxy->guest_features" of 2 4-byte elements at element index 2 (byte offset 8) using index "proxy->gfselect" (which evaluates to 2). Normally, the Linux kernel driver just read/write '0' or '1' as the "proxy->gfselect" values, so using '<' instead of '=<' to make

[Qemu-devel] [PATCH 0/2] fix two overflow problems

2015-06-22 Thread arei.gonglei
From: Gonglei Gonglei (2): virito-pci: fix OVERRUN problem qdev: fix OVERFLOW_BEFORE_WIDEN hw/core/qdev-properties.c | 2 +- hw/virtio/virtio-pci.c| 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) -- 1.7.12.4

Re: [Qemu-devel] [PATCH] configure: Add support for jemalloc

2015-06-22 Thread Fam Zheng
On Fri, 06/19 12:56, Alexandre Derumier wrote: > This adds "--enable-jemalloc" and "--disable-jemalloc" to allow linking > to jemalloc memory allocator. > > We have already tcmalloc support, > but it seem to not working well with a lot of iothreads/disks. > > The main problem is that tcmalloc use

Re: [Qemu-devel] Adding new migration-parameters - any easier way?

2015-06-22 Thread zhanghailiang
On 2015/6/19 16:11, Markus Armbruster wrote: zhanghailiang writes: Hi, Is there any news about this discussion? Is anyone working on it? ;) Since the 'hard feature freeze' time is closer, we'd better to fix it in 2.4 before libvirt uses it. I have sent a RFC patch "[RFC] migration: Re-imple

Re: [Qemu-devel] [PULL v2 58/60] qdev: add 64bit properties

2015-06-22 Thread Gonglei
On 2015/6/21 5:10, Paolo Bonzini wrote: > > > On 01/06/2015 14:25, Michael S. Tsirkin wrote: >> +static uint64_t qdev_get_prop_mask64(Property *prop) >> +{ >> +assert(prop->info == &qdev_prop_bit); >> +return 0x1 << prop->bitnr; > > This needs to be 1ull. > Yes, and coverity spot it and

[Qemu-devel] [PATCH] rdma: fix memory leak

2015-06-22 Thread arei.gonglei
From: Gonglei Variable "r" going out of scope leaks the storage it points to in line 3268. Signed-off-by: Gonglei --- migration/rdma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migration/rdma.c b/migration/rdma.c index cf5de7e..de80860 100644 --- a/migration/rdma.c

[Qemu-devel] [PATCH] ossaudio: fix memory leak

2015-06-22 Thread arei.gonglei
From: Gonglei Variable "conf" going out of scope leaks the storage it points to in line 856. Signed-off-by: Gonglei --- audio/ossaudio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/audio/ossaudio.c b/audio/ossaudio.c index 11e76a1..7dbe333 100644 --- a/audio/ossaudio.c +++ b/audio/ossa

Re: [Qemu-devel] [PATCH v2 0/3] m68k: fix ColdFire support

2015-06-22 Thread Greg Ungerer
Hi Andreas, On 23/06/15 02:49, Andreas Färber wrote: > Am 20.06.2015 um 06:55 schrieb Greg Ungerer: >> I have one more fix still to come for the qemu mcf_fec.c net driver. >> It currently doesn't support the mdio actions or any attached phy and >> this will cause the linux fec driver to fail probi

[Qemu-devel] [PATCH 11/16] ahci: add cmd header to ncq transfer state

2015-06-22 Thread John Snow
While the rest of the AHCI device can rely on a single bookmarked pointer for the AHCI Command Header currently being processed, NCQ is asynchronous and may have many commands in flight simultaneously. Add a cmdh pointer to the ncq_tfs object and make the sglist prepare function take an AHCICmdHea

[Qemu-devel] [PATCH 13/16] ahci: add get_cmd_header helper

2015-06-22 Thread John Snow
cur_cmd is an internal bookmark that points to the current AHCI Command Header being processed by the AHCI state machine. With NCQ needing to occasionally rely on some of the same AHCI helpers, we cannot use cur_cmd and will need to grab explicit pointers instead. In an attempt to begin relying on

[Qemu-devel] [PATCH 16/16] ahci: fix sdb fis semantics

2015-06-22 Thread John Snow
There are two things to fix here: The first one is subtle: the PxSACT register in the AHCI HBA has different semantics from the field it is shadowing, the ACT field in the Set Device Bits FIS. In the HBA register, PxSACT acts as a bitfield indicating outstanding NCQ commands where a set bit indic

[Qemu-devel] [PATCH 01/16] ide: add limit to .prepare_buf()

2015-06-22 Thread John Snow
prepare_buf should not always grab as many descriptors as it can, sometimes it should self-limit. For example, an NCQ transfer of 1 sector with a PRDT that describes 4GiB of data should not copy 4GiB of data, it should just transfer that first 512 bytes. PIO is not affected, because the dma_buf_r

[Qemu-devel] [PATCH 10/16] qtest/ahci: halted NCQ test

2015-06-22 Thread John Snow
Signed-off-by: John Snow --- tests/ahci-test.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/tests/ahci-test.c b/tests/ahci-test.c index 3f06fd9..c30837b 100644 --- a/tests/ahci-test.c +++ b/tests/ahci-test.c @@ -1200,13 +1200,13 @@ static void test_migr

[Qemu-devel] [PATCH 14/16] ahci: Do not map cmd_fis to generate response

2015-06-22 Thread John Snow
The Register D2H FIS should copy the current values of the registers instead of just parroting back the same values the guest sent back to it. In this case, the SECTOR COUNT variables are actually not generally meaningful in terms of standard commands (See ATA8-AC3 Section 9.2 Normal Outputs), so

[Qemu-devel] [PATCH 09/16] ahci: correct ncq sector count

2015-06-22 Thread John Snow
uint16_t isn't enough to hold the real sector count, since a value of zero implies a full 64K sectors, so we need a uint32_t here. We *could* cheat and pretend that this value is 0-based and fit it in a uint16_t, but I'd rather waste 2 bytes instead of a future dev's 10 minutes when they forget to

[Qemu-devel] [PATCH 15/16] qtest/ahci: halted ncq migration test

2015-06-22 Thread John Snow
Signed-off-by: John Snow --- tests/ahci-test.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/tests/ahci-test.c b/tests/ahci-test.c index c30837b..87d7691 100644 --- a/tests/ahci-test.c +++ b/tests/ahci-test.c @@ -1269,13 +1269,13 @@ static void test_halt

[Qemu-devel] [PATCH 12/16] ahci: ncq migration

2015-06-22 Thread John Snow
Migrate the NCQ queue. This is solely for the benefit of halted commands, since anything else should have completed and had any relevant status flushed to the HBA registers already. Signed-off-by: John Snow --- hw/ide/ahci.c | 49 - 1 file changed,

[Qemu-devel] [PATCH 05/16] ahci: factor ncq_finish out of ncq_cb

2015-06-22 Thread John Snow
When we add werror=stop or rerror=stop support to NCQ, we'll want to take a codepath where we don't actually complete the command, so factor that out into a new routine. Signed-off-by: John Snow --- hw/ide/ahci.c | 32 +++- 1 file changed, 19 insertions(+), 13 deletio

[Qemu-devel] [PATCH 06/16] ahci: record ncq failures

2015-06-22 Thread John Snow
Handle NCQ failures for cases where we want to halt the VM on IO errors. Signed-off-by: John Snow --- hw/ide/ahci.c | 17 +++-- hw/ide/ahci.h | 1 + hw/ide/internal.h | 1 + 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index

[Qemu-devel] [PATCH 08/16] ahci: correct types in NCQTransferState

2015-06-22 Thread John Snow
Signed-off-by: John Snow --- hw/ide/ahci.c | 10 +- hw/ide/ahci.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 6233059..7fcc6a2 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -45,7 +45,7 @@ do { \ } while (0) static v

[Qemu-devel] [PATCH 07/16] ahci: kick NCQ queue

2015-06-22 Thread John Snow
Upon a VM state change, retry the halted NCQ commands. Signed-off-by: John Snow --- hw/ide/ahci.c | 18 ++ hw/ide/core.c | 7 +++ hw/ide/internal.h | 1 + 3 files changed, 26 insertions(+) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index a838317..6233059 100644 ---

[Qemu-devel] [PATCH 03/16] ahci: assert is_ncq for process_ncq

2015-06-22 Thread John Snow
We already checked this in the handle_cmd phase, so just change this to an assertion and simplify the error logic. (Also, fix the switch indent, because checkpatch.pl yelled.) ((Sorry for churn.)) Signed-off-by: John Snow --- hw/ide/ahci.c | 60 ++

[Qemu-devel] [PATCH 00/16] ahci: ncq cleanup, part 2

2015-06-22 Thread John Snow
requires: 1434470575-21625-1-git-send-email-js...@redhat.com 1435016308-6150-1-git-send-email-js...@redhat.com [PATCH v2 0/4] ahci: misc fixes/tests for 2.4 [PATCH v2 00/16] ahci: ncq cleanup, part 1 This chunk gets NCQ migration and and resume support working. There

[Qemu-devel] [PATCH 04/16] ahci: refactor process_ncq_command

2015-06-22 Thread John Snow
Split off execute_ncq_command so that we can call it separately later if we desire. Signed-off-by: John Snow --- hw/ide/ahci.c | 73 ++- 1 file changed, 42 insertions(+), 31 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 2d7

[Qemu-devel] [PATCH 02/16] ahci: stash ncq command

2015-06-22 Thread John Snow
For migration and werror=stop/rerror=stop resume purposes, it will be convenient to have the command handy inside of ncq_tfs. Eventually, we'd like to avoid reading from the FIS entirely after the initial read, so this is a byte (hah!) sized step in that direction. Signed-off-by: John Snow ---

Re: [Qemu-devel] [PATCH 09/11] kvm/x86: distingiush hyper-v guest crash notification

2015-06-22 Thread Peter Hornyack
On Mon, Jun 22, 2015 at 9:05 AM, Denis V. Lunev wrote: > From: Andrey Smetanin > > Previous patches allowes userspace to setup Hyper-V crash ctl msr. > This msr should expose HV_X64_MSR_CRASH_CTL_NOTIFY value to Hyper-V > guest to allow to send crash data. Unfortunately Hyper-V guest notifies > h

Re: [Qemu-devel] [PATCH 07/11] kvm/x86: added hyper-v crash data and ctl msr's get/set'ers

2015-06-22 Thread Peter Hornyack
On Mon, Jun 22, 2015 at 9:05 AM, Denis V. Lunev wrote: > From: Andrey Smetanin > > Added hyper-v crash msr's(HV_X64_MSR_CRASH*) data and control > geters and setters. > > Signed-off-by: Andrey Smetanin > Signed-off-by: Denis V. Lunev > CC: Paolo Bonzini > CC: Gleb Natapov > --- > arch/x86/kv

[Qemu-devel] [PATCH] thread-win32: fix GetThreadContext() permanently fails

2015-06-22 Thread Zavadovsky Yan
Calling SuspendThread() is not enough to suspend Win32 thread. We need to call GetThreadContext() after SuspendThread() to make sure that OS have really suspended target thread. But GetThreadContext() needs for THREAD_GET_CONTEXT access right on thread object. This patch adds THREAD_GET_CONTEXT to

[Qemu-devel] [PATCH v2 16/16] qtest/ahci: ncq migration test

2015-06-22 Thread John Snow
Signed-off-by: John Snow --- tests/ahci-test.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/tests/ahci-test.c b/tests/ahci-test.c index 0d117fe..3f06fd9 100644 --- a/tests/ahci-test.c +++ b/tests/ahci-test.c @@ -1146,9 +1146,9 @@ static void test_migrat

[Qemu-devel] [PATCH v2 13/16] libqos/ahci: set the NCQ tag on command_commit

2015-06-22 Thread John Snow
NCQ commands have the concept of a "TAG" that they need to set, but in the AHCI world, it is mandated that the TAG always match the command slot that you executed the NCQ from. See AHCI 9.3.1.1.5.2 "Native Queued Commands". Signed-off-by: John Snow --- tests/libqos/ahci.c | 5 + 1 file chan

[Qemu-devel] [PATCH v2 14/16] libqos/ahci: Force all NCQ commands to be LBA48

2015-06-22 Thread John Snow
NCQ commands are LBA48 by definition. See SATA 3.2 13.6.4.1 "READ FPDMA QUEUED", or SATA 3.2 13.6.5.1 "WRITE FPDMA QUEUED." Signed-off-by: John Snow --- tests/libqos/ahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/libqos/ahci.c b/tests/libqos/ahci.c index 7c

[Qemu-devel] [PATCH v2 10/16] libqos/ahci: add NCQ frame support

2015-06-22 Thread John Snow
NCQ frames are generated a little differently than their non-NCQ cousins. Add support for them. Signed-off-by: John Snow --- tests/libqos/ahci.c | 44 +++- tests/libqos/ahci.h | 29 - 2 files changed, 63 insertions(+), 10 deleti

[Qemu-devel] [PATCH v2 07/16] ahci: ncq sector count correction

2015-06-22 Thread John Snow
This value should not be size-corrected, 0 sectors does not imply 1 sector(s). This is just debug information, but it's misleading! Signed-off-by: John Snow --- hw/ide/ahci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index c2e6642..95

[Qemu-devel] [PATCH v2 12/16] libqos/ahci: adjust expected NCQ interrupts

2015-06-22 Thread John Snow
NCQ commands will expect the SDBS interrupt, and in the normative case, do not expect to see a D2H Register FIS unless something went wrong. Signed-off-by: John Snow --- tests/libqos/ahci.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/libqos/ahci.c b/tests/l

[Qemu-devel] [PATCH v2 09/16] libqos/ahci: fix cmd_sanity for ncq

2015-06-22 Thread John Snow
NCQ commands should not / do not update the byte count in the command header post command, so this field is meaningless for NCQ tests. Signed-off-by: John Snow --- tests/libqos/ahci.c | 46 -- tests/libqos/ahci.h | 3 +-- 2 files changed, 25 insertion

[Qemu-devel] [PATCH v2 15/16] qtest/ahci: simple ncq data test

2015-06-22 Thread John Snow
Test the NCQ pathways for a simple IO RW test. Also, test that libqos doesn't explode when running NCQ commands :) Signed-off-by: John Snow --- tests/ahci-test.c | 13 + tests/libqos/ahci.c | 46 +- tests/libqos/ahci.h | 27 ++

[Qemu-devel] [PATCH v2 05/16] ahci: separate prdtl from opts

2015-06-22 Thread John Snow
There's no real reason to have it bundled together, and this way is a little nicer to follow if you have the AHCI spec pulled up. Signed-off-by: John Snow --- hw/ide/ahci.c | 23 --- hw/ide/ahci.h | 3 ++- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/hw/i

[Qemu-devel] [PATCH v2 11/16] libqos/ahci: edit wait to be ncq aware

2015-06-22 Thread John Snow
The wait command should check to make sure SACT is clear as well as the Command Issue register. Signed-off-by: John Snow --- tests/libqos/ahci.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/libqos/ahci.c b/tests/libqos/ahci.c index 9a4d510..da02e2e 100644

[Qemu-devel] [PATCH v2 02/16] ahci: use shorter variables

2015-06-22 Thread John Snow
Trivial cleanup that I didn't want to tack-on to anything else. Signed-off-by: John Snow --- hw/ide/ahci.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 26df2ca..14eccb8 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @

[Qemu-devel] [PATCH v2 08/16] ahci/qtest: Execute IDENTIFY prior to data commands

2015-06-22 Thread John Snow
If you try to execute an NCQ command before trying to engage with the device by issuing an IDENTIFY command, the error bits that are part of the signature will fool the test suite into thinking there was a failure. Issue IDENTIFY first on "boot", which will clear the signature out of the registers

[Qemu-devel] [PATCH v2 04/16] ahci: check for ncq prdtl overflow

2015-06-22 Thread John Snow
Don't attempt the NCQ transfer if the PRDT we were given is not big enough to perform the entire transfer. Signed-off-by: John Snow --- hw/ide/ahci.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 375aa44..24c4832 100

[Qemu-devel] [PATCH v2 03/16] ahci: add ncq_err helper

2015-06-22 Thread John Snow
Set some appropriate error bits for NCQ for us. Signed-off-by: John Snow --- hw/ide/ahci.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 14eccb8..375aa44 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -922,6 +922,15 @@

[Qemu-devel] [PATCH v2 01/16] ahci: Rename NCQFIS structure fields

2015-06-22 Thread John Snow
Several fields of the NCQFIS structure are ambiguously named. This patch clarifies the intended (if unsupported) usage of the NCQ fields to aid in creating more meaningful debug messages through the NCQ codepaths. Signed-off-by: John Snow --- hw/ide/ahci.h | 35 +-

[Qemu-devel] [PATCH v2 06/16] ahci: add ncq debug checks

2015-06-22 Thread John Snow
Most of the time, these bits can be safely ignored. For the purposes of debugging however, it's nice to know that they're not being used. Signed-off-by: John Snow --- hw/ide/ahci.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 14

[Qemu-devel] [PATCH v2 00/16] ahci: ncq cleanup, part 1

2015-06-22 Thread John Snow
requires: 1434470575-21625-1-git-send-email-js...@redhat.com [PATCH v2 0/4] ahci: misc fixes/tests for 2.4 This series adds a couple of tests to exercise the NCQ pathways and establish a baseline for us. Most of these patches are fairly short and should be relatively trivial to review.

[Qemu-devel] [PATCH v5 3/3] tests: add testcase for TCO watchdog emulation

2015-06-22 Thread Paulo Alcantara
This patch adds a testcase that covers the following: 1) TCO default values 2) first and second TCO timeout 3) watch and validate ticks counter through TCO_RLD register 4) maximum supported TCO timeout (0x3ff) 5) watchdog actions (pause/reset/shutdown/none) upon second TCO timeout

[Qemu-devel] [PATCH v5 1/3] ich9: add TCO interface emulation

2015-06-22 Thread Paulo Alcantara
This interface provides some registers within a 32-byte range and can be acessed through PCI-to-LPC bridge interface (PMBASE + 0x60). It's commonly used as a watchdog timer to detect system lockups through SMIs that are generated -- if TCO_EN bit is set -- on every timeout. If NO_REBOOT bit is not

[Qemu-devel] [PATCH v5 2/3] target-i386: reserve RCRB mmio space in ACPI DSDT table

2015-06-22 Thread Paulo Alcantara
This block is mapped into memory space, using the Root Complex Base Address (RCBA) register of the PCI-to-LPC bridge. Accesses in this space must be limited to 32-(DW) bit quantities. Burst accesses are not allowed. All Chipset Configuration Registers are located in this 16KiB space. Signed-off-b

[Qemu-devel] [PATCHv2 for-2.4] block: Auto-generate node_names for each BDS entry

2015-06-22 Thread Eric Blake
From: Jeff Cody Currently, node_name is only filled in when done so explicitly by the user. If no node_name is specified, then the node name field is not populated. If node_names are automatically generated when not specified, that means that all block job operations can be done by reference to

Re: [Qemu-devel] [PATCH] block/iscsi: add support for request timeouts

2015-06-22 Thread ronnie sahlberg
LGTM It is good to finally have timeouts that work in libiscsi, and a consumer that can use and benefit from it. On Tue, Jun 16, 2015 at 4:45 AM, Peter Lieven wrote: > libiscsi starting with 1.15 will properly support timeout of iscsi > commands. The default will remain no timeout, but this ca

Re: [Qemu-devel] [PATCH v3 04/11] linux-user: arm: set CPSR.E correctly for BE8 mode

2015-06-22 Thread Peter Crosthwaite
On Thu, Jun 26, 2014 at 7:18 AM, Paolo Bonzini wrote: > Il 26/06/2014 16:15, Peter Maydell ha scritto: >> >> (There is code for handling CPSR_E in the kernel's start_thread() >> macro but that is actually only called for starting new >> processes, AFAICT.) > > > Yes, you're right. > So I am strug

Re: [Qemu-devel] [PATCH] Peek dont read for vmdescription

2015-06-22 Thread Alexander Graf
On 22.06.15 16:49, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > The VMDescription section maybe after the EOF mark, the current code > does a 'qemu_get_byte' and either gets the header byte identifying the > description or an error (which it ignores). Doing the 'get

Re: [Qemu-devel] 4 CPUs with vexpress is slow?

2015-06-22 Thread Frederic Konrad
On 22/06/2015 22:57, Peter Maydell wrote: On 22 June 2015 at 19:18, Frederic Konrad wrote: Testing MTTCG patch-set performance I found strange slowness with _upstream_ qemu (46bca5404b08201bb9df1ac32bc88fc7e6db1f74). Basically booting a vexpress-a15 with "-smp 4" takes approximately forever if

Re: [Qemu-devel] [PATCH 3/7] qga: Clean up unnecessarily dirty casts

2015-06-22 Thread Eric Blake
On 06/22/2015 01:26 PM, Markus Armbruster wrote: > qga_vss_fsfreeze() casts error_set_win32() from > > void (*)(Error **, int, ErrorClass, const char *, ...) > > to > > void (*)(void **, int, int, const char *, ...) > > The result is later called. Since the two types are not compatible

Re: [Qemu-devel] [Qemu-block] RFC cdrom in own thread?

2015-06-22 Thread John Snow
On 06/22/2015 09:09 AM, Peter Lieven wrote: > Am 22.06.2015 um 11:25 schrieb Stefan Hajnoczi: >> On Fri, Jun 19, 2015 at 2:14 PM, Peter Lieven wrote: >>> Am 18.06.2015 um 11:36 schrieb Stefan Hajnoczi: On Thu, Jun 18, 2015 at 10:29 AM, Peter Lieven wrote: > Am 18.06.2015 um 10:42 schri

Re: [Qemu-devel] [PATCH 08/16] ahci: clear error register before NCQ cmd

2015-06-22 Thread John Snow
On 06/22/2015 10:43 AM, John Snow wrote: > > > On 06/22/2015 10:38 AM, Stefan Hajnoczi wrote: >> On Fri, Jun 19, 2015 at 09:50:39PM -0400, John Snow wrote: >>> The legacy ide command execution layer will clear any errors >>> outstanding before execution, but the NCQ layer doesn't. Even on >>> s

[Qemu-devel] [PATCH v8 01/11] block: keep a list of block jobs

2015-06-22 Thread Alberto Garcia
The current way to obtain the list of existing block jobs is to iterate over all root nodes and check which ones own a job. Since we want to be able to support block jobs in other nodes as well, this patch keeps a list of jobs that is updated every time one is created or destroyed. This also upda

Re: [Qemu-devel] [PATCH 2/7] error: Make error_setg() a function

2015-06-22 Thread Eric Blake
On 06/22/2015 01:26 PM, Markus Armbruster wrote: > Saves a tiny amount of code at every call site. > > Signed-off-by: Markus Armbruster > --- > include/qapi/error.h | 4 ++-- > util/error.c | 9 + > 2 files changed, 11 insertions(+), 2 deletions(-) Reviewed-by: Eric Blake (Int

  1   2   3   4   >