Re: [Qemu-devel] Is realview-pb-a8 fully supported ?

2011-10-13 Thread Francis Moreau
On Wed, Oct 12, 2011 at 10:46 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 12 October 2011 20:39, Francis Moreau francis.m...@gmail.com wrote: On Wed, Oct 12, 2011 at 11:23 AM, Peter Maydell peter.mayd...@linaro.org wrote: I think the mainline kernel sources should in theory work (in

Re: [Qemu-devel] [PATCH v3] add add-cow file format

2011-10-13 Thread Dong Xu Wang
On Thu 13 Oct 2011 12:23:16 AM CST, Dong Xu Wang wrote: Add add-cow file format Signed-off-by: Dong Xu Wangwdon...@linux.vnet.ibm.com --- Makefile.objs |1 + block.c|2 +- block.h|1 + block/add-cow.c| 412

Re: [Qemu-devel] [PATCH] ps2: migrate ledstate

2011-10-13 Thread Gerd Hoffmann
Hi, One thing that could be improved after this patch is that the ledstate is now present both in spice-input and hw/ps2.c, but I couldn't find an easy way to get the ps2 ledstate from spice-input so I left things this way for now. Directly linking ps/2 and spice-input would be wrong anyway

Re: [Qemu-devel] 2 MiB alignment in qemu_vmalloc()

2011-10-13 Thread Gerd Hoffmann
Hi, I can try to make QEMU more useable with Valgrind by changing the QEMU code (which was Valgrind compatible up to Avi's change). Is there some way for apps to figure they are running in valgrind? Then we could choose a different alignment automagically. Who aborts btw? Is this valgrind

Re: [Qemu-devel] [PATCH] apic: test tsc deadline timer

2011-10-13 Thread Liu, Jinsong
Avi Kivity wrote: On 10/09/2011 05:32 PM, Liu, Jinsong wrote: Updated test case for kvm tsc deadline timer https://github.com/avikivity/kvm-unit-tests, as attached. Applied, thanks. Which tree? I didn't find it at git://github.com/avikivity/kvm-unit-tests.git Thanks, Jinsong

Re: [Qemu-devel] [PATCH 0/6] trace: Add support for trace events grouping

2011-10-13 Thread Mark Wu
On 10/13/2011 01:14 AM, Mark Wu wrote: This series add support for trace events grouping. The state of a given group of trace events can be queried or changed in bulk by the following monitor commands: * info trace-groups View available trace event groups and their state. State 1 means

[Qemu-devel] [PATCH 2/4] ppc: First cut implementation of -cpu host

2011-10-13 Thread David Gibson
For convenience with kvm, x86 allows the user to specify -cpu host on the qemu command line, which means make the guest cpu the same as the host cpu. This patch implements the same option for ppc targets. For now, this just read the host PVR (Processor Version Register) and selects one of our

[Qemu-devel] [0/4] ppc: Implement -host CPU

2011-10-13 Thread David Gibson
This series of patches implements a -cpu host option for ppc, analagous to the version that already exists for x86. For now, only the basic framework is implement. In later patches, we will need to improve the code to override those parts of the cpu spec that can be queried from the host, and

[Qemu-devel] [PATCH 3/4] ppc: Add cpu defs for POWER7 revisions 2.1 and 2.3

2011-10-13 Thread David Gibson
This patch adds cpu specs to the table for POWER7 revisions 2.1 and 2.3. This allows -cpu host to be used on these host cpus. Signed-off-by: David Gibson da...@gibson.dropbear.id.au --- target-ppc/translate_init.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git

[Qemu-devel] [PATCH 4/4] pseries: Under kvm use guest cpu = host cpu by default

2011-10-13 Thread David Gibson
Now that we've implemented -cpu host for ppc, this patch updates the pseries machine to use the host cpu as the guest cpu by default when running under KVM. This is important because under KVM Book3S-HV the guest cpu _cannot_ be of a different type to the host cpu (at the moment KVM Book3S-HV

[Qemu-devel] [PATCH 1/4] ppc: Remove broken partial PVR matching

2011-10-13 Thread David Gibson
The ppc target contains a ppc_find_by_pvr() function, which looks up a CPU spec based on a PVR (that is, based on the value in the target cpu's Processor Version Register). PVR values contain information on both the cpu model (upper 16 bits, usually) and on the precise revision (low 16 bits,

Re: [Qemu-devel] [PATCH] This patch adds a new block driver : iSCSI

2011-10-13 Thread ronnie sahlberg
Previous version of the patch received very positive feedback and several expressed seeing positive value of a built-in initiator. I updated patch from feedback 3 weeks ago and Stefan kindly reviewed it. Is there some other problem with the patch I am not aware of that I should address? I have

Re: [Qemu-devel] [PATCH] This patch adds a new block driver : iSCSI

2011-10-13 Thread Paolo Bonzini
On 10/13/2011 11:46 AM, ronnie sahlberg wrote: Previous version of the patch received very positive feedback and several expressed seeing positive value of a built-in initiator. I updated patch from feedback 3 weeks ago and Stefan kindly reviewed it. Is there some other problem with the patch

Re: [Qemu-devel] [PATCH] This patch adds a new block driver : iSCSI

2011-10-13 Thread Stefan Hajnoczi
On Thu, Oct 13, 2011 at 10:46 AM, ronnie sahlberg ronniesahlb...@gmail.com wrote: Previous version of the patch received very positive feedback and several expressed seeing positive value of a built-in initiator. I updated patch from feedback 3 weeks ago and Stefan kindly reviewed it. I'm

Re: [Qemu-devel] [PATCH] This patch adds a new block driver : iSCSI

2011-10-13 Thread Daniel P. Berrange
On Thu, Oct 13, 2011 at 08:46:54PM +1100, ronnie sahlberg wrote: Previous version of the patch received very positive feedback and several expressed seeing positive value of a built-in initiator. I updated patch from feedback 3 weeks ago and Stefan kindly reviewed it. Is there some other

Re: [Qemu-devel] [PATCH] usb-hid: activate usb tablet / mouse after migration.

2011-10-13 Thread Gerd Hoffmann
On 10/13/11 04:09, TeLeMan wrote: On Wed, Oct 12, 2011 at 19:30, Gerd Hoffmannkra...@redhat.com wrote: qemu uses the ps/2 mouse by default. The usb tablet (or mouse) is activated as soon as qemu sees some guest activity on the device, i.e. polling for HID events. That used to work fine for

Re: [Qemu-devel] [PATCH] This patch adds a new block driver : iSCSI

2011-10-13 Thread Kevin Wolf
Am 13.10.2011 11:46, schrieb ronnie sahlberg: Previous version of the patch received very positive feedback and several expressed seeing positive value of a built-in initiator. I updated patch from feedback 3 weeks ago and Stefan kindly reviewed it. Is there some other problem with the

Re: [Qemu-devel] [BUG] USB assertion triggers in usb_packet_complete()

2011-10-13 Thread Gerd Hoffmann
Hi, Hi Thomas, I hit the same bug recently and Gerd has posted a patch which you can test: http://patchwork.ozlabs.org/patch/118726/ Thanks for the hint, Stefan, you're right, that seems to be the same bug. Your patch is working fine in my scenario, too. However, Gerd's patch is not

Re: [Qemu-devel] [PATCH] This patch adds a new block driver : iSCSI

2011-10-13 Thread Daniel P. Berrange
On Thu, Oct 13, 2011 at 11:01:49AM +0100, Daniel P. Berrange wrote: On Thu, Oct 13, 2011 at 08:46:54PM +1100, ronnie sahlberg wrote: Previous version of the patch received very positive feedback and several expressed seeing positive value of a built-in initiator. I updated patch from

Re: [Qemu-devel] [PATCH] linux-user: Fix broken -version option

2011-10-13 Thread Peter Maydell
Ping? -- PMM On 29 September 2011 15:48, Peter Maydell peter.mayd...@linaro.org wrote: Fix the -version option, which was accidentally broken in commit fc9c541:  * exit after printing version information rather than proceeding   blithely onward (and likely printing the full usage message)  

[Qemu-devel] [PATCH 22/35] scsi-disk: fix retrying a flush

2011-10-13 Thread Paolo Bonzini
Flush does not go anymore through scsi_disk_emulate_command. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- 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 3f54891..860a3bf 100644 --- a/hw/scsi-disk.c +++

[Qemu-devel] [PATCH 25/35] scsi-generic: check ioctl statuses when SG_IO succeeds

2011-10-13 Thread Paolo Bonzini
A succeeding ioctl does not imply that the SCSI command succeeded. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/scsi-generic.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c index da104a6..9043eea 100644 ---

[Qemu-devel] [PATCH 24/35] scsi-generic: remove scsi_req_fixup

2011-10-13 Thread Paolo Bonzini
This is not needed anymore, since asynchronous ioctls were introduced by commit 221f715 (new scsi-generic abstraction, use SG_IO, 2009-03-28). Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/scsi-generic.c | 15 --- 1 files changed, 0 insertions(+), 15 deletions(-) diff

[Qemu-devel] [PATCH 33/35] scsi: export scsi_generic_reqops

2011-10-13 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- 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 abe92fa..c4f928a 100644 --- a/hw/scsi-generic.c +++ b/hw/scsi-generic.c @@

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

2011-10-13 Thread 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 shall terminate the

[Qemu-devel] [PATCH 35/35] scsi-disk: add scsi-block for device passthrough

2011-10-13 Thread Paolo Bonzini
scsi-block is a new device that supports device passthrough of Linux block devices (i.e. /dev/sda, not /dev/sg0). It uses SG_IO for commands other than I/O commands, and regular AIO read/writes for I/O commands. Besides being simpler to configure (no mapping required to scsi-generic device

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

2011-10-13 Thread 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 pbonz...@redhat.com --- hw/scsi-disk.c | 57 --- 1 files changed, 53

[Qemu-devel] [PATCH 1/9] usb-storage: fix NULL pointer dereference.

2011-10-13 Thread Gerd Hoffmann
When a usb packet is canceled we need to check whenever we actually have a scsi request in flight before we try to cancel it. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb-msd.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/hw/usb-msd.c b/hw/usb-msd.c

[Qemu-devel] [PATCH 8/9] usb-hid: activate usb tablet / mouse after migration.

2011-10-13 Thread Gerd Hoffmann
qemu uses the ps/2 mouse by default. The usb tablet (or mouse) is activated as soon as qemu sees some guest activity on the device, i.e. polling for HID events. That used to work fine for both fresh boot and migration. Remote wakeup support changed the picture though: There will be no polling

[Qemu-devel] [PATCH 9/9] usb-hub: don't trigger assert on packet completion.

2011-10-13 Thread Gerd Hoffmann
Calling usb_packet_complete() recursively when passing up the completion event up the chain for devices connected via usb hub will trigger an assert. So don't do that, make the usb hub emulation call the upstream completion callback directly instead. Based on a patch from Stefan Hajnoczi

[Qemu-devel] [PATCH 4/9] usb-host: factor out code

2011-10-13 Thread Gerd Hoffmann
Move code to claim usb ports and to disconnect usb interfaces into usb_host_claim_port and usb_host_disconnect_ifaces functions. No functional change. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- usb-linux.c | 140 -- 1 files

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

2011-10-13 Thread 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+rw-mediainfo on the

Re: [Qemu-devel] [PATCH 9/9] usb-hub: don't trigger assert on packet completion.

2011-10-13 Thread Gerd Hoffmann
Hi, -usb_packet_complete(s-dev, packet); +s-dev.port-ops-complete(s-dev.port, packet); Oops, that doesn't compile. Got sidetracked wile waiting for the test build finish, then forgot to check the results :( Updated patch attached. Branch for pulling updated inplace. cheers,

[Qemu-devel] [PATCH 20/35] scsi-disk: do not complete requests twice

2011-10-13 Thread Paolo Bonzini
When scsi_handle_rw_error reports a CHECK CONDITION code, the owner should not call scsi_req_complete. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/scsi-disk.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index

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

2011-10-13 Thread Paolo Bonzini
A small refactoring of the MODE SENSE implementation in scsi-disk. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/scsi-disk.c | 25 + 1 files changed, 13 insertions(+), 12 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 95a6b77..a4aadf2 100644

[Qemu-devel] [PULL] usb patch queue

2011-10-13 Thread Gerd Hoffmann
Hi, Here comes the usb patch queue with a bunch of bug fixes. Check the individual patches for details. please pull, Gerd The following changes since commit ebffe2afceb1a17b5d134b5debf553955fe5ea1a: Merge remote-tracking branch 'qmp/queue/qmp' into staging (2011-10-10 08:21:46 -0500)

Re: [Qemu-devel] Buggy SDL Zoom

2011-10-13 Thread Stefano Stabellini
On Wed, 12 Oct 2011, Stefan Weil wrote: Hi, the SDL zoom feature which is implemented in sdl_zoom_template.h (and the SDL_rotozoom version which it is based on) accesses memory beyond the allocated limits. This can be easily reproduced using Valgrind and some Linux desktop which resizes

[Qemu-devel] [PATCH 05/35] scsi: notify the device when unit attention is reported

2011-10-13 Thread Paolo Bonzini
Reporting media change events via unit attention sense codes requires a small state machine: first report NO MEDIUM, then report MEDIUM MAY HAVE CHANGED. Unfortunately there is no good hooking point for the device to notice that its pending unit attention condition has been reported. This patch

[Qemu-devel] [PATCH 34/35] scsi: pass cdb to alloc_req

2011-10-13 Thread Paolo Bonzini
This will let scsi-block choose between passthrough and emulation. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/scsi-bus.c |2 +- hw/scsi-disk.c|4 ++-- hw/scsi-generic.c |2 +- hw/scsi.h |2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff

Re: [Qemu-devel] [PATCH] pseries: Update SLOF firmware image

2011-10-13 Thread Alexander Graf
On 10/13/2011 07:10 AM, David Gibson wrote: This patch is a general update to the SLOF firmware image used on the pseries machine. This doesn't contain updates for specific features but contains a number of bugfixes and enhancements in the main SLOF tree from Thomas Huth. Signed-off-by: David

[Qemu-devel] [PATCH 15/35] scsi: remove devs array from SCSIBus

2011-10-13 Thread 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. scsi_device_find may return another LUN on the same target if none is found that matches exactly. Signed-off-by: Paolo Bonzini

[Qemu-devel] [PATCH 28/35] scsi-disk: do not duplicate BlockDriverState member

2011-10-13 Thread Paolo Bonzini
Same as for scsi-generic, avoid duplication even if it causes longer lines. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/scsi-disk.c | 94 +++ 1 files changed, 46 insertions(+), 48 deletions(-) diff --git a/hw/scsi-disk.c

[Qemu-devel] [PATCH 21/35] scsi-disk: bump SCSIRequest reference count until aio completion runs

2011-10-13 Thread Paolo Bonzini
In some cases a request may be canceled before the completion callback runs. Keep a reference to the request between starting an AIO operation, and let scsi_*_complete remove it. Since scsi_handle_rw_error returns whether something else has to be done for the request by the caller, it makes

Re: [Qemu-devel] [0/4] ppc: Implement -host CPU

2011-10-13 Thread Alexander Graf
On 10/13/2011 10:40 AM, David Gibson wrote: This series of patches implements a -cpu host option for ppc, analagous to the version that already exists for x86. For now, only the basic framework is implement. In later patches, we will need to improve the code to override those parts of the cpu

[Qemu-devel] [PATCH 13/35] scsi: move tcq/ndev to SCSIBusOps (now SCSIBusInfo)

2011-10-13 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/esp.c |7 +-- hw/lsi53c895a.c |9 ++--- hw/scsi-bus.c| 27 --- hw/scsi-disk.c |2 +- hw/scsi.h| 11 +-- hw/spapr_vscsi.c |8 +--- hw/usb-msd.c |7

Re: [Qemu-devel] [PATCH 07/11] audio/spice: add support for volume control

2011-10-13 Thread Marc-André Lureau
Hi On Tue, Oct 11, 2011 at 10:49 AM, Gerd Hoffmann kra...@redhat.com wrote: +#else +#warning Spice playback volume unsupported +#endif +#else +#warning Spice record volume unsupported +#endif One warning is enougth.  But given that qemu builds with -Werror by default printing a warning

[Qemu-devel] [PATCH v2 4/5] block: mark blocks dirty on coroutine write completion

2011-10-13 Thread Stefan Hajnoczi
The aio write operation marks blocks dirty when the write operation completes. The coroutine write operation marks blocks dirty before issuing the write operation. It seems safest to mark the block dirty when the operation completes so that anything tracking dirty blocks will not act before the

[Qemu-devel] [PATCH v2 0/5] block: do request processing in a coroutine

2011-10-13 Thread Stefan Hajnoczi
Note: this version applies against Kevin's block tree Block layer features like dirty block tracing, I/O throttling, and live block copy are forced to duplicate code due to the three different interfaces: synchronous, asynchronous, and coroutines. Since there are bdrv_read(), bdrv_aio_readv(),

[Qemu-devel] [PATCH v2 5/5] block: switch bdrv_aio_writev() to coroutines

2011-10-13 Thread Stefan Hajnoczi
More sync, aio, and coroutine unification. Make bdrv_aio_writev() go through coroutine request processing. Remove the dirty block callback mechanism which was needed only for aio processing and can be done more naturally in coroutine context. Signed-off-by: Stefan Hajnoczi

[Qemu-devel] [PATCH v2 3/5] block: switch bdrv_aio_readv() to coroutines

2011-10-13 Thread Stefan Hajnoczi
More sync, aio, and coroutine unification. Make bdrv_aio_readv() go through coroutine request processing. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- block.c | 48 +++- 1 files changed, 35 insertions(+), 13 deletions(-) diff

[Qemu-devel] [PATCH v2 1/5] block: directly invoke .bdrv_* from emulation functions

2011-10-13 Thread Stefan Hajnoczi
The emulation functions which supply default BlockDriver .bdrv_*() functions given another implemented .bdrv_*() function should not use public bdrv_*() interfaces. This patch ensures they invoke .bdrv_*() directly to avoid adding an extra layer of coroutine request processing and possibly

[Qemu-devel] [PATCH v2 2/5] block: switch bdrv_read()/bdrv_write() to coroutines

2011-10-13 Thread Stefan Hajnoczi
The bdrv_read()/bdrv_write() functions call .bdrv_read()/.bdrv_write(). They should go through bdrv_co_do_readv() and bdrv_co_do_writev() instead in order to unify request processing code across sync, aio, and coroutine interfaces. This is also an important step towards removing BlockDriverState

[Qemu-devel] [PATCH 6/9] hw/usb-ohci: Fix OHCI_TD_T1 bit position definition

2011-10-13 Thread Gerd Hoffmann
From: Peter Maydell peter.mayd...@linaro.org The OHCI Transfer Descriptor T (DataToggle) bits are 24 and 25; fix an error which accidentally overlaid them both on the same bit. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb-ohci.c

[Qemu-devel] [PATCH 31/35] scsi: move max_lba to SCSIDevice

2011-10-13 Thread Paolo Bonzini
The field was only in scsi-disk until now. Moving it up to SCSIDevice will make it easier to reuse the scsi-generic reqops elsewhere. In the future, range checking of LBA arguments might also be pushed up to SCSIDevice. At the same time, make scsi-generic get max_lba from the guest's READ

[Qemu-devel] [PATCH 04/35] atapi: fill in AUDIO_CTL page correctly

2011-10-13 Thread Paolo Bonzini
The page is not anymore in MMC, but at least keep the values sane. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/ide/atapi.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c index 347c38d..10f161f 100644 --- a/hw/ide/atapi.c +++

[Qemu-devel] [PATCH 23/35] scsi-generic: drop SCSIGenericState

2011-10-13 Thread 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 pbonz...@redhat.com --- hw/scsi-generic.c | 85 +++-- 1 files changed, 37 insertions(+), 48 deletions(-)

[Qemu-devel] [PATCH 7/9] hw/usb-ohci: Honour endpoint maximum packet size

2011-10-13 Thread Gerd Hoffmann
From: Peter Maydell peter.mayd...@linaro.org Honour the maximum packet size for endpoints; this applies when sending non-isochronous data and means we transfer only as much as the endpoint allows, leaving the transfer descriptor on the list for another go next time around. This allows usb-net to

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

2011-10-13 Thread 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 Bonzini

[Qemu-devel] [PATCH 29/35] scsi-disk: remove cluster_size

2011-10-13 Thread Paolo Bonzini
This field is redundant, and its presence makes it more complicated to share reqops between the upcoming scsi-block and scsi-generic. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/scsi-disk.c | 45 ++--- 1 files changed, 22 insertions(+), 23

[Qemu-devel] [PATCH 16/35] scsi: implement REPORT LUNS for arbitrary LUNs

2011-10-13 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/scsi-bus.c | 49 +++-- 1 files changed, 39 insertions(+), 10 deletions(-) diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c index 7104e98..a2d57a7 100644 --- a/hw/scsi-bus.c +++ b/hw/scsi-bus.c @@

[Qemu-devel] [PATCH 02/11] audio: don't apply volume effect if backend has VOICE_VOLUME_CAP

2011-10-13 Thread Marc-André Lureau
--- audio/audio.c |9 +++-- audio/audio_int.h |5 + audio/audio_template.h |2 ++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/audio/audio.c b/audio/audio.c index c759c1f..f830bb2 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -954,7 +954,9

[Qemu-devel] [PULL 00/35] SCSI uber-patch

2011-10-13 Thread Paolo Bonzini
Kevin, the following changes since commit 77d5aa8ade3aac7ee3cec0ab05fb538055e01a48: block: split out bdrv_co_do_readv() and bdrv_co_do_writev() (2011-10-12 14:42:11 +0200) are available in the git repository at: git://github.com/bonzini/qemu.git scsi-for-kevin Patches 1-12 have been sent

[Qemu-devel] [PATCH 04/11] hw/ac97: remove USE_MIXER code

2011-10-13 Thread Marc-André Lureau
It doesn't compile. The interesting bits for volume control are going to be rewritten. --- hw/ac97.c | 121 - 1 files changed, 0 insertions(+), 121 deletions(-) diff --git a/hw/ac97.c b/hw/ac97.c index 541d9a4..4d4a658 100644 ---

[Qemu-devel] [PATCH 06/11] hw/ac97: new support for volume control

2011-10-13 Thread Marc-André Lureau
--- hw/ac97.c | 79 + 1 files changed, 79 insertions(+), 0 deletions(-) diff --git a/hw/ac97.c b/hw/ac97.c index ba94835..4a7c4ed 100644 --- a/hw/ac97.c +++ b/hw/ac97.c @@ -431,6 +431,63 @@ static void reset_voices (AC97LinkState *s,

[Qemu-devel] [PATCH 10/11] audio: allow controlling volume with PulseAudio backend

2011-10-13 Thread Marc-André Lureau
--- audio/paaudio.c | 96 --- 1 files changed, 91 insertions(+), 5 deletions(-) diff --git a/audio/paaudio.c b/audio/paaudio.c index beed434..7ddc16d 100644 --- a/audio/paaudio.c +++ b/audio/paaudio.c @@ -664,15 +664,100 @@ static void

[Qemu-devel] [PATCH 05/11] hw/ac97: the volume mask was not always 0x1f

2011-10-13 Thread Marc-André Lureau
It's a case by case, which will be added appropriately. --- hw/ac97.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/hw/ac97.c b/hw/ac97.c index 4d4a658..ba94835 100644 --- a/hw/ac97.c +++ b/hw/ac97.c @@ -114,7 +114,6 @@ enum { #define EACS_VRA 1 #define EACS_VRM 8

[Qemu-devel] [PATCH 07/11] audio/spice: add support for volume control

2011-10-13 Thread Marc-André Lureau
Changes since v1: - remove #warning since qemu has -Werror by default - do not claim VOICE_VOLUME_CAP if spice doesn't support it --- audio/spiceaudio.c | 41 + 1 files changed, 41 insertions(+), 0 deletions(-) diff --git a/audio/spiceaudio.c

[Qemu-devel] [PATCH 18/35] scsi: add channel to addressing

2011-10-13 Thread 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 pbonz...@redhat.com --- hw/esp.c |4 ++-- hw/lsi53c895a.c |4 ++-- hw/scsi-bus.c| 24

[Qemu-devel] [PATCH 2/9] usb-hub: need to check dev-attached

2011-10-13 Thread Gerd Hoffmann
commit 891fb2cd4592b6fe76106a69e0ca40efbf82726a did that for all host controllers, the usb hub was left out by accident. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb-hub.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/usb-hub.c b/hw/usb-hub.c index

[Qemu-devel] [PATCH 01/35] scsi: pass correct sense code for ENOMEDIUM

2011-10-13 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- 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 @@ static int

[Qemu-devel] [PATCH 01/11] audio: add VOICE_VOLUME ctl

2011-10-13 Thread Marc-André Lureau
--- audio/audio.c | 12 audio/audio_int.h |1 + 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/audio/audio.c b/audio/audio.c index 5649075..c759c1f 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -2050,17 +2050,29 @@ void AUD_del_capture (CaptureVoiceOut

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

2011-10-13 Thread 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 pbonz...@redhat.com --- hw/scsi-defs.h |3 ++

[Qemu-devel] [PATCH 3/9] usb: fix port reset

2011-10-13 Thread Gerd Hoffmann
commit 891fb2cd4592b6fe76106a69e0ca40efbf82726a removed the implicit detach before (re-)attaching in usb_attach(). Some usb host controllers used that behavior though to do a port reset by a detach+attach sequence. This patch establishes old behavior by adding a new usb_reset() function for port

[Qemu-devel] [PATCH 17/35] scsi: allow arbitrary LUNs

2011-10-13 Thread Paolo Bonzini
This only requires changes in two places: in SCSIBus, we need to look for a free LUN if somebody creates a device with a pre-existing scsi-id but the default LUN (-1, meaning search for a free spot); in vSCSI, we need to actually parse the LUN according to the SCSI spec. Signed-off-by: Paolo

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

2011-10-13 Thread Paolo Bonzini
Building on the previous patch, this one adds a media change callback to scsi-disk. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/scsi-bus.c |5 + hw/scsi-disk.c | 29 - hw/scsi.h |2 ++ 3 files changed, 35 insertions(+), 1 deletions(-)

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

2011-10-13 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- 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 837747f..1786c37 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@

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

2011-10-13 Thread 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 retrieve it from there. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/scsi-generic.c | 50 +++--- 1 files

[Qemu-devel] [PATCH 5/9] usb-host: handle USBDEVFS_SETCONFIGURATION returning EBUSY

2011-10-13 Thread Gerd Hoffmann
In case the host uses the usb device usbfs will refuse to set the configuration due to the device being busy. Handle this case by disconnection the interfaces, then trying again. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- usb-linux.c | 36 +++- 1 files

[Qemu-devel] [PATCH 26/35] scsi-generic: look at host status

2011-10-13 Thread 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 pbonz...@redhat.com --- hw/scsi-generic.c | 20 1 files changed, 16 insertions(+), 4

[Qemu-devel] [PATCH 11/11] audio: make mixemu mandatory

2011-10-13 Thread Marc-André Lureau
- we need the QEMU_HDA_AMP_CAPS for Spice to handle the volume of HDA - without MIXEMU, volume control on the guest just feels wrong because it has no effect (when it is not applied by the guest) - after all, it's the role of qemu to emulate devices, and volume effect shouldn't be excluded

[Qemu-devel] [PATCH 09/11] configure: pa_simple is not needed anymore

2011-10-13 Thread Marc-André Lureau
--- configure |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index c3044c7..4278eb1 100755 --- a/configure +++ b/configure @@ -1682,9 +1682,9 @@ for drv in $audio_drv_list; do ;; pa) -audio_drv_probe $drv pulse/simple.h

[Qemu-devel] [PATCH 32/35] scsi: make reqops static const

2011-10-13 Thread Paolo Bonzini
Also delete a stale occurrence of SCSIReqOps inside SCSIDeviceInfo. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/scsi-bus.c | 10 +- hw/scsi-disk.c|2 +- hw/scsi-generic.c |2 +- hw/scsi.h |7 +++ 4 files changed, 10 insertions(+), 11

[Qemu-devel] [PATCH 08/11] audio: use full PulseAudio API, largely adapted from pa_simple*

2011-10-13 Thread Marc-André Lureau
Unfortunately, pa_simple is a very limited API which doesn't let us retrieve the associated pa_stream. It is needed to control the volume of the stream. --- audio/paaudio.c | 356 +-- 1 files changed, 318 insertions(+), 38 deletions(-) diff

[Qemu-devel] [PATCH 11/35] scsi-disk: support READ DVD STRUCTURE

2011-10-13 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/scsi-disk.c | 101 +++- 1 files changed, 100 insertions(+), 1 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 1786c37..14db6a0 100644 --- a/hw/scsi-disk.c +++

[Qemu-devel] [PATCH 03/11] audio: use a nominal volume of 1^32-1

2011-10-13 Thread Marc-André Lureau
So we can easily fit it into smaller int. We can just 16 to fit it into a 16bits volume range for example. --- audio/audio.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/audio.c b/audio/audio.c index f830bb2..33b6c23 100644 --- a/audio/audio.c +++

[Qemu-devel] [PATCH 14/35] qdev: switch children device list to QTAILQ

2011-10-13 Thread 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 pbonz...@redhat.com ---

Re: [Qemu-devel] 2 MiB alignment in qemu_vmalloc()

2011-10-13 Thread Paolo Bonzini
On 10/13/2011 09:56 AM, Gerd Hoffmann wrote: Is there some way for apps to figure they are running in valgrind? Then we could choose a different alignment automagically. Yes, valgrind.h (on RH distros that's in package valgrind-devel; there is a valgrind.pc file to add the correct include

[Qemu-devel] [PATCH 02/35] atapi/scsi: unify definitions for MMC

2011-10-13 Thread 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 unused, so pick the latter.

[Qemu-devel] [PATCH 30/35] scsi-disk: small clean up to INQUIRY

2011-10-13 Thread Paolo Bonzini
Set s-removable, s-qdev.blocksize and s-qdev.type in the callers of scsi_initfn. With this in place, s-qdev.type is allowed, and we can just reuse it as the first byte in VPD data (just like we do in standard INQUIRY data). Also set s-removable is set consistently and we can use it.

[Qemu-devel] [PATCH] linux-aio: Allow reads beyond the end of growable images

2011-10-13 Thread Kevin Wolf
This is the linux-aio version of commits 22afa7b5 (raw-posix, synchronous) and ba1d1afd (posix-aio-compat). Reads now produce zeros after the end of file instead of failing or resulting in short reads, making linux-aio compatible with the behaviour of synchronous raw-posix requests and

Re: [Qemu-devel] [PATCH v2 0/5] block: do request processing in a coroutine

2011-10-13 Thread Kevin Wolf
Am 13.10.2011 14:08, schrieb Stefan Hajnoczi: Note: this version applies against Kevin's block tree Block layer features like dirty block tracing, I/O throttling, and live block copy are forced to duplicate code due to the three different interfaces: synchronous, asynchronous, and

Re: [Qemu-devel] [PATCH] configure: Detect when glibc implements makecontext() to always fail

2011-10-13 Thread Andreas Färber
Am 12.10.2011 18:21, schrieb Peter Maydell: Improve the configure test for presence of ucontext functions by making linker warnings fatal; this allows us to detect when we are linked with a glibc which implements makecontext() to always return ENOSYS. Signed-off-by: Peter

Re: [Qemu-devel] [RFC PATCH v2] Specification for qcow2 version 3

2011-10-13 Thread Stefan Hajnoczi
On Wed, Oct 12, 2011 at 3:58 PM, Kevin Wolf kw...@redhat.com wrote: Am 12.10.2011 16:37, schrieb Stefan Hajnoczi: On Wed, Oct 12, 2011 at 2:31 PM, Kevin Wolf kw...@redhat.com wrote: Am 12.10.2011 14:51, schrieb Stefan Hajnoczi: Also a bit in l2 offset to say there is no l2 table cause all

Re: [Qemu-devel] [PATCH 1/2] hw/9pfs: Add new virtfs option cache=writethrough to skip host page cache

2011-10-13 Thread Stefan Hajnoczi
Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com

Re: [Qemu-devel] balloon driver on winxp guest start failed

2011-10-13 Thread Stefan Hajnoczi
On Thu, Oct 13, 2011 at 5:00 AM, hkran hk...@vnet.linux.ibm.com wrote: On 10/12/2011 07:09 PM, hkran wrote: I used balloon driver for windows  virtio-win-0.1-15.iso (from http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/) following the install guard , I installed the balloon

Re: [Qemu-devel] [PATCH] linux-aio: Allow reads beyond the end of growable images

2011-10-13 Thread Stefan Hajnoczi
On Thu, Oct 13, 2011 at 2:49 PM, Kevin Wolf kw...@redhat.com wrote: This is the linux-aio version of commits 22afa7b5 (raw-posix, synchronous) and ba1d1afd (posix-aio-compat). Reads now produce zeros after the end of file instead of failing or resulting in short reads, making linux-aio

Re: [Qemu-devel] [PATCH v3 00/15] NBD improvements

2011-10-13 Thread Paolo Bonzini
On 10/05/2011 09:17 AM, Paolo Bonzini wrote: v2-v3: fix comments from sheepdog maintainer v1-v2: moved coroutine send/recv functions to osdep.c, added support for multiple in-flight requests, added support for co_discard and aio_discard. FWIW, I placed a

[Qemu-devel] [PATCH] KVM: Use -cpu host as default on x86

2011-10-13 Thread Alexander Graf
When running QEMU without -cpu parameter, the user usually wants a sane default. So far, we're using the qemu64/qemu32 CPU type, which basically means the maximum TCG can emulate. That's a really good default when using TCG, but when running with KVM we much rather want a default saying the

[Qemu-devel] [Bug 873460] [NEW] Likewise no sound

2011-10-13 Thread Marcus Paiva
Public bug reported: Hi, using fresh Ubuntu 11.10 with Likewise 6 in a MS Domain. Domain users log with no sound. Local users are OK. Thx ** Affects: qemu Importance: Undecided Status: New ** Tags: 11.10 likewise ubuntu -- You received this bug notification because you are a

[Qemu-devel] [Bug 873460] Re: Likewise no sound

2011-10-13 Thread Marcus Paiva
Sry, posted in the wrong chanel. Can I move it to https://bugs.launchpad.net/ubuntu/+source/likewise-open ? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/873460 Title: Likewise no sound Status

  1   2   >