Re: [Qemu-devel] Template for developing a Qemu device with?PCIe?and MSI-X

2010-08-27 Thread Isaku Yamahata
On Thu, Aug 26, 2010 at 01:17:38PM -0500, Adnan Khaleel wrote: You also want to catch up pci api clean up. pci_{set, get}_{byte, word, long, quad}(), pci_config_set_vendor() ... Are you referring to the setting up of the config registers where we pass on the vendor id and device

Re: [Qemu-devel] [PATCH 3/5] HACKING: add memory management rules

2010-08-27 Thread Kevin Wolf
Am 26.08.2010 20:38, schrieb Blue Swirl: Add memory management rules, somewhat like libvirt HACKING. Signed-off-by: Blue Swirl blauwir...@gmail.com --- HACKING | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/HACKING b/HACKING index 19fc874..554009e

Re: [Qemu-devel] [PATCH 4/5] Add generic drive hotplugging

2010-08-27 Thread Markus Armbruster
Daniel P. Berrange berra...@redhat.com writes: On Tue, Aug 24, 2010 at 03:46:14PM +0200, Alexander Graf wrote: Daniel P. Berrange wrote: On Tue, Aug 24, 2010 at 03:40:25PM +0200, Alexander Graf wrote: Daniel P. Berrange wrote: On Tue, Aug 24, 2010 at 12:45:19PM +0200,

[Qemu-devel] Re: [PATCH v3 2/3] qerror: Add a new MACHINE_STOPPED error message

2010-08-27 Thread Daniel P. Berrange
On Fri, Aug 27, 2010 at 10:57:10AM +0530, Amit Shah wrote: This error message denotes some command was not successful in completing as the guest was unresponsive. Use it in the virtio-balloon code when showing older, cached data. Signed-off-by: Amit Shah amit.s...@redhat.com ---

Re: [Qemu-devel] [PATCH 4/5] Add generic drive hotplugging

2010-08-27 Thread Markus Armbruster
Alexander Graf ag...@suse.de writes: The monitor command for hotplugging is in i386 specific code. This is just plain wrong, as S390 just learned how to do hotplugging too and needs to get drives for that. So let's add a generic copy to generic code that handles drive_add in a way that

[Qemu-devel] [PATCH v4 05/10] add spice into the configure file

2010-08-27 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- configure | 35 +++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 0639b33..b391165 100755 --- a/configure +++ b/configure @@ -320,6 +320,7 @@ pkgversion=

[Qemu-devel] [PATCH v4 00/10] initial spice support.

