[Qemu-devel] [PATCH 07/14] es1370: Use PCI DMA stub functions

2011-10-31 Thread David Gibson
From: Eduard - Gabriel Munteanu This updates the es1370 device emulation to use the explicit PCI DMA functions, instead of directly calling physical memory access functions. Signed-off-by: Eduard - Gabriel Munteanu Signed-off-by: David Gibson --- hw/es1370.c |5 +++-- 1 files changed, 3 i

[Qemu-devel] [PATCH 11/14] intel-hda: Use PCI DMA stub functions

2011-10-31 Thread David Gibson
This updates the intel-hda device emulation to use the explicit PCI DMA functions, instead of directly calling physical memory access functions. Signed-off-by: David Gibson Signed-off-by: Alexey Kardashevskiy --- hw/intel-hda.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletion

[Qemu-devel] [PATCH 08/14] e1000: Use PCI DMA stub functions

2011-10-31 Thread David Gibson
From: Eduard - Gabriel Munteanu This updates the e1000 device emulation to use the explicit PCI DMA functions, instead of directly calling physical memory access functions. Signed-off-by: Eduard - Gabriel Munteanu Signed-off-by: David Gibson --- hw/e1000.c | 29 +++--

[Qemu-devel] [PATCH 02/14] Use dma_addr_t type for scatter/gather code

2011-10-31 Thread David Gibson
This patch uses the newly created dma_addr_t type throughout the scatter/gather handling code in dma-helpers.c whenever we need to represent a dma bus address. This makes a better distinction as to what is a bus address and what is a cpu physical address. Since we don't support IOMMUs yet, they c

[Qemu-devel] [PATCH 04/14] rtl8139: Use PCI DMA stub functions

2011-10-31 Thread David Gibson
From: Eduard - Gabriel Munteanu This updates the rtl8139 device emulation to use the explicit PCI DMA functions, instead of directly calling physical memory access functions. Signed-off-by: Eduard - Gabriel Munteanu Signed-off-by: David Gibson --- hw/rtl8139.c | 106 +

[Qemu-devel] [PATCH 09/14] lsi53c895a: Use PCI DMA stub functions

2011-10-31 Thread David Gibson
From: Eduard - Gabriel Munteanu This updates the lsi53c895a device emulation to use the explicit PCI DMA functions, instead of directly calling physical memory access functions. Signed-off-by: Eduard - Gabriel Munteanu Signed-off-by: David Gibson --- hw/lsi53c895a.c | 33 ---

[Qemu-devel] [PATCH 05/14] eepro100: Use PCI DMA stub functions

2011-10-31 Thread David Gibson
From: Eduard - Gabriel Munteanu This updates the eepro100 device emulation to use the explicit PCI DMA functions, instead of directly calling physical memory access functions. Signed-off-by: Eduard - Gabriel Munteanu Signed-off-by: David Gibson Signed-off-by: Alexey Kardashevskiy --- hw/eepr

[Qemu-devel] [PATCH 10/14] pcnet-pci: Use PCI DMA stub functions

2011-10-31 Thread David Gibson
From: Eduard - Gabriel Munteanu This updates the pcnet-pci device emulation to use the explicit PCI DMA functions, instead of directly calling physical memory access functions. Signed-off-by: Eduard - Gabriel Munteanu Signed-off-by: David Gibson --- hw/pcnet-pci.c |6 -- 1 files chang

Re: [Qemu-devel] [PATCH] cmd: Fix potential NULL pointer dereference

2011-10-31 Thread Pavel Borzenkov
On Mon, Oct 31, 2011 at 10:27 AM, Markus Armbruster wrote: > Pavel Borzenkov writes: > >> Signed-off-by: Pavel Borzenkov >> --- >> Note, that almost all code in the file violates CODING STYLE. The changed >> lines >> are written wrt CODING STYLE (like commits 7d7d975c and c32d766a). >> >> --- >

[Qemu-devel] [PATCH 13/14] usb-ehci: Use PCI DMA stub functions

2011-10-31 Thread David Gibson
This updates the usb-ehci device emulation to use the explicit PCI DMA wrapper to initialize its scatter/gathjer structure. This means this driver should not need further changes when the sglist interface is extended to support IOMMUs. Signed-off-by: David Gibson --- hw/usb-ehci.c | 44 ++

[Qemu-devel] [PATCH 14/14] usb-uhci: Use PCI DMA stub functions

2011-10-31 Thread David Gibson
This updates the usb-uhci device emulation to use the explicit PCI DMA wrapper to initialize its scatter/gathjer structure. This means this driver should not need further changes when the sglist interface is extended to support IOMMUs. Signed-off-by: David Gibson --- hw/usb-uhci.c | 22 ++

[Qemu-devel] [PATCH 06/14] ac97: Use PCI DMA stub functions

