Re: [Qemu-devel] virtio block device and sysfs

2010-03-09 Thread Marc Haber
Hi, thanks for your answer. On Mon, Mar 08, 2010 at 05:17:03PM -0800, jvrao wrote: Marc Haber wrote: I am looking to get in touch with somebody who knows more about the connection between host configuration, qemu, kvm, and the virtio block device driver guest side than I know. Please

Re: [Qemu-devel] Summer of Code 2010

2010-03-09 Thread Johannes Schindelin
Hi, On Mon, 8 Mar 2010, Luiz Capitulino wrote: Google has this wonderful program called Summer of Code, in which open source projects like ours, suggest possible projects and provide mentors to help selected students to do them. It's a great opportunity for students to get in touch

Re: [Qemu-devel] Re: bs-enable_write_cache and the guest ABI

2010-03-09 Thread Avi Kivity
On 03/09/2010 01:00 AM, Jamie Lokier wrote: Avi Kivity wrote: I think we have to go with a qdev property as Christoph suggests. Then it becomes the management's responsibility to set it right. How can the management be expected to know or follow dynamically changing guest state?

Re: [Qemu-devel] [PATCH] use absolute URLs for .gitmodules

2010-03-09 Thread Anthony Liguori
On 03/05/2010 02:08 AM, Paolo Bonzini wrote: The relative URLs do not work when cloning a fork of qemu or when cloning from the Savannah URL. Signed-off-by: Paolo Bonzinipbonz...@redhat.com Signed-off-by: Paolo Bonzinipbonz...@redhat.com --- .gitmodules |4 ++-- 1 files changed, 2

Re: [Qemu-devel] Latest CVS build of qemu-system-ppc not boot debian_lenny_powerpc_small.qcow

2010-03-09 Thread Aurelien Jarno
On Tue, Mar 09, 2010 at 11:53:54AM +0530, Amit Shah wrote: On (Mon) Mar 08 2010 [12:38:37], Aurelien Jarno wrote: On Sun, Mar 07, 2010 at 11:07:40AM +0800, tielian wrote: qemu-system-ppc -hda debian_lenny_powerpc_small.qcow qemu: fatal: Trying to execute code outside RAM or ROM at

Re: [Qemu-devel] [PATCH RFC] net: add a flag to disable mac/vlan filtering

2010-03-09 Thread Anthony Liguori
On 03/09/2010 07:15 AM, Michael S. Tsirkin wrote: New bridge in linux 2.6.34 adds IGMP snooping support, after which bridge should not normally flood any packets. While we still need mac table to arm forwarding tables after migration, we can thus ignore it for rx datapath. For vlan, it's

[Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon driver (V8)

2010-03-09 Thread Adam Litke
On Tue, 2010-03-09 at 11:22 -0300, Luiz Capitulino wrote: On Tue, 09 Mar 2010 14:51:31 +0100 Juan Quintela quint...@redhat.com wrote: Any recompilation/etc would break migration. I have tried to understand what happened with monitor async commands, and my head exploded in indirections.

Re: [Qemu-devel] [PATCH] QMP: Introduce RTC_CHANGE event

2010-03-09 Thread Luiz Capitulino
On Tue, 09 Mar 2010 08:20:09 -0600 Anthony Liguori anth...@codemonkey.ws wrote: On 02/25/2010 09:11 AM, Luiz Capitulino wrote: Emitted whenever the RTC time changes. Signed-off-by: Luiz Capitulinolcapitul...@redhat.com Not that this change isn't acceptable, but I think we need to

Re: [Qemu-devel] Summer of Code 2010

2010-03-09 Thread Stefan Hajnoczi
On Tue, Mar 9, 2010 at 9:31 AM, Johannes Schindelin johannes.schinde...@gmx.de wrote: Note that some students do not finish up their work, do not get properly involved with the project, get the pay check, and then go somewhere else. The time of the mentor is quite possibly just wasted in such a

[Qemu-devel] Re: [PATCH] Inter-VM shared memory PCI device

2010-03-09 Thread Avi Kivity
On 03/09/2010 02:49 PM, Arnd Bergmann wrote: On Monday 08 March 2010, Cam Macdonell wrote: enum ivshmem_registers { IntrMask = 0, IntrStatus = 2, Doorbell = 4, IVPosition = 6, IVLiveList = 8 }; The first two registers are the interrupt mask and status registers.

Re: [Qemu-devel] KVM call agenda for Mar 9

2010-03-09 Thread Luiz Capitulino
On Mon, 8 Mar 2010 22:29:55 -0800 Chris Wright chr...@redhat.com wrote: - virtio-9p passthrough filesystem support - modular command line helpers Please send in any additional agenda items you are interested in covering. - Summer of code 2010 (do we want to join?) - Status of Anthony's

Re: [Qemu-devel] [PATCH 1/5] block: Emit BLOCK_IO_ERROR before vm_stop() call

2010-03-09 Thread Anthony Liguori
On 02/25/2010 09:06 AM, Luiz Capitulino wrote: The next commit will move the STOP event into do_vm_stop(), to have the expected event sequence we need to emit the I/O error event before calling vm_stop(). The expected sequence is: { event: BLOCK_IO_ERROR [...] } { event: STOP } Signed-off-by:

[Qemu-devel] Re: [PATCH] Inter-VM shared memory PCI device

2010-03-09 Thread Arnd Bergmann
On Monday 08 March 2010, Cam Macdonell wrote: enum ivshmem_registers { IntrMask = 0, IntrStatus = 2, Doorbell = 4, IVPosition = 6, IVLiveList = 8 }; The first two registers are the interrupt mask and status registers. Interrupts are triggered when a message is

Re: [Qemu-devel] [PATCH] QMP: Introduce WATCHDOG event

2010-03-09 Thread Anthony Liguori
On 02/25/2010 09:13 AM, Luiz Capitulino wrote: It's emitted whenever the watchdog device's timer expires. The action taken is provided in the 'data' member. Signed-off-by: Luiz Capitulinolcapitul...@redhat.com Applied. Thanks. Regards, Anthony Liguori --- QMP/qmp-events.txt |

Re: [Qemu-devel] [PATCH 1/2] qdev: Add a DEV_NVECTORS_UNSPECIFIED enum for unspecified nr of MSI vectors

2010-03-09 Thread Anthony Liguori
On 02/25/2010 05:54 AM, Amit Shah wrote: net.c used a constant to signify no MSI vectors were specified. Extend that to all qdev devices. Signed-off-by: Amit Shahamit.s...@redhat.com Reported-by: Michael S. Tsirkinm...@redhat.com Applied. Thanks. Regards, Anthony Liguori ---

[Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon driver (V8)

2010-03-09 Thread Luiz Capitulino
On Tue, 09 Mar 2010 14:51:31 +0100 Juan Quintela quint...@redhat.com wrote: Any recompilation/etc would break migration. I have tried to understand what happened with monitor async commands, and my head exploded in indirections. The Monitor needs lots of cleanups to make things more

[Qemu-devel] virtio-serial NULL deference

2010-03-09 Thread Juan Quintela
Hi Amit Checking migration, I just found this problem: I don't know what to put there. a return -EINVAL or continue? Looking more at the code, I am not sure what checks: a- that bus-max_nr_ports is the same in both sides (or at least bigger on migration destination) b- We sent the value of

Re: [Qemu-devel] [PATCH] Restore terminal attributes for tty based monitor

2010-03-09 Thread Anthony Liguori
On 02/26/2010 03:34 AM, Shahar Havivi wrote: Patch http://permalink.gmane.org/gmane.comp.emulators.qemu/63472 handle close when using tty devices (like /dev/ttyS0), yet tty based monitor are not restoring terminal attributes (as done with stdio based monitor), when closing qemu after that

[Qemu-devel] Re: [PATCH 2/4] KVM: Rework VCPU state writeback API

2010-03-09 Thread Anthony Liguori
On 03/08/2010 02:33 PM, Marcelo Tosatti wrote: On Fri, Mar 05, 2010 at 09:37:26PM -0500, Kevin O'Connor wrote: On Thu, Mar 04, 2010 at 03:35:52PM -0300, Marcelo Tosatti wrote: On Thu, Mar 04, 2010 at 12:58:58AM -0500, Kevin O'Connor wrote: On Thu, Mar 04, 2010 at 01:21:12AM

[Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon driver (V8)

2010-03-09 Thread Juan Quintela
Adam Litke a...@us.ibm.com wrote: The changes in V8 of this patch are related to the monitor infrastructure. No changes to the virtio interface core have been made since V4. This is intended to apply on top of my API for asynchronous monitor commands patch. I know that I am late reviewing

Re: [Qemu-devel] [PATCH] QMP: Introduce RTC_CHANGE event

2010-03-09 Thread Anthony Liguori
On 02/25/2010 09:11 AM, Luiz Capitulino wrote: Emitted whenever the RTC time changes. Signed-off-by: Luiz Capitulinolcapitul...@redhat.com Applied. Thanks. Regards, Anthony Liguori --- QMP/qmp-events.txt | 15 +++ hw/mc146818rtc.c |2 ++ monitor.c |

Re: [Qemu-devel] Re: Need a way disable gPXE boot

2010-03-09 Thread Richard W.M. Jones
On Wed, Nov 18, 2009 at 09:19:53PM +0100, Sebastian Herbszt wrote: Theodore Ts'o wrote: [snip] I was ultimately able to work around the solution by deleting the /usr/local/share/qemu/pxe-*.bin files, but that's a bit of a botch. It would be nice if there was a way to disable the gPXE boot

Re: [Qemu-devel] [PATCH] QMP: Introduce RTC_CHANGE event

2010-03-09 Thread Anthony Liguori
On 02/25/2010 09:11 AM, Luiz Capitulino wrote: Emitted whenever the RTC time changes. Signed-off-by: Luiz Capitulinolcapitul...@redhat.com Not that this change isn't acceptable, but I think we need to improve how we handle these events in the future. --- QMP/qmp-events.txt | 15

Re: [Qemu-devel] [PATCH] adding helper pci functions

2010-03-09 Thread Anthony Liguori
On 02/25/2010 02:41 AM, Gerd Hoffmann wrote: From: Izik Eidusiei...@redhat.com Signed-off-by: Izik Eidusiei...@redhat.com Signed-off-by: Gerd Hoffmannkra...@redhat.com Applied. Thanks. Regards, Anthony Liguori --- hw/pci.h | 18 ++ 1 files changed, 18

Re: [Qemu-devel] Summer of Code 2010

2010-03-09 Thread Johannes Schindelin
Hi, On Tue, 9 Mar 2010, Luiz Capitulino wrote: On Tue, 9 Mar 2010 10:31:23 +0100 (CET) Johannes Schindelin johannes.schinde...@gmx.de wrote: On Mon, 8 Mar 2010, Luiz Capitulino wrote: Google has this wonderful program called Summer of Code, in which open source projects like

Re: [Qemu-devel] [PATCH v2 1/2] qdev: Improve diagnostics for bad property values

2010-03-09 Thread Anthony Liguori
On 02/26/2010 08:50 AM, Markus Armbruster wrote: Property vlan reports failed to parse even when the value parses just fine, but the result doesn't name an existing VLAN. Similarly, properties drive, chr and netdev misleadingly report failed to parse when the value doesn't name an existing host

Re: [Qemu-devel] [PATCH v2 1/4] kbd leds: infrastructure

2010-03-09 Thread Anthony Liguori
On 02/26/2010 10:17 AM, Gerd Hoffmann wrote: Adds infrastructure for keyboard led status tracking to qemu. Signed-off-by: Gerd Hoffmannkra...@redhat.com Applied. Thanks. Regards, Anthony Liguori --- console.h | 15 +++ input.c | 31 +++

[Qemu-devel] Re: virtio: Add memory statistics reporting to the balloon driver (V8)

2010-03-09 Thread Luiz Capitulino
On Tue, 09 Mar 2010 08:48:43 -0600 Adam Litke a...@us.ibm.com wrote: On Tue, 2010-03-09 at 11:22 -0300, Luiz Capitulino wrote: On Tue, 09 Mar 2010 14:51:31 +0100 Juan Quintela quint...@redhat.com wrote: Any recompilation/etc would break migration. I have tried to understand what

Re: [Qemu-devel] [PATCH RFC] net: add a flag to disable mac/vlan filtering

2010-03-09 Thread Alex Williamson
On Tue, 2010-03-09 at 08:43 -0600, Anthony Liguori wrote: On 03/09/2010 07:15 AM, Michael S. Tsirkin wrote: New bridge in linux 2.6.34 adds IGMP snooping support, after which bridge should not normally flood any packets. While we still need mac table to arm forwarding tables after

Re: [Qemu-devel] [PATCH RFC] net: add a flag to disable mac/vlan filtering

2010-03-09 Thread Michael S. Tsirkin
On Tue, Mar 09, 2010 at 08:43:12AM -0600, Anthony Liguori wrote: On 03/09/2010 07:15 AM, Michael S. Tsirkin wrote: New bridge in linux 2.6.34 adds IGMP snooping support, after which bridge should not normally flood any packets. While we still need mac table to arm forwarding tables after

Re: [Qemu-devel] [PATCH 04/17] virtio-9p: Implement P9_TSTAT

2010-03-09 Thread Paul Brook
Is there any reason (other than being coding style) in using qemu_free() instead of free()? As per qem-malloc.c qemu_free() is nothing but free(). The whole point of qemu_{malloc,free} is to isolate code from the system implementation of malloc/free. It's entirely possible that future

Re: [Qemu-devel] Summer of Code 2010

2010-03-09 Thread Anthony Liguori
On 03/08/2010 02:20 PM, Luiz Capitulino wrote: Hi there, Google has this wonderful program called Summer of Code, in which open source projects like ours, suggest possible projects and provide mentors to help selected students to do them. It's a great opportunity for students to get in

Re: [Qemu-devel] [PATCH] scsi: Make device scsi-disk reject /dev/sg*

2010-03-09 Thread Anthony Liguori
On 02/25/2010 04:23 AM, Markus Armbruster wrote: You're supposed to use scsi-generic for that. Which rejects anything but /dev/sg*. Signed-off-by: Markus Armbrusterarm...@redhat.com --- Applied. Thanks. Regards, Anthony Liguori hw/scsi-disk.c |5 + 1 files changed, 5

[Qemu-devel] Re: [PATCH RFC] net: add a flag to disable mac/vlan filtering

2010-03-09 Thread Alex Williamson
On Tue, 2010-03-09 at 15:15 +0200, Michael S. Tsirkin wrote: diff --git a/hw/virtio-net.c b/hw/virtio-net.c index 5c0093e..01b45ed 100644 --- a/hw/virtio-net.c +++ b/hw/virtio-net.c @@ -47,6 +47,7 @@ typedef struct VirtIONet uint8_t nomulti; uint8_t nouni; uint8_t nobcast;

Re: [Qemu-devel] [PATCH] pcnet APROMWE bit location (retry)

2010-03-09 Thread Anthony Liguori
On 02/24/2010 12:32 AM, Chris Kilgour wrote: According to AMD document 21485D pp.141, APROMWE is bit 8 of BCR2. Signed-off-by: Christopher Kilgourtec...@whiterocker.com Applied. Thanks. Regards, Anthony Liguori --- diff --git a/hw/pcnet.c b/hw/pcnet.c index 44b5b31..f889898 100644 ---

Re: [Qemu-devel] [PATCH] adding helper pci functions

2010-03-09 Thread Anthony Liguori
On 02/25/2010 02:41 AM, Gerd Hoffmann wrote: From: Izik Eidusiei...@redhat.com Signed-off-by: Izik Eidusiei...@redhat.com Signed-off-by: Gerd Hoffmannkra...@redhat.com Applied. Thanks. Regards, Anthony Liguori --- hw/pci.h | 18 ++ 1 files changed, 18

[Qemu-devel] Re: [PATCH] Inter-VM shared memory PCI device

2010-03-09 Thread Avi Kivity
On 03/08/2010 07:57 PM, Cam Macdonell wrote: Can you provide a spec that describes the device? This would be useful for maintaining the code, writing guest drivers, and as a framework for review. I'm not sure if you want the Qemu command-line part as part of the spec here, but I've

[Qemu-devel] [PATCH] Inter-VM shared memory PCI device

2010-03-09 Thread Cam Macdonell
On Tue, Mar 9, 2010 at 3:29 AM, Avi Kivity a...@redhat.com wrote: On 03/08/2010 07:57 PM, Cam Macdonell wrote: Can you provide a spec that describes the device?  This would be useful for maintaining the code, writing guest drivers, and as a framework for review. I'm not sure if you want

Re: [Qemu-devel] Summer of Code 2010

2010-03-09 Thread Luiz Capitulino
On Mon, 8 Mar 2010 23:53:19 +0100 Alexander Graf ag...@suse.de wrote: On 08.03.2010, at 21:20, Luiz Capitulino wrote: Hi there, Google has this wonderful program called Summer of Code, in which open source projects like ours, suggest possible projects and provide mentors to

[Qemu-devel] Re: virtio-serial NULL deference

2010-03-09 Thread Amit Shah
On (Tue) Mar 09 2010 [14:15:45], Juan Quintela wrote: Hi Amit Hey Juan, Checking migration, I just found this problem: I don't know what to put there. a return -EINVAL or continue? Looking more at the code, I am not sure what checks: a- that bus-max_nr_ports is the same in both sides

Re: [Qemu-devel] Summer of Code 2010

2010-03-09 Thread Luiz Capitulino
On Tue, 9 Mar 2010 10:31:23 +0100 (CET) Johannes Schindelin johannes.schinde...@gmx.de wrote: Hi, On Mon, 8 Mar 2010, Luiz Capitulino wrote: Google has this wonderful program called Summer of Code, in which open source projects like ours, suggest possible projects and provide mentors

[Qemu-devel] Re: [PATCH RFC] net: add a flag to disable mac/vlan filtering

2010-03-09 Thread Michael S. Tsirkin
On Tue, Mar 09, 2010 at 08:19:12AM -0700, Alex Williamson wrote: On Tue, 2010-03-09 at 15:15 +0200, Michael S. Tsirkin wrote: diff --git a/hw/virtio-net.c b/hw/virtio-net.c index 5c0093e..01b45ed 100644 --- a/hw/virtio-net.c +++ b/hw/virtio-net.c @@ -47,6 +47,7 @@ typedef struct

Re: [Qemu-devel] KVM call agenda for Mar 9

2010-03-09 Thread Anthony Liguori
On 03/09/2010 07:44 AM, Luiz Capitulino wrote: On Mon, 8 Mar 2010 22:29:55 -0800 Chris Wrightchr...@redhat.com wrote: - virtio-9p passthrough filesystem support - modular command line helpers Please send in any additional agenda items you are interested in covering. - Summer of

[Qemu-devel] [PATCH RFC] net: add a flag to disable mac/vlan filtering

2010-03-09 Thread Michael S. Tsirkin
New bridge in linux 2.6.34 adds IGMP snooping support, after which bridge should not normally flood any packets. While we still need mac table to arm forwarding tables after migration, we can thus ignore it for rx datapath. For vlan, it's possible to do filtering down the stack simply by using

Re: [Qemu-devel] [PATCH v2 1/2] qdev: Improve diagnostics for bad property values

2010-03-09 Thread Anthony Liguori
On 02/26/2010 08:50 AM, Markus Armbruster wrote: Property vlan reports failed to parse even when the value parses just fine, but the result doesn't name an existing VLAN. Similarly, properties drive, chr and netdev misleadingly report failed to parse when the value doesn't name an existing host

Re: [Qemu-devel] Regression: more 0.12 regression (SeaBIOS related?)

2010-03-09 Thread Natalia Portillo
*NeXTStep/OpenStep bootloader hangs (Darwin not tested but may be also). *ScanDisk does not receive keypresses (any at all). *Windows Me's DOS Microsoft Mouse driver hangs the machine. *PS/2 mouse not working under Windows Me installation. *Windows Me blue screens after installation. A good

Re: [Qemu-devel] Summer of Code 2010

2010-03-09 Thread Natalia Portillo
Nice :-). I'd love to mentor. We have a lot of open things to do in the PPC space, but I could just as well use help with finally getting x86 Mac OS X guest support upstream ;-). So who's sending out the actual project application? I'd feel odd if I'd do it. I hope that with native EFI

Re: [Qemu-devel] Summer of Code 2010

2010-03-09 Thread Natalia Portillo
Qemu towards what xnu expects -- that's what I called Mac's memory space. Of course is not only memory, the SMU, TPM module, anything it will search for without hacking. (If you need testing comment me I have every x86 versions that is outside of Apple and nVidia, and hardware access to

[Qemu-devel] Re: [PATCH RFC] net: add a flag to disable mac/vlan filtering

2010-03-09 Thread Michael S. Tsirkin
On Tue, Mar 09, 2010 at 05:30:31PM +0200, Michael S. Tsirkin wrote: On Tue, Mar 09, 2010 at 08:19:12AM -0700, Alex Williamson wrote: On Tue, 2010-03-09 at 15:15 +0200, Michael S. Tsirkin wrote: diff --git a/hw/virtio-net.c b/hw/virtio-net.c index 5c0093e..01b45ed 100644 ---

Re: [Qemu-devel] [PATCH v2 1/4] kbd leds: infrastructure

2010-03-09 Thread Paul Brook
On 02/26/2010 10:17 AM, Gerd Hoffmann wrote: Adds infrastructure for keyboard led status tracking to qemu. Signed-off-by: Gerd Hoffmannkra...@redhat.com Applied. Thanks. What about guests that use the capslock LED for something useful, instead of capslock? Paul

Re: [Qemu-devel] Summer of Code 2010

2010-03-09 Thread Natalia Portillo
http://wiki.qemu.org/Google_Summer_of_Code_2010 This is a start. El 09/03/2010, a las 14:14, Anthony Liguori escribió: On 03/08/2010 02:20 PM, Luiz Capitulino wrote: Hi there, Google has this wonderful program called Summer of Code, in which open source projects like ours, suggest

Re: [Qemu-devel] [PATCH 04/17] virtio-9p: Implement P9_TSTAT

2010-03-09 Thread jvrao
Paul Brook wrote: Is there any reason (other than being coding style) in using qemu_free() instead of free()? As per qem-malloc.c qemu_free() is nothing but free(). The whole point of qemu_{malloc,free} is to isolate code from the system implementation of malloc/free. It's entirely

Re: [Qemu-devel] Summer of Code 2010

2010-03-09 Thread Natalia Portillo
El 09/03/2010, a las 15:56, Alexander Graf escribió: On 09.03.2010, at 16:50, Natalia Portillo wrote: Qemu towards what xnu expects -- that's what I called Mac's memory space. Of course is not only memory, the SMU, TPM module, anything it will search for without hacking. (If you need

[Qemu-devel] [PATCH] vnc: add noledsync option

2010-03-09 Thread Gerd Hoffmann
Add an option to disable syncing capslock/numlock leds state with capslock/numlock keyboard state. Needed for guests which use the keyboard leds for something else. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- vnc.c | 10 -- vnc.h |1 + 2 files changed, 9 insertions(+), 2

[Qemu-devel] Re: [PATCH RFC] net: add a flag to disable mac/vlan filtering

2010-03-09 Thread Alex Williamson
On Tue, 2010-03-09 at 17:30 +0200, Michael S. Tsirkin wrote: On Tue, Mar 09, 2010 at 08:19:12AM -0700, Alex Williamson wrote: On Tue, 2010-03-09 at 15:15 +0200, Michael S. Tsirkin wrote: diff --git a/hw/virtio-net.c b/hw/virtio-net.c index 5c0093e..01b45ed 100644 --- a/hw/virtio-net.c

[Qemu-devel] Re: [PATCH RFC] net: add a flag to disable mac/vlan filtering

2010-03-09 Thread Michael S. Tsirkin
On Tue, Mar 09, 2010 at 09:11:33AM -0700, Alex Williamson wrote: On Tue, 2010-03-09 at 17:30 +0200, Michael S. Tsirkin wrote: On Tue, Mar 09, 2010 at 08:19:12AM -0700, Alex Williamson wrote: On Tue, 2010-03-09 at 15:15 +0200, Michael S. Tsirkin wrote: diff --git a/hw/virtio-net.c

[Qemu-devel] Re: [PATCH] Inter-VM shared memory PCI device

2010-03-09 Thread Cam Macdonell
On Tue, Mar 9, 2010 at 6:03 AM, Avi Kivity a...@redhat.com wrote: On 03/09/2010 02:49 PM, Arnd Bergmann wrote: On Monday 08 March 2010, Cam Macdonell wrote: enum ivshmem_registers {     IntrMask = 0,     IntrStatus = 2,     Doorbell = 4,     IVPosition = 6,     IVLiveList = 8 }; The

Re: [Qemu-devel] Summer of Code 2010

2010-03-09 Thread malc
On Tue, 9 Mar 2010, Alexander Graf wrote: On 09.03.2010, at 16:50, Natalia Portillo wrote: Qemu towards what xnu expects -- that's what I called Mac's memory space. Of course is not only memory, the SMU, TPM module, anything it will search for without hacking. (If you need

Re: [Qemu-devel] [PATCH] configure: Fix code which creates config.mak files

2010-03-09 Thread Anthony Liguori
On 03/01/2010 03:20 PM, Stefan Weil wrote: These files are created by configure and grow unnecessarily at each new call of configure: roms/seabios/config.mak roms/vgabios/config.mak libhw32/config.mak libhw64/config.mak libhw32/config.mak and libhw64/config.mak set compiler options, and the

Re: [Qemu-devel] [PATCH] qemu-img rebase: Add -f option

2010-03-09 Thread Anthony Liguori
On 03/02/2010 05:14 AM, Kevin Wolf wrote: Allow the user to specify the format of the image to rebase. Signed-off-by: Kevin Wolfkw...@redhat.com Applied. Thanks. Regards, Anthony Liguori --- qemu-img.c | 20 1 files changed, 16 insertions(+), 4 deletions(-)

[Qemu-devel] [PATCH] QEMU-KVM missing bits for E820 handling.

2010-03-09 Thread Jes Sorensen
Hi, This is the last piece needed for QEMU-KVM to match the changes that went into upstream QEMU. Cheers, Jes Use qemu-cfg to provide the BIOS with an optional table of e820 entries. The missing bits for qemu-kvm.git to match what qemu does. Signed-off-by: Jes Sorensen jes.soren...@redhat.com

[Qemu-devel] Re: [PATCH] Inter-VM shared memory PCI device

2010-03-09 Thread Avi Kivity
On 03/09/2010 05:27 PM, Cam Macdonell wrote: Registers are used for synchronization between guests sharing the same memory object when interrupts are supported (this requires using the shared memory server). How does the driver detect whether interrupts are supported or not?

Re: [Qemu-devel] [PATCH] use absolute URLs for .gitmodules

2010-03-09 Thread Avi Kivity
On 03/09/2010 07:08 PM, Anthony Liguori wrote: On 03/09/2010 10:38 AM, Paolo Bonzini wrote: diff --git a/.gitmodules b/.gitmodules index dd4745e..5217ce7 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ [submodule roms/vgabios] path = roms/vgabios -url = ../vgabios.git +

[Qemu-devel] Re: [PATCH] Inter-VM shared memory PCI device

2010-03-09 Thread Anthony Liguori
On 03/09/2010 11:28 AM, Avi Kivity wrote: On 03/09/2010 05:27 PM, Cam Macdonell wrote: Registers are used for synchronization between guests sharing the same memory object when interrupts are supported (this requires using the shared memory server). How does the driver detect whether

[Qemu-devel] Re: Summer of Code 2010

2010-03-09 Thread Paolo Bonzini
On 03/09/2010 05:01 PM, Natalia Portillo wrote: Documenting QEMU's hardware model may be also a good idea for GSoC2010, as most complains about contributing QEMU are precisely that, having to study the whole code to know how to make anything new. Unfortunately, documentation-only projects are

[Qemu-devel] Re: [PATCH] Inter-VM shared memory PCI device

2010-03-09 Thread Cam Macdonell
On Tue, Mar 9, 2010 at 10:28 AM, Avi Kivity a...@redhat.com wrote: On 03/09/2010 05:27 PM, Cam Macdonell wrote:  Registers are used for synchronization between guests sharing the same memory object when interrupts are supported (this requires using the shared memory server). How does the

Re: [Qemu-devel] Re: Summer of Code 2010

2010-03-09 Thread Johannes Schindelin
Hi, On Tue, 9 Mar 2010, Paolo Bonzini wrote: On 03/09/2010 05:01 PM, Natalia Portillo wrote: Documenting QEMU's hardware model may be also a good idea for GSoC2010, as most complains about contributing QEMU are precisely that, having to study the whole code to know how to make anything

Re: [Qemu-devel] Summer of Code 2010

2010-03-09 Thread Jamie Lokier
Johannes Schindelin wrote: Hi, On Tue, 9 Mar 2010, Luiz Capitulino wrote: On Tue, 9 Mar 2010 10:31:23 +0100 (CET) Johannes Schindelin johannes.schinde...@gmx.de wrote: On Mon, 8 Mar 2010, Luiz Capitulino wrote: Google has this wonderful program called Summer of Code, in

[Qemu-devel] [PATCH] balloon: Do not save VM state wrt asynchronous virtio operations

2010-03-09 Thread Adam Litke
When working with the VM state (for loadvm/savevm and migration), it is not valid to load and store pointers since the validity of those pointers cannot be assured in the new qemu address space. Therefore, virtio_balloon_save() and virtio_balloon_load() must not handle the stats-related fields in

Re: [Qemu-devel] [PATCH] Inter-VM shared memory PCI device

2010-03-09 Thread Jamie Lokier
Paul Brook wrote: However, coherence could be made host-type-independent by the host mapping and unampping pages, so that each page is only mapped into one guest (or guest CPU) at a time. Just like some clustering filesystems do to maintain coherence. You're assuming that a TLB flush

Re: [Qemu-devel] Re: bs-enable_write_cache and the guest ABI

2010-03-09 Thread Jamie Lokier
Avi Kivity wrote: On 03/09/2010 01:00 AM, Jamie Lokier wrote: Avi Kivity wrote: I think we have to go with a qdev property as Christoph suggests. Then it becomes the management's responsibility to set it right. How can the management be expected to know or follow dynamically

Re: [Qemu-devel] virtio block device and sysfs

2010-03-09 Thread jvrao
Marc Haber wrote: Hi, thanks for your answer. On Mon, Mar 08, 2010 at 05:17:03PM -0800, jvrao wrote: Marc Haber wrote: I am looking to get in touch with somebody who knows more about the connection between host configuration, qemu, kvm, and the virtio block device driver guest side than

Re: [Qemu-devel] [PATCH] Inter-VM shared memory PCI device

2010-03-09 Thread Jamie Lokier
Avi Kivity wrote: On 03/08/2010 03:03 PM, Paul Brook wrote: On 03/08/2010 12:53 AM, Paul Brook wrote: Support an inter-vm shared memory device that maps a shared-memory object as a PCI device in the guest. This patch also supports interrupts between guest by communicating over a unix

Re: [Qemu-devel] [PATCH] Inter-VM shared memory PCI device

2010-03-09 Thread Jamie Lokier
Paul Brook wrote: On 03/08/2010 12:53 AM, Paul Brook wrote: Support an inter-vm shared memory device that maps a shared-memory object as a PCI device in the guest. This patch also supports interrupts between guest by communicating over a unix domain socket. This patch applies to

Re: [Qemu-devel] virtio block device and sysfs

2010-03-09 Thread Marc Haber
Hi, On Tue, Mar 09, 2010 at 12:04:39PM -0800, jvrao wrote: Here is the patch for the guest kernel. http://patchwork.kernel.org/patch/83873/ Thanks, the comment explained it for me. Are all those relevant patches in git head of qemu, so that I can actually try? Will it be necessary to adapt

Re: [Qemu-devel] virtio block device and sysfs

2010-03-09 Thread Anthony Liguori
On 03/06/2010 04:42 PM, Marc Haber wrote: Hi, I am looking to get in touch with somebody who knows more about the connection between host configuration, qemu, kvm, and the virtio block device driver guest side than I know. My goal is to have a possibility to give a speaking name to any block

Re: [Qemu-devel] [PATCH] Inter-VM shared memory PCI device

2010-03-09 Thread Anthony Liguori
On 03/08/2010 07:16 AM, Avi Kivity wrote: On 03/08/2010 03:03 PM, Paul Brook wrote: On 03/08/2010 12:53 AM, Paul Brook wrote: Support an inter-vm shared memory device that maps a shared-memory object as a PCI device in the guest. This patch also supports interrupts between guest by

[Qemu-devel] [PATCH 9/9] rename IOCanRWHandler to IOCanReadHandler

2010-03-09 Thread Juan Quintela
It was always only used for reads Signed-off-by: Juan Quintela quint...@redhat.com --- qemu-char.c |4 ++-- qemu-char.h |8 qemu-common.h |2 +- vl.c |6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index

[Qemu-devel] [PATCH 6/9] bt: remove bt_host_read_poll()

2010-03-09 Thread Juan Quintela
It allways returned true, that is the equivalent of not having the callback. Signed-off-by: Juan Quintela quint...@redhat.com --- bt-host.c |9 + 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/bt-host.c b/bt-host.c index 964ac11..dcd302b 100644 --- a/bt-host.c +++

[Qemu-devel] [PATCH 7/9] Introduce qemu_set_fd_poll_handler()

2010-03-09 Thread Juan Quintela
Patch consist: s/qemu_set_fd_handler2(fd, poll, read, NULL, o)/ qemu_set_fd_poll_handler(fd, poll, read, o)/ Signed-off-by: Juan Quintela quint...@redhat.com --- qemu-char.c | 18 +- qemu-char.h |4 vl.c| 16 3 files changed, 29

[Qemu-devel] [PATCH 1/9] Convert io handlers to QLIST

2010-03-09 Thread Juan Quintela
Signed-off-by: Juan Quintela quint...@redhat.com --- vl.c | 35 ++- 1 files changed, 14 insertions(+), 21 deletions(-) diff --git a/vl.c b/vl.c index 10d8e34..83ff652 100644 --- a/vl.c +++ b/vl.c @@ -2597,10 +2597,12 @@ typedef struct IOHandlerRecord {

[Qemu-devel] Re: [PATCH 5/9] Introduce qemu_set_fd_rw_handler()

2010-03-09 Thread Juan Quintela
Juan Quintela quint...@redhat.com wrote: Patch consist: diff --git a/aio.c b/aio.c index f164a47..4185233 100644 --- a/aio.c +++ b/aio.c @@ -93,7 +93,7 @@ int qemu_aio_set_fd_handler(int fd, node-opaque = opaque; } -qemu_set_fd_handler2(fd, NULL, io_read, io_write,

[Qemu-devel] [PATCH 3/9] Introduce qemu_set_fd_read_handler()

2010-03-09 Thread Juan Quintela
Patch consist: s/qemu_set_fd_handler(fd, read, NULL, o)/ qemu_set_fd_read_handler(fd, read, o)/ s/qemu_set_fd_handler2(fd, NULL, read, NULL, o)/ qemu_set_fd_read_handler(fd, read, o)/ Signed-off-by: Juan Quintela quint...@redhat.com --- audio/alsaaudio.c |4 ++-- audio/ossaudio.c

[Qemu-devel] [PATCH 1/3] block-qcow2: keep highest allocated offset

2010-03-09 Thread Luiz Capitulino
From: Uri Lublin u...@redhat.com We want to know the highest allocated offset for qcow2 images. It can be useful for allocating more diskspace for an image (e.g. an lvm logical volume) before we run out-of-disk-space. In this version image refcount table is not scanned. Also highest-alloc is

[Qemu-devel] [PATCH 0/3]: BLOCK_WATERMARK QMP event

2010-03-09 Thread Luiz Capitulino
Hi, This series is based on a previous series submitted by Uri Lublin: http://lists.gnu.org/archive/html/qemu-devel/2009-03/msg00864.html Details on the patches, except for this question: does it make sense to have a 'low' watermark for block devices? I think it doesn't, then the event

[Qemu-devel] [PATCH 2/3] monitor: Introduce block_watermark command

2010-03-09 Thread Luiz Capitulino
This command sets a watermark value for a device. The next commit will add the BLOCK_WATERMARK event, which is emitted when this value is reached. Please, note that currently only the 'high' watermark value is supported. Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- block.c

[Qemu-devel] [PATCH 3/3] QMP: Introduce BLOCK_WATERMARK event

2010-03-09 Thread Luiz Capitulino
Emitted whenever the watermark value set by the Monitor 'block_watermark' command is reached. This value is not permanently stored and it's automatically set to zero when the event is emitted. Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- QMP/qmp-events.txt | 26

Re: [Qemu-devel] [PATCH 0/3]: BLOCK_WATERMARK QMP event

2010-03-09 Thread Anthony Liguori
On 03/09/2010 04:53 PM, Luiz Capitulino wrote: Hi, This series is based on a previous series submitted by Uri Lublin: http://lists.gnu.org/archive/html/qemu-devel/2009-03/msg00864.html Details on the patches, except for this question: does it make sense to have a 'low' watermark for

Re: [Qemu-devel] [PATCH 0/3]: BLOCK_WATERMARK QMP event

2010-03-09 Thread Anthony Liguori
On 03/09/2010 04:53 PM, Luiz Capitulino wrote: Hi, This series is based on a previous series submitted by Uri Lublin: http://lists.gnu.org/archive/html/qemu-devel/2009-03/msg00864.html Details on the patches, except for this question: does it make sense to have a 'low' watermark for

[Qemu-devel] [PATCH 0/2] Migration fixes

2010-03-09 Thread Juan Quintela
This series: - fix 100% cpu use when incoming migration fails - makes unix migration to obey autostart, like the others Please, apply Juan Quintela (2): migration: Clear fd also in error cases migration: unix migration should obey autostart are the other ones migration-exec.c |4 ++--

[Qemu-devel] [PATCH 1/2] migration: Clear fd also in error cases

2010-03-09 Thread Juan Quintela
Not clearing the fd and closing the file makes qemu spin using 100%CPU after incoming migration error. See for instance bug: https://bugzilla.redhat.com/show_bug.cgi?id=518032 Signed-off-by: Juan Quintela quint...@redhat.com --- migration-exec.c |4 ++-- migration-fd.c |4 ++--

[Qemu-devel] [PATCH 2/2] migration: unix migration should obey autostart are the other ones

2010-03-09 Thread Juan Quintela
This was the only incoming migration without autostart check Signed-off-by: Juan Quintela quint...@redhat.com --- migration-unix.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/migration-unix.c b/migration-unix.c index ce59a2a..49de1b9 100644 --- a/migration-unix.c

[Qemu-devel] [PATCH 0/9] Clear fd handlers

2010-03-09 Thread Juan Quintela
Hi This series : - convert io_handlers to one QLIST - once there, qemu_set_fd_handlers2() has lots of arguments that are a lot of times NULL. Introduce a set of functions to not have to pass NULL values. - qemu_clear_fd_handlers(): remove it - qemu_set_fd_read_handler(): only read -

[Qemu-devel] [PATCH 8/9] remove useless cast

2010-03-09 Thread Juan Quintela
values are alread pointers, no need to cast them to void * Signed-off-by: Juan Quintela quint...@redhat.com --- migration-exec.c |2 +- migration-fd.c |3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/migration-exec.c b/migration-exec.c index 76518a6..fddbd70

Re: [Qemu-devel] [PATCH 0/3]: BLOCK_WATERMARK QMP event

2010-03-09 Thread Luiz Capitulino
On Tue, 9 Mar 2010 20:22:03 -0300 Luiz Capitulino lcapitul...@redhat.com wrote: On Tue, 09 Mar 2010 17:08:33 -0600 Anthony Liguori anth...@codemonkey.ws wrote: On 03/09/2010 04:53 PM, Luiz Capitulino wrote: Hi, This series is based on a previous series submitted by Uri Lublin:

Re: [Qemu-devel] [PATCH 0/3]: BLOCK_WATERMARK QMP event

2010-03-09 Thread Anthony Liguori
On 03/09/2010 05:22 PM, Luiz Capitulino wrote: On Tue, 09 Mar 2010 17:08:33 -0600 Anthony Liguorianth...@codemonkey.ws wrote: On 03/09/2010 04:53 PM, Luiz Capitulino wrote: Hi, This series is based on a previous series submitted by Uri Lublin:

Re: [Qemu-devel] [PATCH 0/3]: BLOCK_WATERMARK QMP event

2010-03-09 Thread Anthony Liguori
On 03/09/2010 05:25 PM, Luiz Capitulino wrote: Also note that this applies for other events and if this becomes the standard mode of operation, the end result is that we're delegating event generation for the management tools. We will end up with hundreds of events if we implement this

Re: [Qemu-devel] [PATCH 0/9] Clear fd handlers

2010-03-09 Thread Anthony Liguori
On 03/09/2010 05:53 PM, malc wrote: On Tue, 9 Mar 2010, Juan Quintela wrote: Hi This series : - convert io_handlers to one QLIST - once there, qemu_set_fd_handlers2() has lots of arguments that are a lot of times NULL. Introduce a set of functions to not have to pass NULL values. -

Re: [Qemu-devel] [PATCH] Inter-VM shared memory PCI device

2010-03-09 Thread Paul Brook
In a cross environment that becomes extremely hairy. For example the x86 architecture effectively has an implicit write barrier before every store, and an implicit read barrier before every load. Btw, x86 doesn't have any implicit barriers due to ordinary loads. Only stores and atomics

[Qemu-devel] Re: [PATCH 0/9] Clear fd handlers

2010-03-09 Thread Juan Quintela
Anthony Liguori anth...@codemonkey.ws wrote: On 03/09/2010 05:53 PM, malc wrote: On Tue, 9 Mar 2010, Juan Quintela wrote: - convert io_handlers to one QLIST This part removes lines :) - once there fix bt that don't need poll at all (having a poll function that always return true is the

  1   2   >