2010-08-27 Thread Gerd Hoffmann
Hi, Here comes v4 of the iniial spice support patch series, hopefully the final version. It brings just the very basic bits: * Detect spice in configure, Makefile windup. * Support for keyboard, mouse and tablet. * Support for simple display output (works as DisplayChangeListener, plays

[Qemu-devel] [PATCH v4 02/10] Use machine_init() to register virtfs config options.

2010-08-27 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- fsdev/qemu-fsdev.c |9 + vl.c |5 - 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/fsdev/qemu-fsdev.c b/fsdev/qemu-fsdev.c index ad69b0e..280b8f5 100644 --- a/fsdev/qemu-fsdev.c +++

[Qemu-devel] [PATCH v4 07/10] spice: add keyboard

2010-08-27 Thread Gerd Hoffmann
Open keyboard channel. Now you can type into the spice client and the keyboard events are sent to your guest. You'll need some other display like vnc to actually see the guest responding to them though. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- Makefile.objs|2 +-

[Qemu-devel] [PATCH v4 01/10] Use display types for local display only.

2010-08-27 Thread Gerd Hoffmann
This patch drops DT_VNC. The display types are only used to select select the local display (i.e. curses, sdl, coca, ...). Remote displays (for now only vnc, spice will follow) can be enabled independently. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- sysemu.h |1 - vl.c | 24

[Qemu-devel] [PATCH v4 06/10] spice: core bits

2010-08-27 Thread Gerd Hoffmann
Add -spice command line switch. Has support setting passwd and port for now. With this patch applied the spice client can successfully connect to qemu. You can't do anything useful yet though. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- Makefile.objs |2 + qemu-config.c | 18

[Qemu-devel] [PATCH v4 08/10] spice: add mouse

2010-08-27 Thread Gerd Hoffmann
Open mouse channel. Now you can move the guests mouse pointer. No tablet / absolute positioning (yet) though. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- ui/spice-input.c | 49 + 1 files changed, 49 insertions(+), 0 deletions(-) diff

[Qemu-devel] [PATCH v4 10/10] spice: add tablet support

2010-08-27 Thread Gerd Hoffmann
Add support for the spice tablet interface. The tablet interface will be registered (and then used by the spice client) as soon as a absolute pointing device is available and used by the guest, i.e. you'll have to configure your guest with '-usbdevice tablet'. Signed-off-by: Gerd Hoffmann

[Qemu-devel] [PATCH v4 09/10] spice: simple display

2010-08-27 Thread Gerd Hoffmann
With that patch applied you'll actually see the guests screen in the spice client. This does *not* bring qxl and full spice support though. This is basically the qxl vga mode made more generic, so it plays together with any qemu-emulated gfx card. You can display stdvga or cirrus via spice

[Qemu-devel] [PATCH v4 04/10] configure: add logging

2010-08-27 Thread Gerd Hoffmann
Write compile commands and messages to config.log. Useful for debugging configure. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- configure |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 146dac0..0639b33 100755 --- a/configure +++

[Qemu-devel] [PATCH][Tracing v2] Process -trace using QemuOptsList

2010-08-27 Thread Prerna Saxena
[PATCH] Add -trace file FILENAME switch to qemu startup command. This processes the argument using QemuOptsList Signed-off-by: Prerna Saxena pre...@linux.vnet.ibm.com --- qemu-config.c | 18 ++ qemu-config.h |3 +++ vl.c |5 - 3 files changed, 25

[Qemu-devel] Re: [PATCH v3 2/3] qerror: Add a new MACHINE_STOPPED error message

2010-08-27 Thread Anthony Liguori
On 08/27/2010 04:29 AM, Daniel P. Berrange wrote: On Fri, Aug 27, 2010 at 10:57:10AM +0530, Amit Shah wrote: This error message denotes some command was not successful in completing as the guest was unresponsive. Use it in the virtio-balloon code when showing older, cached data.

Re: [Qemu-devel] [PATCH v4 09/10] spice: simple display

2010-08-27 Thread Anthony Liguori
On 08/27/2010 04:59 AM, Gerd Hoffmann wrote: With that patch applied you'll actually see the guests screen in the spice client. This does *not* bring qxl and full spice support though. This is basically the qxl vga mode made more generic, so it plays together with any qemu-emulated gfx card.

[Qemu-devel] Re: [PATCH v3 2/3] qerror: Add a new MACHINE_STOPPED error message

2010-08-27 Thread Daniel P. Berrange
On Fri, Aug 27, 2010 at 07:39:37AM -0500, Anthony Liguori wrote: On 08/27/2010 04:29 AM, Daniel P. Berrange wrote: On Fri, Aug 27, 2010 at 10:57:10AM +0530, Amit Shah wrote: This error message denotes some command was not successful in completing as the guest was unresponsive. Use it

Re: [Qemu-devel] Re: [PATCH v3 2/3] qerror: Add a new MACHINE_STOPPED error message

2010-08-27 Thread Markus Armbruster
Daniel P. Berrange berra...@redhat.com writes: On Fri, Aug 27, 2010 at 07:39:37AM -0500, Anthony Liguori wrote: On 08/27/2010 04:29 AM, Daniel P. Berrange wrote: On Fri, Aug 27, 2010 at 10:57:10AM +0530, Amit Shah wrote: This error message denotes some command was not successful in

[Qemu-devel] Re: [PATCH][Tracing v2] Process -trace using QemuOptsList

2010-08-27 Thread Stefan Hajnoczi
On Fri, Aug 27, 2010 at 04:53:15PM +0530, Prerna Saxena wrote: [PATCH] Add -trace file FILENAME switch to qemu startup command. This processes the argument using QemuOptsList Signed-off-by: Prerna Saxena pre...@linux.vnet.ibm.com Thanks, I will merge this for tracing v2. Stefan

Re: [Qemu-devel] Re: [PATCH v3 2/3] qerror: Add a new MACHINE_STOPPED error message

2010-08-27 Thread Luiz Capitulino
On Fri, 27 Aug 2010 15:59:21 +0200 Markus Armbruster arm...@redhat.com wrote: Daniel P. Berrange berra...@redhat.com writes: On Fri, Aug 27, 2010 at 07:39:37AM -0500, Anthony Liguori wrote: On 08/27/2010 04:29 AM, Daniel P. Berrange wrote: On Fri, Aug 27, 2010 at 10:57:10AM +0530, Amit

[Qemu-devel] [PATCH 1 of 2] Introduce a new 'connected' xendev op called when Connected.

2010-08-27 Thread Stefano Stabellini
From: John Haxby john.ha...@oracle.com Introduce a new 'connected' xendev op called when Connected. Rename the existing xendev 'connect' op to 'initialised' and introduce a new 'connected' op. This new op, if defined, is called when the backend is connected. Note that since there is no state

[Qemu-devel] [PATCH 2 of 2] Move the xenfb pointer handler to the connected method

2010-08-27 Thread Stefano Stabellini
From: John Haxby john.ha...@oracle.com Move the xenfb pointer handler to the connected method Ensure that we read request-abs-pointer after the frontend has written it. This means that we will correctly set up an ansolute or relative pointer handler correctly. Signed-off-by: John Haxby

Re: [Qemu-devel] Re: [PATCH v3 2/3] qerror: Add a new MACHINE_STOPPED error message

2010-08-27 Thread Anthony Liguori
On 08/27/2010 09:15 AM, Luiz Capitulino wrote: I wondered if we could drop it for now to make it right in 0.14, but I believe it's already part of the user monitor for some time and libvirt uses the stats, right? I think we need testing/unstable namespace in QMP, where commands can be tested

Re: [Qemu-devel] Re: Introduce a new 'connected' xendev op called when Connected.

2010-08-27 Thread Stefano Stabellini
On Mon, 23 Aug 2010, Anthony Liguori wrote: On 08/23/2010 05:21 AM, John Haxby wrote: Any reason why this (and its sister patch) were never picked up? jch It was likely missed originally because there wasn't a [PATCH] in the subject. Can you resubmit? It's not obvious to me what

Re: [Qemu-devel] [PATCH 2/4] scsi-disk: fix the mode data header returned by the MODE SENSE(10) command

2010-08-27 Thread Bernhard Kohl
Am 16.08.2010 19:02, schrieb ext Kevin Wolf: +if (bdrv_get_type_hint(s-bs) == BDRV_TYPE_CDROM || +bdrv_is_read_only(s-bs)) { This looks like a mismerge. The check for CDROMs was removed when they became read-only by definition. Please don't reintroduce it. OK, I will remove

Re: [Qemu-devel] [PATCH 4/4] scsi-disk: fix the block descriptor returned by the MODE SENSE command

2010-08-27 Thread Bernhard Kohl
Am 16.08.2010 19:34, schrieb ext Kevin Wolf: The patch itself looks okay. However, it made me wonder what this line wants to tell us: if ((~dbd) nb_sectors) { Is it just me or doesn't this make any sense at all? dbd is a single bit, 0x8 if set or 0x0 otherwise. nb_sectors is the number

Re: [Qemu-devel] Re: [PATCH v3 2/3] qerror: Add a new MACHINE_STOPPED error message

2010-08-27 Thread Daniel P. Berrange
On Fri, Aug 27, 2010 at 09:59:55AM -0500, Anthony Liguori wrote: On 08/27/2010 09:15 AM, Luiz Capitulino wrote: I wondered if we could drop it for now to make it right in 0.14, but I believe it's already part of the user monitor for some time and libvirt uses the stats, right? I think we

Re: [Qemu-devel] [PATCH 3/4] scsi-disk: fix changeable values returned by the MODE SENSE command

2010-08-27 Thread Bernhard Kohl
Am 16.08.2010 19:12, schrieb ext Kevin Wolf: @@ -654,7 +656,8 @@ static int scsi_disk_emulate_mode_sense(SCSIRequest *req, uint8_t *outbuf) p += 8; } -switch (page) { +/* Don't return pages if Changeable Values (1) are requested. */ +if (page_control != 1)

[Qemu-devel] Re: [Xen-devel] Virtualization project idea

2010-08-27 Thread Stefano Stabellini
On Fri, 27 Aug 2010, Konrad Rzeszutek Wilk wrote: I'm an engineering student and is searching for a feasible project in virtualization. I'd like to know if its possible to share USB devices (flash drive, hard disk, mouse, keyboards etc) across guests and host (VMs). Also, do you have

[Qemu-devel] [Bug 618533] Re: OpenSolaris guest fails to see the Solaris partitions of a physical disk in qemu-kvm-9999 (GIT)

2010-08-27 Thread devsk
what's the list address? All the lists at the kvm main page are for kvm only. -- OpenSolaris guest fails to see the Solaris partitions of a physical disk in qemu-kvm- (GIT) https://bugs.launchpad.net/bugs/618533 You received this bug notification because you are a member of qemu- devel-ml,

Re: [Qemu-devel] Template for developing a Qemu device with PCIe and MSI-X

2010-08-27 Thread Cam Macdonell
On Wed, Aug 25, 2010 at 4:39 PM, Adnan Khaleel ad...@khaleel.us wrote: Hi Isaku, I've made some progress in coding the device template but its no where near complete. I've created some files and am attaching it to this note. Based on what I could gather from the pcie source files I've made

[Qemu-devel] Re: [Xen-devel] Virtualization project idea

2010-08-27 Thread David Markey
Wow, good news. When are we porting our Xen stuff upstream? :) On 27 August 2010 17:51, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Fri, 27 Aug 2010, Konrad Rzeszutek Wilk wrote: I'm an engineering student and is searching for a feasible project in virtualization.

[Qemu-devel] Re: [Xen-devel] Virtualization project idea

2010-08-27 Thread Pasi Kärkkäinen
On Fri, Aug 27, 2010 at 06:01:49PM +0100, David Markey wrote: Wow, good news. When are we porting our Xen stuff upstream? :) I think that's in progress right now.. two rounds of patches already sent. -- Pasi

[Qemu-devel] vnc reverse connection segfault

2010-08-27 Thread David Weinstein
Possible bug in qemu-0.12.4 on Linux, and I think applicable to qemu-0.12.5 The VNC reverse connection option appears to be parsed correctly, however, the handling of the VncDisplay structure leads to a segfault: Command line: ./i386-softmmu/qemu -vnc ipaddress:9990,reverse -usb -monitor stdio

Re: [Qemu-devel] Re: [PATCH v3 2/3] qerror: Add a new MACHINE_STOPPED error message

2010-08-27 Thread Anthony Liguori
On 08/27/2010 11:08 AM, Luiz Capitulino wrote: It's trying to plug a sieve with a band-aid. It's certainly an improvement but it's of question utility looking at the bigger picture. Are you talking about the testing namespace idea? It doesn't have anything to do with balloon or how our

[Qemu-devel] [PATCH 0/5] virtio-net: More configurability and bh handling for tx

2010-08-27 Thread Alex Williamson
Add the ability to configure the tx_timer timeout and add a bottom half tx handler that typically shows a nice perf boost over the time based approach. See last patch for perf details. Make this the new default when the iothread is enabled. Thanks, Alex --- Alex Williamson (5):

[Qemu-devel] [PATCH 2/5] virtio-net: Limit number of packets sent per TX flush

2010-08-27 Thread Alex Williamson
If virtio_net_flush_tx is called with notification disabled, we can race with the guest, processing packets at the same rate as they get produced. The trouble is that this means we have no guaranteed exit condition from the function and can spend minutes in there. Currently flush_tx is only

[Qemu-devel] [PATCH 1/5] virtio-net: Make tx_timer timeout configurable

2010-08-27 Thread Alex Williamson
The tx_timer used for TX mitigation in virtio-net has a hard coded timeout. Make an option for this to be configurable using a txtimer=ns device config option. Note that we reserve a value of 1 to simply mean use the default, we'll later use the value 0 to disable the timer. Everything else is

[Qemu-devel] [PATCH 3/5] virtio-net: Rename tx_timer_active to tx_waiting

2010-08-27 Thread Alex Williamson
De-couple this from the timer since we might want to use different backends to send the packet. Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/virtio-net.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/hw/virtio-net.c

[Qemu-devel] [PATCH 5/5] virtio-net: Switch default to new bottom half TX handler for iothread

2010-08-27 Thread Alex Williamson
The bottom half handler shows big improvements over the timer with few downsides, default to it when the iothread is enabled. Using the following tests, with the guest and host connected via tap+bridge: guest netperf -t TCP_STREAM -H $HOST host netperf -t TCP_STREAM -H $GUEST guest netperf -t

[Qemu-devel] [PATCH 4/5] virtio-net: Introduce a new bottom half packet TX

2010-08-27 Thread Alex Williamson
Based on a patch from Mark McLoughlin, this patch introduces a new bottom half packet transmitter that avoids the latency imposed by the tx_timer approach. Rather than scheduling a timer when a TX packet comes in, schedule a bottom half to be run from the iothread. The bottom half handler first

[Qemu-devel] Re: [PATCH v3 2/3] qerror: Add a new MACHINE_STOPPED error message

2010-08-27 Thread Amit Shah
On (Fri) Aug 27 2010 [07:39:37], Anthony Liguori wrote: NACK. It has always been allowed valid to call query-balloon to get the current balloon level. We must not throw an error just because the recently added mem stats can't be refreshed. I think that's a fair comment but why even bother

Re: [Qemu-devel] webcam under windows xp guest

2010-08-27 Thread Mulyadi Santosa
On Sat, Aug 28, 2010 at 05:07, Frans de Boer fr...@fransdb.nl wrote: I run Linux, QEMU/KVM 0.12.5 and have loaded windows XP. My webcam is being recognized by Windows XP, but all I get is a black screen when I try to use it. I use the -usbdevice host:vendor:id directive. The light goes on (and