Re: [Qemu-devel] [PATCH 1/3] usb-hub: wakeup on attach

2011-11-03 Thread hkran
On 11/02/2011 08:56 PM, Gerd Hoffmann wrote: Hi, static void usb_hub_detach(USBPort *port1) pulled, In what cases, the usb hub will be suspended? and how to tell it happened? thanks. The guest enables the remote-wakeup feature. 'lspci -v' (within the guest) shows it. cheers, Gerd

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

2011-11-03 Thread Markus Armbruster
Anthony Liguori anth...@codemonkey.ws writes: On 11/02/2011 03:24 PM, Blue Swirl wrote: On Wed, Nov 2, 2011 at 19:35, Anthony Liguorianth...@codemonkey.ws wrote: For the record, I'm opposed to ever having a stable plugin API. We aren't a closed source product. If people want to have to

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

2011-11-03 Thread Stefan Hajnoczi
On Wed, Nov 2, 2011 at 6:51 PM, Anthony Liguori anth...@codemonkey.ws wrote: @@ -77,6 +78,20 @@ static DeviceInfo *qdev_find_info(BusInfo *bus_info, const ch             continue;         return info;     } + +    /* try to load an appropriately named module */ +    { +        char *path

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

2011-11-03 Thread Stefan Hajnoczi
On Wed, Nov 2, 2011 at 5:39 PM, Fabien Chouteau chout...@adacore.com wrote: On 29/10/2011 15:52, Alexander Graf wrote: The RTEMS guys use QEMU to do coverage testing of their kernel code. They run their test-cases and see if all of their code and branches have been hit. Adacore seems to have a

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

2011-11-03 Thread Markus Armbruster
Alexander Graf ag...@suse.de writes: Anthony Liguori wrote: On 11/02/2011 01:17 PM, Jan Kiszka wrote: On 2011-11-02 18:44, Fabien Chouteau wrote: On 31/10/2011 14:12, Peter Maydell wrote: On 29 October 2011 14:52, Alexander Grafag...@suse.de wrote: A lot of people seem to also have code

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

2011-11-03 Thread Markus Armbruster
Anthony Liguori anth...@codemonkey.ws writes: [...] For the record, I'm opposed to ever having a stable plugin API. We aren't a closed source product. If people want to have to keep up with our changing internal interfaces, they can get their code merged upstream. Seconded.

Re: [Qemu-devel] Do you have a use for a tester of virtio-scsi with CD drives ?

2011-11-03 Thread Paolo Bonzini
On 11/02/2011 10:22 PM, Thomas Schmitt wrote: Hi, i wrote: So how is this altered to 0x12 in the further course of processing ? Paolo Bonzini wrote: Because you're using an *IDE* (ATAPI) CD-ROM, not SCSI. See hw/ide/atapi.c. You convinced me. But this does not explain yet the difference

Re: [Qemu-devel] [PATCH v4 1/4] Add basic version of bridge helper

2011-11-03 Thread Stefan Hajnoczi
On Wed, Nov 2, 2011 at 3:12 PM, Corey Bryant cor...@linux.vnet.ibm.com wrote: On 11/02/2011 06:58 AM, Stefan Hajnoczi wrote: On Tue, Nov 1, 2011 at 5:13 PM, Corey Bryantcor...@linux.vnet.ibm.com  wrote: +static bool has_vnet_hdr(int fd) +{ +    unsigned int features = 0; +    struct ifreq

Re: [Qemu-devel] [RFC 1/6] block: add request tracking

2011-11-03 Thread Stefan Hajnoczi
On Wed, Nov 2, 2011 at 4:30 PM, Kevin Wolf kw...@redhat.com wrote: Am 17.10.2011 17:47, schrieb Stefan Hajnoczi: The block layer does not know about pending requests.  This information is necessary for copy-on-read since overlapping requests must be serialized to prevent races that corrupt the

Re: [Qemu-devel] [PATCH v11 2/4] block: add I/O throttling algorithm

2011-11-03 Thread Kevin Wolf
Am 03.11.2011 04:18, schrieb Zhi Yong Wu: On Wed, Nov 2, 2011 at 7:51 PM, Kevin Wolf kw...@redhat.com wrote: Am 02.11.2011 07:01, schrieb Zhi Yong Wu: Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- block.c |

Re: [Qemu-devel] [RFC 2/6] block: add bdrv_set_copy_on_read()

2011-11-03 Thread Stefan Hajnoczi
On Wed, Nov 2, 2011 at 4:36 PM, Kevin Wolf kw...@redhat.com wrote: Am 17.10.2011 17:47, schrieb Stefan Hajnoczi: The bdrv_set_copy_on_read() function can be used to programmatically enable or disable copy-on-read for a block device.  Later patches add the actual copy-on-read logic.

Re: [Qemu-devel] [PATCH v11 2/4] block: add I/O throttling algorithm

2011-11-03 Thread Zhi Yong Wu
On Thu, Nov 3, 2011 at 4:03 PM, Kevin Wolf kw...@redhat.com wrote: Am 03.11.2011 04:18, schrieb Zhi Yong Wu: On Wed, Nov 2, 2011 at 7:51 PM, Kevin Wolf kw...@redhat.com wrote: Am 02.11.2011 07:01, schrieb Zhi Yong Wu: Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off-by: Stefan

Re: [Qemu-devel] CDROM: why can it not be changed to PIO mode?

2011-11-03 Thread Stefan Hajnoczi
On Wed, Nov 2, 2011 at 8:35 AM, Zhi Yong Wu zwu.ker...@gmail.com wrote: HI, guys, I managed to change one cdrom on guest from DMA mode to PIO mode, but failed. Did anyone also met this same issue before? If you have some experience to solve this, Can you share with me? Since no one knows the

Re: [Qemu-devel] CDROM: why can it not be changed to PIO mode?

2011-11-03 Thread Zhi Yong Wu
OK. On Thu, Nov 3, 2011 at 4:04 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Wed, Nov 2, 2011 at 8:35 AM, Zhi Yong Wu zwu.ker...@gmail.com wrote: HI, guys, I managed to change one cdrom on guest from DMA mode to PIO mode, but failed. Did anyone also met this same issue before? If you

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

2011-11-03 Thread Andreas Färber
Am 03.11.2011 08:46, schrieb Markus Armbruster: Anthony Liguori anth...@codemonkey.ws writes: For the record, I'm opposed to ever having a stable plugin API. We aren't a closed source product. If people [don't] want to have to keep up with our changing internal interfaces, they can get

Re: [Qemu-devel] [PATCH 1/3] usb-hub: wakeup on attach

2011-11-03 Thread Gerd Hoffmann
On 11/03/11 07:01, hkran wrote: On 11/02/2011 08:56 PM, Gerd Hoffmann wrote: Hi, static void usb_hub_detach(USBPort *port1) pulled, In what cases, the usb hub will be suspended? and how to tell it happened? thanks. The guest enables the remote-wakeup feature. 'lspci -v' (within the

[Qemu-devel] [PATCH v12 1/5] block: add the blockio limits command line support

2011-11-03 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- block.c | 39 +++ block.h |4 block_int.h | 29 + blockdev.c | 44

[Qemu-devel] [PATCH v12 0/5] The intro to QEMU block I/O throttling

2011-11-03 Thread Zhi Yong Wu
The main goal of the patch is to effectively cap the disk I/O speed or counts of one single VM.It is only one draft, so it unavoidably has some drawbacks, if you catch them, please let me know. The patch will mainly introduce one block I/O throttling algorithm, one timer and one block queue

[Qemu-devel] [PATCH v12 2/5] CoQueue: introduce qemu_co_queue_wait_insert_head

2011-11-03 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- qemu-coroutine-lock.c |8 qemu-coroutine.h |6 ++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/qemu-coroutine-lock.c

[Qemu-devel] [PATCH v12 3/5] block: add I/O throttling algorithm

2011-11-03 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- block.c | 220 +++ block.h |1 + block_int.h |1 + 3 files changed, 222 insertions(+), 0 deletions(-) diff

[Qemu-devel] [PATCH v12 4/5] hmp/qmp: add block_set_io_throttle

2011-11-03 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- block.c | 15 + blockdev.c | 59 ++ blockdev.h |2 + hmp-commands.hx | 15

[Qemu-devel] [PATCH v12 5/5] block: perf testing report based on block I/O throttling

2011-11-03 Thread Zhi Yong Wu
The file 1mbps.dat is based on bps=1024*1024 I/O throttling; and the file 10mbps.dat is based on bps=10*1024*1024 I/O throttling. Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- 10mbps.dat | 310 ++ 1mbps.dat | 339

Re: [Qemu-devel] Do you have a use for a tester of virtio-scsi with CD drives ?

2011-11-03 Thread Thomas Schmitt
Hi, first i want to thank Paolo for his patience. So if you specified -drive if=scsi *and* -cdrom, you'd get two non-empty drives. Indeed. With -drive file=/dev/sr0,if=scsi,media=cdrom -cdrom /dvdbuffer/pseudo_drive i get two drives with media: 0 -dev '/dev/sr0' rwrw-- : 'QEMU'

Re: [Qemu-devel] [PATCH 1/3] usb-hub: wakeup on attach

2011-11-03 Thread hkran
On 11/03/2011 04:41 PM, Gerd Hoffmann wrote: On 11/03/11 07:01, hkran wrote: On 11/02/2011 08:56 PM, Gerd Hoffmann wrote: Hi, static void usb_hub_detach(USBPort *port1) pulled, In what cases, the usb hub will be suspended? and how to tell it happened? thanks. The guest enables the

[Qemu-devel] [PATCH V3] Introduce a new bus ICC to connect APIC

2011-11-03 Thread pingfank
From: Liu Ping Fan pingf...@linux.vnet.ibm.com Introduce a new structure CPUS as the controller of ICC (INTERRUPT CONTROLLER COMMUNICATIONS), and new bus ICC to hold APIC,instead of sysbus. So we can support APIC hot-plug feature. Signed-off-by: liu ping fan pingf...@linux.vnet.ibm.com ---

Re: [Qemu-devel] [PATCH 2/5] linux-user: add open() hijack infrastructure

2011-11-03 Thread David Gilbert
On 2 November 2011 19:23, Alexander Graf ag...@suse.de wrote: There are a number of files in /proc that expose host information to the guest program. This patch adds infrastructure to override the open() syscall for guest programs to enable us to on the fly generate guest sensible files.

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

2011-11-03 Thread Fabien Chouteau
On 03/11/2011 08:44, Stefan Hajnoczi wrote: On Wed, Nov 2, 2011 at 5:39 PM, Fabien Chouteau chout...@adacore.com wrote: On 29/10/2011 15:52, Alexander Graf wrote: The RTEMS guys use QEMU to do coverage testing of their kernel code. They run their test-cases and see if all of their code and

Re: [Qemu-devel] Do you have a use for a tester of virtio-scsi with CD drives ?

2011-11-03 Thread Paolo Bonzini
On 11/03/2011 10:15 AM, Thomas Schmitt wrote: Which gives me something to work on. libburn does not take into respect the Block Descriptor of 8 bytes which sits between Mode Data Header and mode page. So it misinterpets the result and demands the wrong Allocation Length. This error is

Re: [Qemu-devel] Multiple instances of Qemu on Windows multicore

2011-11-03 Thread Fabien Chouteau
On 02/11/2011 20:52, Paolo Bonzini wrote: On 11/02/2011 07:01 PM, Peter Maydell wrote: On 2 November 2011 17:45, Paolo Bonzinipbonz...@redhat.com wrote: The rest is always done in the iothread. The iothread will then suspend/resume the VCPU thread around the unchaining, so what matters is

Re: [Qemu-devel] Multiple instances of Qemu on Windows multicore

2011-11-03 Thread Fabien Chouteau
On 02/11/2011 20:57, Peter Maydell wrote: On 2 November 2011 19:52, Paolo Bonzini pbonz...@redhat.com wrote: (Also, the unchaining is safer, or even completely safe in system mode than it is with pthreads). I don't think it's completely safe, you're just a bit less likely to get bitten than

[Qemu-devel] [PULL v3 00/29] VMState port of all cpus

2011-11-03 Thread Juan Quintela
The following changes since commit 932eacc158c064935c7bab920c88a93a629e1ca4: Merge branch 'xtensa' of git://jcmvbkbc.spb.ru/dumb/qemu-xtensa (2011-11-02 20:52:23 +) are available in the git repository at: git://repo.or.cz/qemu/quintela.git vmstate-cpus-for-anthony [v3] - rebase to top

Re: [Qemu-devel] Multiple instances of Qemu on Windows multicore

2011-11-03 Thread Avi Kivity
On 11/03/2011 12:10 PM, Paolo Bonzini wrote: Also, why running all the threads on the same CPU would make the code thread-safe? It would ensure that two mutators wouldn't run concurrently. In some sense, signal-safe code could then be considered thread-safe too. How so? The scheduler can

Re: [Qemu-devel] [PATCH] virtio: Add PCI memory BAR in addition to PIO BAR

2011-11-03 Thread Avi Kivity
On 11/02/2011 12:20 AM, Anthony Liguori wrote: Seems harmless for QEMU, so applied. You should update the virtio-pci spec too. Should be the other way round. -- error compiling committee.c: too many arguments to function

Re: [Qemu-devel] [PATCH 0/5] linux-user: fake some /proc/self entries

2011-11-03 Thread Riku Voipio
On Wed, Nov 02, 2011 at 08:23:21PM +0100, Alexander Graf wrote: When running linux-user programs in QEMU, the guest program can examine itself by checking /proc/self/ files. And some libraries really do use this! Unfortunately, when checking /proc/self/ today, the guest program sees the

Re: [Qemu-devel] [PATCH (repost) RFC 2/2] virtio-pci: recall and return msix notifications on ISR read

2011-11-03 Thread Jan Kiszka
On 2011-11-02 21:11, Michael S. Tsirkin wrote: MSIX spec requires that device can be operated with all vectors masked, by polling pending bits. Add APIs to recall an msix notification, and make polling mode possible in virtio-pci by clearing the pending bits and setting ISR appropriately on

Re: [Qemu-devel] Multiple instances of Qemu on Windows multicore

2011-11-03 Thread Paolo Bonzini
On 11/03/2011 11:29 AM, Avi Kivity wrote: It would ensure that two mutators wouldn't run concurrently. In some sense, signal-safe code could then be considered thread-safe too. How so? The scheduler can switch between the two threads on every instruction. In general signal-safe is more

Re: [Qemu-devel] [PATCH (repost) RFC 2/2] virtio-pci: recall and return msix notifications on ISR read

2011-11-03 Thread Michael S. Tsirkin
On Thu, Nov 03, 2011 at 12:42:55PM +0100, Jan Kiszka wrote: On 2011-11-02 21:11, Michael S. Tsirkin wrote: MSIX spec requires that device can be operated with all vectors masked, by polling pending bits. Add APIs to recall an msix notification, and make polling mode possible in virtio-pci

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

2011-11-03 Thread Michael S. Tsirkin
On Thu, Nov 03, 2011 at 04:16:34PM +1100, David Gibson wrote: On Wed, Nov 02, 2011 at 09:16:34AM +0200, Michael S. Tsirkin wrote: On Mon, Oct 31, 2011 at 05:06:49PM +1100, David Gibson wrote: From: Eduard - Gabriel Munteanu eduard.munte...@linux360.ro [snip] @@ -744,21 +713,26 @@ static

Re: [Qemu-devel] [PULL v3 00/29] VMState port of all cpus

2011-11-03 Thread Anthony Liguori
On 11/03/2011 05:26 AM, Juan Quintela wrote: The following changes since commit 932eacc158c064935c7bab920c88a93a629e1ca4: Merge branch 'xtensa' of git://jcmvbkbc.spb.ru/dumb/qemu-xtensa (2011-11-02 20:52:23 +) are available in the git repository at:

[Qemu-devel] [PATCH] os-posix: call system_powerdown on SIGTERM, enabling clean guest shutdown

2011-11-03 Thread Bjørn Mork
Allow well behaved guests to shutdown cleanly when we receive SIGTERM, e.g. when the host reboots. The host may be powered down or rebooted while guests are running without any outer supervision scripts. These guests will be stopped by the generic host sendsigs script, usually by sending SIGTERM

Re: [Qemu-devel] [PATCH] virtio: Add PCI memory BAR in addition to PIO BAR

2011-11-03 Thread Anthony Liguori
On 11/03/2011 05:36 AM, Avi Kivity wrote: On 11/02/2011 12:20 AM, Anthony Liguori wrote: Seems harmless for QEMU, so applied. You should update the virtio-pci spec too. Should be the other way round. Am not entirely sure. Having worked code that's been reviewed will make for a better

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

2011-11-03 Thread Anthony Liguori
On 11/02/2011 05:10 AM, Avi Kivity wrote: On 11/01/2011 08:08 PM, Anthony Liguori wrote: On 10/30/2011 09:02 AM, Avi Kivity wrote: This somewhat controversial patchset converts internal arithmetic in the memory API to 128 bits. It has been argued that with careful coding we can make 64-bit

Re: [Qemu-devel] Do you have a use for a tester of virtio-scsi with CD drives ?

2011-11-03 Thread Thomas Schmitt
Hi, i repeated my tests with -drive and -cdrom in the same qemu run: ...absolute.path.../x86_64-softmmu/qemu-system-x86_64 \ -enable-kvm \ -L ...absolute.path.../pc-bios \ -nographic \ -m 512 \ -net nic,model=ne2k_pci \ -net user,hostfwd=tcp::5557-:22 \ -hda

Re: [Qemu-devel] [PATCH v4 1/4] Add basic version of bridge helper

2011-11-03 Thread Corey Bryant
On 11/03/2011 03:54 AM, Stefan Hajnoczi wrote: On Wed, Nov 2, 2011 at 3:12 PM, Corey Bryantcor...@linux.vnet.ibm.com wrote: On 11/02/2011 06:58 AM, Stefan Hajnoczi wrote: On Tue, Nov 1, 2011 at 5:13 PM, Corey Bryantcor...@linux.vnet.ibm.com wrote: +static bool has_vnet_hdr(int fd) +{ +

Re: [Qemu-devel] [PULL] Virtfs update

2011-11-03 Thread Anthony Liguori
On 11/02/2011 09:09 AM, Aneesh Kumar K.V wrote: On Wed, 02 Nov 2011 07:42:16 -0500, Anthony Liguorialigu...@us.ibm.com wrote: On 11/02/2011 05:22 AM, Aneesh Kumar K.V wrote: The following changes since commit e072ea2fd8fdceef64159b9596d3c15ce01bea91: Bump version to 1.0-rc0 (2011-11-01

Re: [Qemu-devel] [PATCH] virtio: Add PCI memory BAR in addition to PIO BAR

2011-11-03 Thread Avi Kivity
On 11/03/2011 03:07 PM, Anthony Liguori wrote: On 11/03/2011 05:36 AM, Avi Kivity wrote: On 11/02/2011 12:20 AM, Anthony Liguori wrote: Seems harmless for QEMU, so applied. You should update the virtio-pci spec too. Should be the other way round. Am not entirely sure. Having worked code

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

2011-11-03 Thread Luiz Capitulino
On Mon, 31 Oct 2011 08:55:56 + Stefan Hajnoczi stefa...@gmail.com wrote: 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

Re: [Qemu-devel] [PATCH] virtio: Add PCI memory BAR in addition to PIO BAR

2011-11-03 Thread Anthony Liguori
On 11/03/2011 08:13 AM, Avi Kivity wrote: On 11/03/2011 03:07 PM, Anthony Liguori wrote: On 11/03/2011 05:36 AM, Avi Kivity wrote: On 11/02/2011 12:20 AM, Anthony Liguori wrote: Seems harmless for QEMU, so applied. You should update the virtio-pci spec too. Should be the other way round.

Re: [Qemu-devel] [PATCH] virtio: Add PCI memory BAR in addition to PIO BAR

2011-11-03 Thread Avi Kivity
On 11/03/2011 03:38 PM, Anthony Liguori wrote: We could use a better agreement on the processor for making virtio changes. Should it go (1) virtio spec (2) kernel (3) qemu, or should it go (2), (1), (3)? 1. Informal discussion Where? Is this lkml? There were a number of virtio changes

Re: [Qemu-devel] [PATCH] virtio: Add PCI memory BAR in addition to PIO BAR

2011-11-03 Thread Anthony Liguori
On 11/03/2011 08:45 AM, Avi Kivity wrote: On 11/03/2011 03:38 PM, Anthony Liguori wrote: We could use a better agreement on the processor for making virtio changes. Should it go (1) virtio spec (2) kernel (3) qemu, or should it go (2), (1), (3)? 1. Informal discussion Where? Is this

Re: [Qemu-devel] [v8 Patch 1/6]Qemu: Enhance info block to display host cache setting

2011-11-03 Thread Luiz Capitulino
On Sun, 30 Oct 2011 16:03:54 +0530 Supriya Kannery supri...@linux.vnet.ibm.com wrote: Enhance info block to display hostcache setting for each block device. Example: (qemu) info block ide0-hd0: removable=0 file=../sles11-32.raw ro=0 drv=raw encrypted=0 Enhanced to display hostcache

[Qemu-devel] [PATCH 1.0] add sgabios blob and submodule

2011-11-03 Thread Paolo Bonzini
The rom was not added together with the sgabios device and is not installed. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- The sgabios.git mirror repository can be fetched from http://people.redhat.com/pbonzini/sgabios-git.tgz .gitmodules |3 +++ Makefile

Re: [Qemu-devel] [RFC 3/6] block: wait for overlapping requests

2011-11-03 Thread Kevin Wolf
Am 17.10.2011 17:47, schrieb Stefan Hajnoczi: When copy-on-read is enabled it is necessary to wait for overlapping requests before issuing new requests. This prevents races between the copy-on-read and a write request. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com This doesn't

Re: [Qemu-devel] [RFC 5/6] block: core copy-on-read logic

2011-11-03 Thread Kevin Wolf
Am 17.10.2011 17:47, schrieb Stefan Hajnoczi: Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- block.c | 69 ++ trace-events |1 + 2 files changed, 70 insertions(+), 0 deletions(-) diff --git a/block.c

Re: [Qemu-devel] [RFC 6/6] block: add -drive copy-on-read=on|off

2011-11-03 Thread Kevin Wolf
Am 17.10.2011 17:47, schrieb Stefan Hajnoczi: This patch adds the -drive copy-on-read=on|off command-line option: copy-on-read=on|off copy-on-read is on or off and enables whether to copy read backing file sectors into the image file. Copy-on-read avoids accessing the same backing

Re: [Qemu-devel] [PATCH] virtio: Add PCI memory BAR in addition to PIO BAR

2011-11-03 Thread Michael S. Tsirkin
On Thu, Nov 03, 2011 at 08:49:31AM -0500, Anthony Liguori wrote: On 11/03/2011 08:45 AM, Avi Kivity wrote: On 11/03/2011 03:38 PM, Anthony Liguori wrote: We could use a better agreement on the processor for making virtio changes. Should it go (1) virtio spec (2) kernel (3) qemu, or should

Re: [Qemu-devel] [PATCH] virtio: Add PCI memory BAR in addition to PIO BAR

2011-11-03 Thread Anthony Liguori
On 11/03/2011 09:31 AM, Michael S. Tsirkin wrote: On Thu, Nov 03, 2011 at 08:49:31AM -0500, Anthony Liguori wrote: On 11/03/2011 08:45 AM, Avi Kivity wrote: On 11/03/2011 03:38 PM, Anthony Liguori wrote: We could use a better agreement on the processor for making virtio changes. Should it

Re: [Qemu-devel] [PATCH] virtio: Add PCI memory BAR in addition to PIO BAR

2011-11-03 Thread Avi Kivity
On 11/03/2011 04:37 PM, Anthony Liguori wrote: 2. Proposed spec patch, kernel change, qemu change 3. Buy-ins from spec maintainer, kernel driver maintainer, qemu device maintainer (only regarding the ABI, not the code) I don't think this is how it's working today. I would be happy with a

[Qemu-devel] [PATCH 1.0] disable automatic loading of sgabios when -nographic

2011-11-03 Thread Paolo Bonzini
sgabios hasn't gotten a lot of coverage since it was not shipped. For 1.0, let's disable the automatic loading of the option ROM in -nographic mode. We can put it back for 1.1. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- Requested by Anthony on IRC. hw/pc.c |9 -

Re: [Qemu-devel] [PATCH 1/2] Allow 1366x768 as a valid VGA resolution

2011-11-03 Thread John Baboval
This is a good idea. I'm going to re-work the patch, but I have a lot of other stuff going on too, so it may be a week or so before I get back to it. On 11/01/2011 12:57 PM, Gerd Hoffmann wrote: On 11/01/11 14:39, John Baboval wrote: I don't know of any reason for it. I'd guess it is

Re: [Qemu-devel] [PATCH] os-posix: call system_powerdown on SIGTERM, enabling clean guest shutdown

2011-11-03 Thread Anthony Liguori
On 11/03/2011 08:08 AM, Bjørn Mork wrote: Allow well behaved guests to shutdown cleanly when we receive SIGTERM, e.g. when the host reboots. The host may be powered down or rebooted while guests are running without any outer supervision scripts. These guests will be stopped by the generic host

[Qemu-devel] [PATCH] [SPARC] Improve ta 0 shutdown

2011-11-03 Thread Fabien Chouteau
This patch replace the previous implementation with this simplified and more complete version (no shutdown when psret == 1). Signed-off-by: Fabien Chouteau chout...@adacore.com --- target-sparc/helper.c |7 --- target-sparc/helper.h |1 - target-sparc/int32_helper.c |

[Qemu-devel] [PATCH] [SPARC] Improve ta 0 shutdown

2011-11-03 Thread Fabien Chouteau
This patch replace the previous implementation with this simplified and more complete version (no shutdown when psret == 1). Signed-off-by: Fabien Chouteau chout...@adacore.com --- target-sparc/helper.c |7 --- target-sparc/helper.h |1 - target-sparc/int32_helper.c |

[Qemu-devel] [PATCH] [SPARC] Improve ta 0 shutdown

2011-11-03 Thread Fabien Chouteau
This patch replace the previous implementation with this simplified and more complete version (no shutdown when psret == 1). Signed-off-by: Fabien Chouteau chout...@adacore.com --- target-sparc/helper.c |7 --- target-sparc/helper.h |1 - target-sparc/int32_helper.c |

Re: [Qemu-devel] [RFC] block: convert block_stream command to QAPI

2011-11-03 Thread Luiz Capitulino
On Tue, 1 Nov 2011 18:08:16 + Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: Move from plain HMP/QMP command implementation to QAPI. The block_stream command takes arguments, returns nothing, may raise errors, and will raise a QMP event when the operation completes. --- Hi Luiz, I

Re: [Qemu-devel] [RFC 6/6] block: add -drive copy-on-read=on|off

2011-11-03 Thread Stefan Hajnoczi
On Thu, Nov 03, 2011 at 03:32:17PM +0100, Kevin Wolf wrote: Am 17.10.2011 17:47, schrieb Stefan Hajnoczi: This patch adds the -drive copy-on-read=on|off command-line option: copy-on-read=on|off copy-on-read is on or off and enables whether to copy read backing file sectors into

Re: [Qemu-devel] [PATCH 3/8] block: add image streaming block job

2011-11-03 Thread Marcelo Tosatti
On Wed, Nov 02, 2011 at 03:43:49PM +, Stefan Hajnoczi wrote: On Tue, Nov 1, 2011 at 6:06 PM, Marcelo Tosatti mtosa...@redhat.com wrote: On Thu, Oct 27, 2011 at 04:22:50PM +0100, Stefan Hajnoczi wrote: +static int stream_one_iteration(StreamBlockJob *s, int64_t sector_num, +              

Re: [Qemu-devel] [PATCH (repost) RFC 2/2] virtio-pci: recall and return msix notifications on ISR read

2011-11-03 Thread Jan Kiszka
On 2011-11-03 13:07, Michael S. Tsirkin wrote: On Thu, Nov 03, 2011 at 12:42:55PM +0100, Jan Kiszka wrote: On 2011-11-02 21:11, Michael S. Tsirkin wrote: MSIX spec requires that device can be operated with all vectors masked, by polling pending bits. Add APIs to recall an msix notification,

[Qemu-devel] [PATCH 1.0] qxl: fix vga port initialization.

2011-11-03 Thread Gerd Hoffmann
Commit 0a039dc70096b768d3810afa50ba1d214768aaf4 broke vga modes for qxl-vga by loosing vga_ioport_read windup. qxl needs to hook into vga port writes only and used to realize that by letting vga_init() do the work for both reads and writes, then overwrite the write function. That little detail

Re: [Qemu-devel] [PATCH 2/5] linux-user: add open() hijack infrastructure

2011-11-03 Thread Alexander Graf
On 03.11.2011, at 02:34, David Gilbert david.gilb...@linaro.org wrote: On 2 November 2011 19:23, Alexander Graf ag...@suse.de wrote: There are a number of files in /proc that expose host information to the guest program. This patch adds infrastructure to override the open() syscall for guest

Re: [Qemu-devel] [PATCH 0/5] linux-user: fake some /proc/self entries

2011-11-03 Thread Alexander Graf
On 03.11.2011, at 03:47, Riku Voipio riku.voi...@iki.fi wrote: On Wed, Nov 02, 2011 at 08:23:21PM +0100, Alexander Graf wrote: When running linux-user programs in QEMU, the guest program can examine itself by checking /proc/self/ files. And some libraries really do use this!

[Qemu-devel] [RFC] docs: Add writing-qmp-commands.txt

2011-11-03 Thread Luiz Capitulino
Explains how to write QMP commands using the QAPI. TODO: - write returning lists chapter - review it Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- This is incomplete, but I figured I should send it anyway as there are people who want to add new QMP commands but are still

[Qemu-devel] QEMU 0.15.1 Linux

2011-11-03 Thread Gus Zernial
I have Kubuntu 11.10 Oneiric with standard 3.0.0-12-generic kernel on an AMD Phenom II X6 box. I've been running Windows 7 guest under qemu $ /usr/bin/qemu-system-x86_64 -version QEMU emulator version 0.14.1 (qemu-kvm-0.14.1), Copyright (c) 2003-2008 Fabrice Bellard $ sudo

Re: [Qemu-devel] State of KVM guest debugging support on Power

2011-11-03 Thread Stuart Yoder
On Tue, Nov 1, 2011 at 9:22 AM, Jan Kiszka jan.kis...@web.de wrote: Hi there, I'm generating some slides on guest debugging via kvm. What's the current state for Book-E and Book-S? Works out of box, mostly usable, or to be implemented? Is anyone using it? Are you talking about guest debug

Re: [Qemu-devel] State of KVM guest debugging support on Power

2011-11-03 Thread Alexander Graf
On 03.11.2011, at 11:59, Stuart Yoder b08...@gmail.com wrote: On Tue, Nov 1, 2011 at 9:22 AM, Jan Kiszka jan.kis...@web.de wrote: Hi there, I'm generating some slides on guest debugging via kvm. What's the current state for Book-E and Book-S? Works out of box, mostly usable, or to be

Re: [Qemu-devel] State of KVM guest debugging support on Power

2011-11-03 Thread Jan Kiszka
On 2011-11-03 19:59, Stuart Yoder wrote: On Tue, Nov 1, 2011 at 9:22 AM, Jan Kiszka jan.kis...@web.de wrote: Hi there, I'm generating some slides on guest debugging via kvm. What's the current state for Book-E and Book-S? Works out of box, mostly usable, or to be implemented? Is anyone using

Re: [Qemu-devel] [PATCH 3/5] linux-user: fake /proc/self/maps

2011-11-03 Thread Alexander Graf
Alexander Graf wrote: glibc's pthread_attr_getstack tries to find the stack range from /proc/self/maps. Unfortunately, /proc is usually the host's /proc which means linux-user guests see qemu's stack there. Fake the file with a constructed maps entry that exposes the guest's stack range.

Re: [Qemu-devel] [PATCH] os-posix: call system_powerdown on SIGTERM, enabling clean guest shutdown

2011-11-03 Thread Bjørn Mork
Anthony Liguori anth...@codemonkey.ws writes: I don't think this is such a good idea. SIGTERM shouldn't be subject to the guest's interpretations. OK. Just an idea. Thanks for the feedback. Instead of doing a killall qemu, just send a system_powerdown command to each qemu's monitor

Re: [Qemu-devel] [PATCH v3 4/4] Add support for net bridge

2011-11-03 Thread Corey Bryant
On 11/02/2011 11:10 PM, Mark Wu wrote: On 11/01/2011 02:36 AM, Corey Bryant wrote: The default bridge that we attach to is br0. The thinking is that a distro could preconfigure such an interface to allow out-of-the-box bridged networking. Alternatively, if a user wants to use a different

Re: [Qemu-devel] [RFC] docs: Add writing-qmp-commands.txt

2011-11-03 Thread Alon Levy
On Thu, Nov 03, 2011 at 04:36:03PM -0200, Luiz Capitulino wrote: Explains how to write QMP commands using the QAPI. TODO: - write returning lists chapter - review it Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- This is incomplete, but I figured I should send it

Re: [Qemu-devel] [RFC] docs: Add writing-qmp-commands.txt

2011-11-03 Thread Michael Roth
On 11/03/2011 01:36 PM, Luiz Capitulino wrote: Explains how to write QMP commands using the QAPI. TODO: - write returning lists chapter - review it Signed-off-by: Luiz Capitulinolcapitul...@redhat.com --- This is incomplete, but I figured I should send it anyway as there are people

Re: [Qemu-devel] QEMU 0.15.1 Linux

2011-11-03 Thread Jernej Simončič
On Thursday, November 3, 2011, 19:59:37, Gus Zernial wrote: $ /usr/bin/qemu-system-x86_64 -version QEMU emulator version 0.14.1 (qemu-kvm-0.14.1), Copyright (c) 2003-2008 Fabrice Bellard ^^^ This part is important - you had qemu-kvm, which is slightly

Re: [Qemu-devel] Do you have a use for a tester of virtio-scsi with CD drives ?

2011-11-03 Thread Thomas Schmitt
Hi, i could track down the reason for sense code B 00 06 to an ioctl(SG_IO) which returns -1. errno is 1. The host system has in /usr/include/asm-generic/errno-base.h #define EPERM1 /* Operation not permitted */ The user who runs qemu is able to perform e.g. PREVENT/ALLOW

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

2011-11-03 Thread David Gibson
On Thu, Nov 03, 2011 at 02:25:45PM +0200, Michael S. Tsirkin wrote: On Thu, Nov 03, 2011 at 04:16:34PM +1100, David Gibson wrote: On Wed, Nov 02, 2011 at 09:16:34AM +0200, Michael S. Tsirkin wrote: On Mon, Oct 31, 2011 at 05:06:49PM +1100, David Gibson wrote: From: Eduard - Gabriel

[Qemu-devel] [PATCH][ARM] Fix C15 FSR (C5) domain setting

2011-11-03 Thread Jean-Christophe DUBOIS
During Xvisor development, it was noted that qemu did not return the correct domain value in the C15 [Data] FSR register (C5). This patch is a proposal to fix it. Signed-off-by: Jean-Christophe DUBOISj...@tribudubois.net --- --- qemu-0.15.1.org/target-arm/helper.c2011-10-12

[Qemu-devel] [PATCH 2/7] Remove unnecessary casts from PCI DMA code in e1000

2011-11-03 Thread David Gibson
This patch removes some unnecessary casts in the e1000 device, introduced by commit 62ecbd353d25e62c4a6c327ea88ba5404e13507a 'e1000: Use PCI DMA stub functions'. Signed-off-by: David Gibson da...@gibson.dropbear.id.au --- hw/e1000.c | 11 +-- 1 files changed, 5 insertions(+), 6

[Qemu-devel] Novatis, agence web innovatrice

2011-11-03 Thread Votre agence Web
Agence web multidisciplinaire spécialisée en solutions interactives, conception de site Internet, e-commerce, multimédia, animation flash, stratégie marketing Internet et design graphique en tous genres. Basée sur les valeurs de marques et parce qu'elle intègre les dimensions d'images et

[Qemu-devel] [PATCH 4/7] Remove unnecessary casts from PCI DMA code in lsi53c895a

2011-11-03 Thread David Gibson
This patch removes some unnecessary casts in the lsi53c895a device, introduced by commit 9ba4524cda1348cbe741535f77815dca6a57da05 'lsi53c895a: Use PCI DMA stub functions'. Signed-off-by: David Gibson da...@gibson.dropbear.id.au --- hw/lsi53c895a.c |4 ++-- 1 files changed, 2 insertions(+), 2

[Qemu-devel] [PATCH 1/7] Remove unnecessary casts from PCI DMA code in eepro100

2011-11-03 Thread David Gibson
This patch removes some unnecessary casts in the eepro100 device, introduced by commit 16ef60c9a8269f7cbc95219a431b1d7cbf29 'eepro100: Use PCI DMA stub functions'. Signed-off-by: David Gibson da...@gibson.dropbear.id.au --- hw/eepro100.c |7 +++ 1 files changed, 3 insertions(+), 4

[Qemu-devel] [PATCH 5/7] Remove unnecessary casts from PCI DMA code in rtl8139

2011-11-03 Thread David Gibson
This patch removes some unnecessary casts in the rtl8139 device, introduced by commit 3ada003aee2004d24f23b9cd6f4eda87d9601ddb 'rtl8139: Use PCI DMA stub functions'. Signed-off-by: David Gibson da...@gibson.dropbear.id.au --- hw/rtl8139.c |8 1 files changed, 4 insertions(+), 4

Re: [Qemu-devel] [PATCH 1.0] add sgabios blob and submodule

2011-11-03 Thread Zhi Yong Wu
On Thu, Nov 3, 2011 at 10:14 PM, Paolo Bonzini pbonz...@redhat.com wrote: The rom was not added together with the sgabios device and is not installed. Signed-off-by: Paolo Bonzini pbonz...@redhat.com ---        The sgabios.git mirror repository can be fetched from        

[Qemu-devel] [PATCH 6/7] Remove unnecessary casts from PCI DMA code in usb-ehci

2011-11-03 Thread David Gibson
This patch removes some unnecessary casts in the usb-ehci device, introduced by commit 68d553587c0aa271c3eb2902921b503740d775b6 'usb-ehci: Use PCI DMA stub functions'. Signed-off-by: David Gibson da...@gibson.dropbear.id.au --- hw/usb-ehci.c |6 +++--- 1 files changed, 3 insertions(+), 3

[Qemu-devel] [0/7] Remove unnecessary casts introduced by PCI DMA stubs series

2011-11-03 Thread David Gibson
As a few people pointed out, my recent patch series introducing a new (stub) PCI DMA API added unnecessary casts in quite a few places. I think this was a hangover from early days of the patchese where the casts were necessary for some reason I've now forgotten. Thanks for applying the series

Re: [Qemu-devel] [PATCH 1.0] add sgabios blob and submodule

2011-11-03 Thread Anthony Liguori
On 11/03/2011 08:39 PM, Zhi Yong Wu wrote: On Thu, Nov 3, 2011 at 10:14 PM, Paolo Bonzinipbonz...@redhat.com wrote: The rom was not added together with the sgabios device and is not installed. Signed-off-by: Paolo Bonzinipbonz...@redhat.com --- The sgabios.git mirror repository can be

[Qemu-devel] [PATCH 7/7] Remove unnecessary casts from PCI DMA code in usb-uhci

2011-11-03 Thread David Gibson
This patch removes some unnecessary casts in the usb-uhci device, introduced by commit fff23ee9a5de74ab111b3cea9eec56782e7d7c50 'usb-uhci: Use PCI DMA stub functions'. Signed-off-by: David Gibson da...@gibson.dropbear.id.au --- hw/usb-uhci.c | 17 +++-- 1 files changed, 7

[Qemu-devel] [PATCH 3/7] Remove unnecessary casts from PCI DMA code in PCI IDE

2011-11-03 Thread David Gibson
This patch removes some unnecessary casts in the PCI IDE device, introduced by commit 552908fef5b67ad9d96b76d7cb8371ebc26c9bc8 'PCI IDE: Use PCI DMA stub functions'. Signed-off-by: David Gibson da...@gibson.dropbear.id.au --- hw/ide/pci.c |4 ++-- 1 files changed, 2 insertions(+), 2

[Qemu-devel] qemu ARM host support likely to be broken in 1.0

2011-11-03 Thread Peter Maydell
This is just a quick email to summarise a discussion on IRC. QEMU on ARM hosts (not ARM guests!) is currently broken in at least the following ways: * configure will select the ucontext coroutine implementation but on ARM makecontext returns ENOSYS and we will abort() on startup * the fixed

Re: [Qemu-devel] [PATCH 1.0] add sgabios blob and submodule

2011-11-03 Thread Zhi Yong Wu
On Fri, Nov 4, 2011 at 9:44 AM, Anthony Liguori anth...@codemonkey.ws wrote: On 11/03/2011 08:39 PM, Zhi Yong Wu wrote: On Thu, Nov 3, 2011 at 10:14 PM, Paolo Bonzinipbonz...@redhat.com  wrote: The rom was not added together with the sgabios device and is not installed. Signed-off-by:

Re: [Qemu-devel] [v8 Patch 0/6]Qemu: Host pagecache setting from cmdline and monitor

2011-11-03 Thread Zhi Yong Wu
On Sun, Oct 30, 2011 at 6:33 PM, Supriya Kannery supri...@linux.vnet.ibm.com wrote: Currently cache setting of a block device cannot be changed without restarting a running VM. Following patchset is for enabling dynamic change of cache setting for block devices through qemu monitor. Code

[Qemu-devel] [PATCH] reenable vm_clock when resuming all vcpus

2011-11-03 Thread Wen Congyang
We disable vm_clock when pausing all vcpus, but we forget to reenable it when resuming all vcpus. It will cause that the guest can not be rebooted. Signed-off-by: Wen Congyang we...@cn.fujitsu.com --- cpus.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/cpus.c

  1   2   >