2011-10-31 Thread David Gibson
From: Eduard - Gabriel Munteanu This updates the ac97 device emulation to use the explicit PCI DMA functions, instead of directly calling physical memory access functions. Signed-off-by: Eduard - Gabriel Munteanu Signed-off-by: David Gibson --- hw/ac97.c |7 --- 1 files changed, 4 ins

[Qemu-devel] [PATCH 03/14] Add stub functions for PCI device models to do PCI DMA

2011-10-31 Thread David Gibson
This patch adds functions to pci.[ch] to perform PCI DMA operations. At present, these are just stubs which perform directly cpu physical memory accesses. Stubs are included which are analogous to cpu_physical_memory_{read,write}(), the stX_phys() and ldX_phys() functions and cpu_physical_memory_{

[Qemu-devel] [PATCH 01/14] Define DMA address and direction types

2011-10-31 Thread David Gibson
As a preliminary to adding more extensive DMA and IOMMU infrastructure support into qemu, this patch defines a dma_addr_t for storing DMA bus addresses and a DMADirection enum which describes whether a DMA is from an external device to main memory or from main memory to an external device. For now

Re: [Qemu-devel] [PATCH v3 03/13] qemu-timer: move common code to qemu_rearm_alarm_timer

2011-10-31 Thread TeLeMan
On Sat, Oct 22, 2011 at 00:26, Paolo Bonzini wrote: > Reviewed-by: Anthony Liguori > Signed-off-by: Paolo Bonzini > --- >  qemu-timer.c |  129 > -- >  1 files changed, 53 insertions(+), 76 deletions(-) > > diff --git a/qemu-timer.c b/qemu-

Re: [Qemu-devel] Why some ARM NEON helper functions need mask?

2011-10-31 Thread 陳韋任
Thanks, Max and Chih-Min. It's much clear to me now. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

Re: [Qemu-devel] [PULL] VirtFS update 7

2011-10-31 Thread Aneesh Kumar K.V
On Tue, 25 Oct 2011 15:02:44 +0530, Aneesh Kumar K.V wrote: > > Hi, > > This include all the pending patches for 1.0 > > The following changes since commit 952e849c150b4f1b89f8728cba00f925c1d6e75b: > > Merge remote-tracking branch 'bonzini/split-main-loop-for-anthony' into > staging (2011-

Re: [Qemu-devel] [PATCH 1/2] seabios: Add Local APIC NMI Structure to ACPI MADT

2011-10-31 Thread Kenji Kaneshige
(2011/10/28 21:48), Jun Koi wrote: 2011/10/28 Kenji Kaneshige: Avi, Jan, Could you comment on these patches? Inject-NMI doesn't work on Windows guest without these patches. sorry but i am really curious here: why Windows still works well even if it desnt see the inject-NMI? or there are stil

Re: [Qemu-devel] [PATCH 2/2] Documentation: Add syntax for using sheepdog devices

2011-10-31 Thread Kevin Wolf
Am 29.10.2011 05:40, schrieb ronnie sahlberg: > Hi Kevin, > > I agree that maybe we should have a link from the TOC down to the > "Device URL Syntax". > I can create a patch to do so. > > For moving the existing "Device URL Syntax" information into "3.6 Disk > Images", I am not sure. > I think bo

Re: [Qemu-devel] [PATCH] qed: adjust the way to get nb_sectors

2011-10-31 Thread Kevin Wolf
Am 31.10.2011 04:01, schrieb Zhi Yong Wu: > It is better to use qiov.size in qed-table.c to get nb_sectors than > iov.iov_len. > > Signed-off-by: Zhi Yong Wu The commit message should probably say why it's better. Not saying otherwise, but I can't see the different at the first sight. Kevin

Re: [Qemu-devel] [PATCH] qed: adjust the way to get nb_sectors

2011-10-31 Thread Zhi Yong Wu
On Mon, Oct 31, 2011 at 4:10 PM, Kevin Wolf wrote: > Am 31.10.2011 04:01, schrieb Zhi Yong Wu: >> It is better to use qiov.size in qed-table.c to get nb_sectors than >> iov.iov_len. >> >> Signed-off-by: Zhi Yong Wu > > The commit message should probably say why it's better. Not saying > otherwis

[Qemu-devel] Performance of USB2.0

2011-10-31 Thread Til Obes
Hello all, i want to use a virtual router which is connected to a cable box via an usb ethernet controller. The device itself runs properly at normal usage. But inside the virtual machine i get only about 7MBit. I configured the the usb device with the following xml syntax of libvirt: func

Re: [Qemu-devel] [PATCH 2/2] [WIP]Added target to build libvdisk

2011-10-31 Thread Paolo Bonzini
On 10/30/2011 07:04 PM, Saggi Mizrahi wrote: I wonder also what thread API should be used, qemu_thread versions used internally or standard ones. It would be logical to use qemu_thread versions but then the external user should use those too. I would prefer not to use qemu's threading as it'll

Re: [Qemu-devel] [PATCH 1/2] Better support for distros using /lib64 directories

2011-10-31 Thread Paolo Bonzini
On 10/30/2011 05:51 PM, Saggi Mizrahi wrote: Some distributions use lib64 directories for 64 bit libraries. Currently configure would always generate libdir as $PREFIX/lib. By checking if the current distro has a /lib64 directory we can assume it is using this convention. This doesn't work if p

Re: [Qemu-devel] [PATCH v3 03/13] qemu-timer: move common code to qemu_rearm_alarm_timer

2011-10-31 Thread Paolo Bonzini
On 10/31/2011 08:23 AM, TeLeMan wrote: >static void qemu_rearm_alarm_timer(struct qemu_alarm_timer *t) >{ > -if (!alarm_has_dynticks(t)) > +int64_t nearest_delta_ns; > +assert(alarm_has_dynticks(t)); "mmtimer" and "win32" alarms have no rearm. Should we remove these two al

[Qemu-devel] [PATCH 0/2] Cocoa patches for 1.0

2011-10-31 Thread Andreas Färber
[Seems they didn't make it to the list yesterday] Hello, Here's two Cocoa patches I'd like to see pulled into 1.0. First, documenting the de facto maintainer. Second, fixing the build. Since qemu-system-* crashes after selecting an image file, I can only say that Juan's sheet patch compiles and

[Qemu-devel] [PATCH 1/2] MAINTAINERS: Add Cocoa maintainer

2011-10-31 Thread Andreas Färber
Degrade cocoa.m from Maintained to Odd Fixes. Signed-off-by: Andreas Färber Cc: Anthony Liguori --- MAINTAINERS |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 2b4c5d7..c08951c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -446,6 +446

[Qemu-devel] [PATCH 2/2] softfloat: Avoid uint16 type conflict on Darwin

2011-10-31 Thread Andreas Färber
In file included from ./bswap.h:7, from ./qemu-common.h:106, from ./qemu-aio.h:17, from ./Block.h:4, from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/FSEvents.h:28, fr

Re: [Qemu-devel] [PULL 0/3] 128-bit support for the memory API

2011-10-31 Thread Avi Kivity
On 10/31/2011 02:36 AM, David Gibson wrote: > > > > There is no direct use of signed arithmetic in the API (just in the > > implementation). Aliases can cause a region to move in either the > > positive or negative direction, and this requires either signed > > arithmetic or special casing the tw

[Qemu-devel] [PATCH] qemu-io: Handle create_iovec errors

2011-10-31 Thread Kevin Wolf
Callers of create_iovec() didn't check for failure and continued with uninitialised data in error cases. This patch adds checks to each call. Signed-off-by: Kevin Wolf --- qemu-io.c | 28 1 files changed, 24 insertions(+), 4 deletions(-) diff --git a/qemu-io.c b/q

[Qemu-devel] [PATCH] qemu-io: Fix multiwrite_f error handling

2011-10-31 Thread Kevin Wolf
Without this fix, some qiovs can be leaked if an error occurs. Also a semicolon at the end of the command line would make the code walk beyond the end of argv. Signed-off-by: Kevin Wolf --- qemu-io.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/qemu-io.c b/qem

Re: [Qemu-devel] [libvirt] RFC decoupling VM NIC provisioning from VM NIC connection to backend networks

2011-10-31 Thread Daniel P. Berrange
On Fri, Oct 28, 2011 at 04:15:41PM -0700, Sumit Naiksatam (snaiksat) wrote: > Hi, > > In its current implementation Libvirt makes sure that the network > interfaces that it passes/provision to a VM (for example to qemu[-kvm]) > are already connected to its backend (interfaces/networks) by the time

[Qemu-devel] [Bug 882358] Re: device assignment doesn't work: "error: requires KVM support"

2011-10-31 Thread Yongjie Ren
This is because kvm is not enabled by default even if I add KVM support when configuring qemu. Now it got fixed by the following commit. author Marcelo Tosatti Thu, 27 Oct 2011 20:34:42 +0800 (10:34 -0200) committer Marcelo Tosatti Thu, 27 Oct 2011 20:34:42 +0800 (10:34 -0200) com

[Qemu-devel] [Bug 882358] Re: device assignment doesn't work: "error: requires KVM support"

2011-10-31 Thread Yongjie Ren
It works now. ** Changed in: qemu Status: New => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/882358 Title: device assignment doesn't work: "error: requires KVM support" Stat

Re: [Qemu-devel] [Qemu test report] Autotest | Job ID: 1997 "Upstream qemu.git sanity 10-30-2011 00:05:01" | Status: 1 Completed | Success Rate: 53.85 %

2011-10-31 Thread Luiz Capitulino
On Mon, 31 Oct 2011 00:01:07 -0200 Lucas Meneghel Rodrigues wrote: > Hi folks, sending this to QEMU devel to inform the current problems we > are able to reproduce on the current master branch. > > So, qemu.git is presenting problems as of latest master. None of the > problems mentioned is hap

Re: [Qemu-devel] GSoC mentor summit session "how to bind students long-term"

2011-10-31 Thread Stefan Hajnoczi
On Sat, Oct 29, 2011 at 04:00:34PM +0200, Alexander Graf wrote: > During the GSoC mentor summit there was a pretty interesting session on how > to get students to stick with your project even after GSoC has ended. So far > we haven't really been exactly successful in that respect :). I'll just po

[Qemu-devel] [PATCH] hw/9pfs: use g_vasprintf() instead of rolling our own

2011-10-31 Thread Stefan Hajnoczi
Markus Armbruster sent fixes for va_list vararg issues in v9fs_string_alloc_printf(). It turns out the function duplicates g_vasprintf() and can therefore be eliminated entirely. Signed-off-by: Stefan Hajnoczi --- hw/9pfs/virtio-9p.c | 103 ++-

Re: [Qemu-devel] [Qemu-trivial] [PATCH 2/2] hw/9pfs: Supply missing va_end()

2011-10-31 Thread Stefan Hajnoczi
On Fri, Oct 28, 2011 at 9:52 AM, Markus Armbruster wrote: > C99 7.15.1: Each invocation of the va_start and va_copy macros shall > be matched by a corresponding invocation of the va_end macro in the > same function. > > Spotted by Coverity.  Harmless on the (common) systems where va_end() > does n

Re: [Qemu-devel] [PATCH 1/2] sysbus: Supply missing va_end()

2011-10-31 Thread Stefan Hajnoczi
On Fri, Oct 28, 2011 at 10:52:25AM +0200, Markus Armbruster wrote: > C99 7.15.1: Each invocation of the va_start and va_copy macros shall > be matched by a corresponding invocation of the va_end macro in the > same function. > > Spotted by Coverity. Harmless on the (common) systems where va_end()

Re: [Qemu-devel] [Qemu-trivial] [PATCH] qapi: fix typos in documentation JSON examples

2011-10-31 Thread Stefan Hajnoczi
On Fri, Oct 28, 2011 at 03:58:26PM +0100, Stefan Hajnoczi wrote: > Signed-off-by: Stefan Hajnoczi > --- > docs/qapi-code-gen.txt |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) Applied to the trivial patches -next tree: http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/tr

Re: [Qemu-devel] [PATCH] acl: Fix use after free in qemu_acl_reset()

2011-10-31 Thread Stefan Hajnoczi
On Fri, Oct 28, 2011 at 05:07:02PM +0200, Markus Armbruster wrote: > Reproducer: > > $ MALLOC_PERTURB_=234 qemu-system-x86_64 -vnc :0,acl,sasl [...] > QEMU 0.15.50 monitor - type 'help' for more information > (qemu) acl_add vnc.username fred allow > acl: added rule at position 1 >

Re: [Qemu-devel] [PATCH 0/3] Xen related patches

2011-10-31 Thread Kevin Wolf
Am 28.10.2011 21:38, schrieb John Baboval: > These are some xen related patches that have been sitting around in are > queue waiting for us to re-base onto a modern qemu. Now that we're > up-to-date, they're ready to share with the list. > > They are all things that enable successfully running w

Re: [Qemu-devel] [PATCH 3/3] piix4 acpi xen support

2011-10-31 Thread Ian Campbell
Please CC xen-devel on patches which impact the Xen support in qemu. On Fri, 2011-10-28 at 15:38 -0400, John Baboval wrote: > When in xen mode, handle the view of pm ioport appropriately. > > I'm not entirely comfortable with this patch, since it relies on values > that are hard coded into the DS

Re: [Qemu-devel] Performance of USB2.0

2011-10-31 Thread Hans de Goede
Hi, On 10/31/2011 10:27 AM, Til Obes wrote: Hello all, i want to use a virtual router which is connected to a cable box via an usb ethernet controller. The device itself runs properly at normal usage. But inside the virtual machine i get only about 7MBit. I configured the the usb device with th

Re: [Qemu-devel] [PATCH] hw/9pfs: use g_vasprintf() instead of rolling our own

2011-10-31 Thread Markus Armbruster
Stefan Hajnoczi writes: > Markus Armbruster sent fixes for va_list vararg > issues in v9fs_string_alloc_printf(). It turns out the function > duplicates g_vasprintf() and can therefore be eliminated entirely. > > Signed-off-by: Stefan Hajnoczi > --- > hw/9pfs/virtio-9p.c | 103 > ++-

Re: [Qemu-devel] GSoC mentor summit QEMU users session

2011-10-31 Thread Peter Maydell
On 29 October 2011 14:52, Alexander Graf wrote: > We should also show people unmaintained areas. The conclusion was a wiki > page with subsystems and status so people know what to expect. Maybe we > could generate this from the MAINTAINERS file? Sounds like a good idea, although I think we might

Re: [Qemu-devel] [PATCH 3/3] piix4 acpi xen support

2011-10-31 Thread Anthony PERARD
On Mon, Oct 31, 2011 at 12:41, Ian Campbell wrote: > Please CC xen-devel on patches which impact the Xen support in qemu. > > On Fri, 2011-10-28 at 15:38 -0400, John Baboval wrote: >> When in xen mode, handle the view of pm ioport appropriately. >> >> I'm not entirely comfortable with this patch,

[Qemu-devel] [PULL 00/55] Block patches

2011-10-31 Thread Kevin Wolf
The following changes since commit b5a12aa204f842c8010ac9d2e4b115114dbf09f0: Merge branch 'rth/vis2' of git://repo.or.cz/qemu/rth (2011-10-27 20:27:07 +) are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony Dong Xu Wang (1): block: fix qcow2_co_flus

[Qemu-devel] [PATCH 02/55] Documentation: Add iSCSI section

2011-10-31 Thread Kevin Wolf
From: Ronnie Sahlberg Add new section for device URL syntax for special files and describe the iSCSI URL with examples Signed-off-by: Ronnie Sahlberg Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- qemu-options.hx | 42 ++ 1 files changed,

[Qemu-devel] [PATCH 08/55] ide: Fix off-by-one error in array index check

2011-10-31 Thread Kevin Wolf
Signed-off-by: Kevin Wolf Reviewed-by: Paolo Bonzini --- hw/ide/core.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/ide/core.c b/hw/ide/core.c index 280a117..29305d3 100644 --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -2039,7 +2039,7 @@ static int ide_drive_pio_post

[Qemu-devel] [PATCH 47/55] scsi: move max_lba to SCSIDevice

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini The field is only in scsi-disk for now. Moving it up to SCSIDevice makes it easier to reuse the scsi-generic reqops elsewhere. At the same time, make scsi-generic get max_lba from snooped READ CAPACITY commands as well. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wol

[Qemu-devel] 1.0 Hard Freeze Logistics

2011-10-31 Thread Anthony Liguori
Hi, Here are the logistics for the upcoming 1.0 hard freeze. All dates are reflected in the wiki[1]. If you're a contributor and you've sent a series before the soft freeze deadline, you've already done everything you need to do so sit back and enjoy gorge yourself on Halloween candy. If

[Qemu-devel] [PATCH 36/55] scsi: add channel to addressing

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini This also requires little more than adding the new argument to scsi_device_find, and the qdev property. All devices by default end up on channel 0. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- hw/esp.c |4 ++-- hw/lsi53c895a.c |4 ++-- hw/sc

Re: [Qemu-devel] [PATCH v9 1/4] block: add the block queue support

2011-10-31 Thread Stefan Hajnoczi
On Fri, Oct 28, 2011 at 11:02 AM, Zhi Yong Wu wrote: > +static void bdrv_io_limits_skip_set(void *opaque, > +                                    BlockAPIType co_type, > +                                    bool cb_skip, > +                                    bool limit_skip) { > +    RwCo *rwco; >

Re: [Qemu-devel] Performance of USB2.0

2011-10-31 Thread Til Obes
Hi. Am 31.10.2011 13:46, schrieb Hans de Goede: If you're using libvirt to start qemu, then it will also pass -usb to qemu, so you will have both a usb-1 (uhci) and a usb-2 (ehci) controller inside your vm, since your hostdev xml code does not specify a bus the hostdev will likely get connected

[Qemu-devel] [PATCH 51/55] scsi: do not call transfer_data after canceling a request

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini Otherwise, if cancellation is "faked" by the AIO layer and goes through qemu_aio_flush, the whole request is completed synchronously during scsi_req_cancel. Using the enqueued flag would work here, but not in the next patches, so I'm introducing a new io_canceled flag. That'

Re: [Qemu-devel] [PATCH v3 0/3] TLS abstraction layer for thread-local cpu_single_env on Linux

2011-10-31 Thread Peter Maydell
An early ping since I have no idea who counts as the submaintainer for this patchset and it definitely needs to go in for 1.0... thanks -- PMM On 28 October 2011 10:52, Peter Maydell wrote: > These patches add enough of the TLS abstraction layer to allow us > to make cpu_single_env thread-local

[Qemu-devel] [PATCH 21/55] atapi: cleanup/fix mode sense results

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini The first two bytes (after the 8-byte ATAPI header) are the mode page number and the number of bytes after the length field itself. Make this clear in the code. The AUDIO_CTL page was filled with wrong values. It is not anymore in MMC, but at least keep the values sane. Si

[Qemu-devel] [PATCH 20/55] atapi: move GESN definitions to scsi-defs.h

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini As a complement to the previous patch, move definitions for GET EVENT STATUS NOTIFICATION from the two functions to scsi-defs.h. The NCR_* constants are just bit values corresponding to the ENC_* values, with no offsets even, so keep just one copy. Signed-off-by: Paolo Bonzi

[Qemu-devel] [PATCH 30/55] scsi-disk: report media changed via GET EVENT STATUS NOTIFICATION

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini This adds support for media change notification via the GET EVENT STATUS NOTIFICATION command, used by Linux versions 2.6.38 and newer. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- hw/scsi-disk.c | 57 ---

[Qemu-devel] [PATCH 23/55] scsi-disk: report media changed via unit attention sense codes

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini Building on the previous patch, this one adds a media change callback to scsi-disk. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- hw/scsi-bus.c |5 + hw/scsi-disk.c | 29 - hw/scsi.h |2 ++ 3 files changed, 35 in

[Qemu-devel] [PATCH 45/55] scsi-disk: remove cluster_size

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini This field is redundant, and having it makes it more complicated to share reqops between the upcoming scsi-block and scsi-generic. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- hw/scsi-disk.c | 35 --- 1 files changed, 16 inse

[Qemu-devel] [PATCH 01/55] iSCSI block driver

2011-10-31 Thread Kevin Wolf
From: Ronnie Sahlberg This provides built-in support for iSCSI to QEMU. This has the advantage that the iSCSI devices need not be made visible to the host, which is useful if you have very many virtual machines and very many iscsi devices. It also has the benefit that non-root users of QEMU ca

Re: [Qemu-devel] [PATCH v2] trace: Add wildcard trace event support

2011-10-31 Thread Stefan Hajnoczi
On Mon, Oct 31, 2011 at 11:29:04AM +0800, Mark Wu wrote: > A basic wildcard matching is supported in both the monitor command > "trace-event" and the events list file. That means you can enable/disable > the events having a common prefix in a batch. For example, virtio-blk trace > events could be e

Re: [Qemu-devel] [libvirt] RFC decoupling VM NIC provisioning from VM NIC connection to backend networks

2011-10-31 Thread Markus Armbruster
"Daniel P. Berrange" writes: > On Fri, Oct 28, 2011 at 04:15:41PM -0700, Sumit Naiksatam (snaiksat) wrote: >> Hi, >> >> In its current implementation Libvirt makes sure that the network >> interfaces that it passes/provision to a VM (for example to qemu[-kvm]) >> are already connected to its bac

[Qemu-devel] [PATCH 18/55] scsi: pass correct sense code for ENOMEDIUM

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- hw/scsi-disk.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 6909578..9c62569 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@ -231,6 +231,9 @@ s

Re: [Qemu-devel] [PATCH] qed: adjust the way to get nb_sectors

2011-10-31 Thread Stefan Hajnoczi
On Mon, Oct 31, 2011 at 8:25 AM, Zhi Yong Wu wrote: > On Mon, Oct 31, 2011 at 4:10 PM, Kevin Wolf wrote: >> Am 31.10.2011 04:01, schrieb Zhi Yong Wu: >>> It is better to use qiov.size in qed-table.c to get nb_sectors than >>> iov.iov_len. >>> >>> Signed-off-by: Zhi Yong Wu >> >> The commit mess

[Qemu-devel] [PATCH 06/55] block: Fix bdrv_open use after free

2011-10-31 Thread Kevin Wolf
tmp_filename was used outside the block it was defined in, i.e. after it went out of scope. Move its declaration to the top level. Signed-off-by: Kevin Wolf --- block.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block.c b/block.c index f86984f..d5ec0be 100644 --- a

[Qemu-devel] [PATCH 42/55] scsi-generic: look at host status

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini Pass down the host status so that failing transport can be detected by the guest. Similar treatment of host status could be done in virtio-blk, too. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- hw/scsi-generic.c | 20 1 files changed,

[Qemu-devel] [PATCH 48/55] scsi: make reqops const

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini Also delete a stale occurrence of SCSIReqOps inside SCSIDeviceInfo. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- hw/scsi-bus.c | 10 +- hw/scsi-disk.c|2 +- hw/scsi-generic.c |2 +- hw/scsi.h |7 +++ 4 files changed,

[Qemu-devel] [PATCH 33/55] scsi: remove devs array from SCSIBus

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini Change the devs array into a linked list, and add a scsi_device_find function to navigate the children list instead. This lets the SCSI bus use more complex addressing, and HBAs can talk to the correct device when there are multiple LUNs per target. scsi_device_find may retu

[Qemu-devel] [PATCH 37/55] scsi-disk: fail READ CAPACITY if LBA != 0 but PMI == 0

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini Tested by the Windows Logo Kit SCSI Compliance test. From SBC-3, paragraph 5.25: "The LOGICAL BLOCK ADDRESS field shall be set to zero if the PMI bit is set to zero. If the PMI bit is set to zero and the LOGICAL BLOCK ADDRESS field is not set to zero, then the device server sh

Re: [Qemu-devel] 1.0 Hard Freeze Logistics

2011-10-31 Thread Stefan Hajnoczi
On Mon, Oct 31, 2011 at 1:28 PM, Anthony Liguori wrote: > To make the Test Day more successful, please sign up to test a specific area > on the Test[3] wiki page. [...] > [3] http://wiki.qemu.org/Planning/1.0/Testing I just signed up for several block and tracing tests and encourage everyone to g

[Qemu-devel] [PATCH 53/55] scsi-generic: bump SCSIRequest reference count until aio completion runs

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini Same as before, but for scsi-generic. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- hw/scsi-generic.c | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c index 2f95f2d..9594cc1 100644

[Qemu-devel] [PATCH 27/55] atapi/scsi-disk: make mode page values coherent between the two

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini This patch adds to scsi-disk the missing mode page 0x01 for both disk and CD-ROM drives, and mode page 0x0e for CD drives only. A few offsets were wrong in atapi.c. Also change the 2Ah mode page to expose DVD media read capabilities in the IDE cdrom. This lets you run dvd+r

[Qemu-devel] [PATCH 03/55] Teach block/vdi about "discarded" (no longer allocated) blocks

2011-10-31 Thread Kevin Wolf
From: Eric Sunshine An entry in the VDI block map will hold an offset to the actual block if the block is allocated, or one of two specially-interpreted values if not allocated. Using VirtualBox terminology, value VDI_IMAGE_BLOCK_FREE (0x) represents a never-allocated block (semantically

[Qemu-devel] [PATCH 49/55] scsi: export scsi_generic_reqops

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- hw/scsi-generic.c |2 +- hw/scsi.h |3 +++ 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c index a5e77cb..32f50cd 100644 --- a/hw/scsi-generic.c +

[Qemu-devel] [PATCH 28/55] scsi-disk: support DVD profile in GET CONFIGURATION

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- hw/scsi-disk.c | 50 ++ 1 files changed, 42 insertions(+), 8 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 116e562..38b196b 100644 --- a/hw/scsi-d

[Qemu-devel] [PATCH 17/55] Documentation: Add syntax for using sheepdog devices

2011-10-31 Thread Kevin Wolf
From: Ronnie Sahlberg Signed-off-by: Ronnie Sahlberg Signed-off-by: Kevin Wolf --- qemu-options.hx | 27 +++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index c55080c..8be6f4b 100644 --- a/qemu-options.hx +++ b/qem

[Qemu-devel] [PATCH 12/55] Documentation: Describe NBD URL syntax

2011-10-31 Thread Kevin Wolf
From: Ronnie Sahlberg This patch adds a short description of how to specify a NBD device to QEMU. Syntax for both TCP and Unix Domain Sockets are provided as well as examples. Signed-off-by: Ronnie Sahlberg Signed-off-by: Kevin Wolf --- qemu-options.hx | 21 + 1 files ch

[Qemu-devel] [PATCH 54/55] scsi: push request restart to SCSIDevice

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini The request restart mechanism is generic and could be reused for scsi-generic. In the meanwhile, pushing it to SCSIDevice avoids that scsi_dma_restart_bh looks at SCSIGenericReqs when working on a scsi-block device. The code is the same that is already in hw/scsi-disk.c, wit

[Qemu-devel] [PATCH 29/55] scsi-disk: support READ DVD STRUCTURE

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- hw/scsi-disk.c | 102 +++- 1 files changed, 101 insertions(+), 1 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 38b196b..8f8a94d 100644 --- a/hw

[Qemu-devel] [PATCH 25/55] scsi-disk: add stubs for more MMC commands

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini This patch adds a few stub implementations for MMC commands to scsi-disk, to be filled in later in the series. It also adds to scsi-defs.h constants for commands implemented by ide/atapi.c, when missing. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- hw/scsi-d

Re: [Qemu-devel] [PATCH] dma: Avoid reentrancy in DMA transfer handlers

2011-10-31 Thread Kevin Wolf
Am 28.10.2011 18:35, schrieb Paolo Bonzini: > On 10/28/2011 04:18 PM, Kevin Wolf wrote: >> With the conversion of the block layer to coroutines, bdrv_read/write >> have changed to run a nested event loop that calls qemu_bh_poll. >> Consequently a scheduled BH can be called while a DMA transfer hand

[Qemu-devel] [PATCH 44/55] scsi-disk: do not duplicate BlockDriverState member

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini Same as for scsi-generic, avoid duplication even if it causes longer lines. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- hw/scsi-disk.c | 92 +++ 1 files changed, 45 insertions(+), 47 deletions(-) diff --

[Qemu-devel] [PATCH 14/55] qemu-io: delete bs instead of leaking it

2011-10-31 Thread Kevin Wolf
From: Stefan Hajnoczi Using bdrv_close() is not enough to free a BlockDriverState. Since we explicitly create it with bdrv_new(), use bdrv_delete() to close and delete it. Signed-off-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- qemu-io.c |5 +++-- 1 files changed, 3 insertions(+), 2

[Qemu-devel] [PATCH 05/55] block: Remove dead code

2011-10-31 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- block.c |6 +- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/block.c b/block.c index 70aab63..f86984f 100644 --- a/block.c +++ b/block.c @@ -2028,11 +2028,7 @@ const char *bdrv_get_encrypted_filename(BlockDriverState *bs) void bdrv_get_back

[Qemu-devel] [PATCH 43/55] scsi-generic: snoop READ CAPACITY commands to get block size

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini Instead of "guessing" the block size when there is no medium in the drive, wait for the guest to send a READ CAPACITY command and snoop it from there. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- hw/scsi-generic.c | 66 --

[Qemu-devel] [PATCH 13/55] block: fix qcow2_co_flush deadlock

2011-10-31 Thread Kevin Wolf
From: Dong Xu Wang If qcow2_cache_flush failed, s->lock will not be unlock. Signed-off-by: Dong Xu Wang Signed-off-by: Kevin Wolf --- block/qcow2.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index a181932..ef057d3 100644 --- a/block

[Qemu-devel] [PATCH] Error check find_ram_offset

2011-10-31 Thread Alex Williamson
Spotted via code review, we initialize offset to 0 to avoid a compiler warning, but in the unlikely case that offset is never set to something else, we should abort instead of return a value that will almost certainly cause problems. Signed-off-by: Alex Williamson --- exec.c | 11 +--

[Qemu-devel] [PATCH 32/55] qdev: switch children device list to QTAILQ

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini SCSI buses will need to read the children list first-to-last. This requires using a QTAILQ, because hell breaks loose if you just try inserting at the tail (thus reversing the order of all existing visits from last-to-first to first-to-tail). Signed-off-by: Paolo Bonzini Si

[Qemu-devel] [PATCH 19/55] atapi/scsi: unify definitions for MMC

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini The definitions in ide/internal.h are duplicates, since ATAPI commands actually come from SCSI. Use the ones in scsi-defs.h and move the missing ones there. Two exceptions: - MODE_PAGE_WRITE_PARMS conflicts with the "flexible disk geometry" page in scsi-disk.c. It is unuse

[Qemu-devel] [PATCH 04/55] qcow2: fix some errors and typo in qcow2.txt

2011-10-31 Thread Kevin Wolf
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu Signed-off-by: Kevin Wolf --- docs/specs/qcow2.txt |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/specs/qcow2.txt b/docs/specs/qcow2.txt index 8fc3cb2..e792953 100644 --- a/docs/specs/qcow2.txt +++ b/docs/specs/qc

[Qemu-devel] [PATCH 38/55] scsi-disk: fix retrying a flush

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini Flush does not go anymore through scsi_disk_emulate_command. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- hw/scsi-disk.c |9 +++-- 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 6b139ac..e800ab3 10

[Qemu-devel] [PATCH 10/55] vmdk: Improve error handling

2011-10-31 Thread Kevin Wolf
Return the right error values in some more places. Signed-off-by: Kevin Wolf --- block/vmdk.c | 21 +++-- 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index 6cdbfb7..fa0e8bd 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@ -212,8 +2

[Qemu-devel] [PATCH 15/55] block: set bs->read_only before .bdrv_open()

2011-10-31 Thread Kevin Wolf
From: Stefan Hajnoczi Several block drivers set bs->read_only in .bdrv_open() but block.c:bdrv_open_common() clobbers its value. Additionally, QED uses bdrv_is_read_only() in .bdrv_open() to decide whether to perform consistency checks. The correct ordering is to initialize bs->read_only from t

[Qemu-devel] [PATCH 07/55] qcow: Fix bdrv_write_compressed error handling

2011-10-31 Thread Kevin Wolf
Signed-off-by: Kevin Wolf Reviewed-by: Paolo Bonzini --- block/qcow.c | 30 +++--- 1 files changed, 19 insertions(+), 11 deletions(-) diff --git a/block/qcow.c b/block/qcow.c index ab36b29..35e21eb 100644 --- a/block/qcow.c +++ b/block/qcow.c @@ -736,8 +736,6 @@ static

[Qemu-devel] [PATCH 26/55] scsi-disk: store valid mode pages in a table

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini A small refactoring of the MODE SENSE implementation in scsi-disk. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- hw/scsi-disk.c | 25 + 1 files changed, 13 insertions(+), 12 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c i

[Qemu-devel] [PATCH 39/55] scsi-generic: drop SCSIGenericState

2011-10-31 Thread Kevin Wolf
From: Paolo Bonzini It is not needed, because s->bs is already stored in SCSIDevice, and can be reached from the conf.bs member. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- hw/scsi-generic.c | 90 +++- 1 files changed, 40 insert

[Qemu-devel] [PATCH 11/55] vmdk: Fix possible segfaults

2011-10-31 Thread Kevin Wolf
Data we read from the disk isn't necessarily null terminated and may not contain the string we're looking for. The code needs to be a bit more careful here. Signed-off-by: Kevin Wolf --- block/vmdk.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/block/vmdk.c b/bl

  1   2   3   >