[Qemu-devel] KVM call agenda for Nov 30

2010-12-01 Thread Dor Laor
Please send in any agenda items you are interested in covering. thanks, Dor

Re: [Spice-devel] [Qemu-devel] RFC: usb redirection over the network, interesting outside of spice?

2010-12-01 Thread Gerd Hoffmann
On 11/29/10 18:49, Anthony Liguori wrote: On 11/29/2010 11:37 AM, Attila Sukosd wrote: Hi, I guess it should be abstract enough to support multiple back-ends, be it a kernel driver or through libusb? Is this something that should just live in libusb? If what libusb presented QEMU was

[Qemu-devel] Re: [PATCH 02/10] Add buffered_file_internal constant

2010-12-01 Thread Anthony Liguori
On 11/30/2010 01:15 PM, Juan Quintela wrote: Anthony Liguorianth...@codemonkey.ws wrote: On 11/30/2010 12:04 PM, Juan Quintela wrote: Anthony Liguorianth...@codemonkey.ws wrote: On 11/30/2010 10:32 AM, Juan Quintela wrote: Michael S. Tsirkinm...@redhat.com

[Qemu-devel] [Bug 587993] Re: qemu-kvm 0.12.4+dfsg-1 from debian squeeze crashes BUG: unable to handle kernel NULL pointer (sym53c8xx)

2010-12-01 Thread Jes Sorensen
Looks a duplicate of https://sourceforge.net/tracker/index.php?func=detailaid=2042889group_id=180599atid=893831 Closed the SF bug, lets focus on this issue here. Jes ** Bug watch added: SourceForge.net Tracker #2042889 http://sourceforge.net/support/tracker.php?aid=2042889 -- qemu-kvm

Re: [Spice-devel] [Qemu-devel] RFC: usb redirection over the network, interesting outside of spice?

2010-12-01 Thread Alon Levy
On Tue, Nov 30, 2010 at 12:26:56PM +0100, Hans de Goede wrote: Hi, On 11/29/2010 06:49 PM, Anthony Liguori wrote: On 11/29/2010 11:37 AM, Attila Sukosd wrote: Hi, I guess it should be abstract enough to support multiple back-ends, be it a kernel driver or through libusb? Is this

[Qemu-devel] Re: [PATCH 09/10] Exit loop if we have been there too long

2010-12-01 Thread Paolo Bonzini
On 11/30/2010 03:11 AM, Anthony Liguori wrote: BufferedFile should hit the qemu_file_rate_limit check when the socket buffer gets filled up. The problem is that the file rate limit is not hit because work is done elsewhere. The rate can limit the bandwidth used and makes QEMU aware that

[Qemu-devel] Re: Switching primary git repository to git.qemu.org

2010-12-01 Thread Blue Swirl
On Mon, Nov 29, 2010 at 8:02 PM, Anthony Liguori anth...@codemonkey.ws wrote: Savannah is down (and has been for two days) due to an intrusion that's still being investigated.  There is not ETA for when service will be restored. I'd like to propose that we that we use this as an opportunity

Re: [Qemu-devel] [PATCH 00/21] Kemari for KVM 0.2

2010-12-01 Thread Yoshiaki Tamura
2010/11/30 Anthony Liguori anth...@codemonkey.ws: On 11/29/2010 10:53 AM, Paul Brook wrote: Is this a fair summary: any device that supports live migration workw under Kemari? It might be fair summary but practically we barely have live migration working w/o Kemari. In addition, last I

[Qemu-devel] [PATCH 1/2] add qemu_ram_free_from_ptr

2010-12-01 Thread Cam Macdonell
add function to free memory from Qemu that was added via qemu_ram_alloc_from_ptr. Name is a little weird. This is copied from qemu_ram_unmap from qemu-kvm. Signed-off-by: Cam Macdonell c...@cs.ualberta.ca --- cpu-common.h |1 + exec.c | 13 + 2 files changed, 14

[Qemu-devel] Re: [PATCH 02/10] Add buffered_file_internal constant

2010-12-01 Thread Anthony Liguori
On 11/30/2010 12:04 PM, Juan Quintela wrote: Anthony Liguorianth...@codemonkey.ws wrote: On 11/30/2010 10:32 AM, Juan Quintela wrote: Michael S. Tsirkinm...@redhat.com wrote: On Tue, Nov 30, 2010 at 04:40:41PM +0100, Juan Quintela wrote: Basically our bitmap

[Qemu-devel] [PATCH 2/2] Unregister shared memory on unplug.

2010-12-01 Thread Cam Macdonell
This allows 'peer' ivshmem guests to detach from shared memory before migration and re-attach after migration is complete. Signed-off-by: Cam Macdonell c...@cs.ualberta.ca --- hw/ivshmem.c | 12 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/hw/ivshmem.c

[Qemu-devel] [PATCH] Convert fprintf() to error_request(): virtio-9p

2010-12-01 Thread Sanchit Garg
Signed-off-by: Sanchit Garg sancg...@linux.vnet.ibm.com --- hw/virtio-9p.c | 21 +++-- 1 files changed, 11 insertions(+), 10 deletions(-) diff --git a/hw/virtio-9p.c b/hw/virtio-9p.c index 7c59988..d64d05a 100644 --- a/hw/virtio-9p.c +++ b/hw/virtio-9p.c @@ -18,6 +18,7 @@

[Qemu-devel] Re: [PATCH 10/10] Maintaing number of dirty pages

2010-12-01 Thread Juan Quintela
Anthony Liguori anth...@codemonkey.ws wrote: On 11/23/2010 05:03 PM, Juan Quintela wrote: From: Juan Quintelaquint...@trasno.org Calculate the number of dirty pages takes a lot on hosts with lots of memory. Just maintain how many pages are dirty. Only sync bitmaps if number is small

[Qemu-devel] Re: [PATCH 09/21] Introduce event-tap.

2010-12-01 Thread Yoshiaki Tamura
2010/11/29 Stefan Hajnoczi stefa...@gmail.com: On Thu, Nov 25, 2010 at 6:06 AM, Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp wrote: event-tap controls when to start FT transaction, and provides proxy functions to called from net/block devices.  While FT transaction, it queues up net/block

[Qemu-devel] Re: [PATCH 02/10] Add buffered_file_internal constant

2010-12-01 Thread Juan Quintela
Anthony Liguori anth...@codemonkey.ws wrote: On 11/30/2010 12:04 PM, Juan Quintela wrote: Anthony Liguorianth...@codemonkey.ws wrote: On 11/30/2010 10:32 AM, Juan Quintela wrote: Michael S. Tsirkinm...@redhat.com wrote: On Tue, Nov 30, 2010 at 04:40:41PM +0100, Juan

[Qemu-devel] [PATCH 01/16] scsi-disk: Move active request asserts

2010-12-01 Thread Kevin Wolf
From: Stefan Hajnoczi stefa...@linux.vnet.ibm.com SCSI read/write requests should not be re-issued before the current fragment of I/O completes. There are asserts in scsi-disk.c that guard this constraint but they trigger on SPARC Linux 2.4. It turns out that the asserts are too early in the

Re: [Qemu-devel] Re: [PATCH 09/21] Introduce event-tap.

2010-12-01 Thread Yoshiaki Tamura
2010/11/30 Marcelo Tosatti mtosa...@redhat.com: On Thu, Nov 25, 2010 at 03:06:48PM +0900, Yoshiaki Tamura wrote: event-tap controls when to start FT transaction, and provides proxy functions to called from net/block devices.  While FT transaction, it queues up net/block requests, and flush

Re: [Qemu-devel] [PATCH 00/21] Kemari for KVM 0.2

2010-12-01 Thread Takuya Yoshikawa
(2010/11/30 1:41), Dor Laor wrote: Is this a fair summary: any device that supports live migration workw under Kemari? It might be fair summary but practically we barely have live migration working w/o Kemari. In addition, last I checked Kemari needs additional hooks and it will be too hard

[Qemu-devel] [PATCH 15/16] ide: Ignore double DMA transfer starts/stops

2010-12-01 Thread Kevin Wolf
You can only start a DMA transfer if it's not running yet, and you can only cancel it if it's running. Signed-off-by: Kevin Wolf kw...@redhat.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- hw/ide/pci.c | 60 ++--- 1 files

[Qemu-devel] [PATCH 11/16] scsi-disk: Remove duplicate cdb parsing

2010-12-01 Thread Kevin Wolf
From: Hannes Reinecke h...@suse.de We parse the CDB twice, which is completely unnecessary. Signed-off-by: Hannes Reinecke h...@suse.de Acked-by: Christoph Hellwig h...@lst.de Signed-off-by: Kevin Wolf kw...@redhat.com --- hw/scsi-disk.c | 74

[Qemu-devel] Re: [PATCH 08/10] Count nanoseconds with uint64_t not doubles

2010-12-01 Thread Paolo Bonzini
On 11/24/2010 12:03 AM, Juan Quintela wrote: -bwidth = qemu_get_clock_ns(rt_clock) - bwidth; -bwidth = (bytes_transferred - bytes_transferred_last) / bwidth; +t0 = qemu_get_clock_ns(rt_clock) - t0; +bwidth = (bytes_transferred - bytes_transferred_last) / t0; The result here is

[Qemu-devel] [PATCH 13/16] ide: Factor ide_dma_set_inactive out

2010-12-01 Thread Kevin Wolf
Several places that stop a DMA transfer duplicate this code. Factor it out into a common function. Signed-off-by: Kevin Wolf kw...@redhat.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- hw/ide/core.c | 29 + 1 files changed, 13 insertions(+), 16

[Qemu-devel] [PATCH 14/16] ide: Set bus master inactive on error

2010-12-01 Thread Kevin Wolf
BMIDEA in the status register must be cleared on error. This makes FreeBSD respond (more) correctly to I/O errors. Signed-off-by: Kevin Wolf kw...@redhat.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- hw/ide/core.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)

Re: [Qemu-devel] [RFC] QEMU 0.14.0 release plan

2010-12-01 Thread Kevin Wolf
Am 30.11.2010 15:12, schrieb Anthony Liguori: On 11/30/2010 04:15 AM, Kevin Wolf wrote: Am 29.11.2010 18:42, schrieb Anthony Liguori: 0.13 was a mess of a release (largely due to my lack of time) and I'd like to get us back onto a predictable schedule. Telling people six days in

[Qemu-devel] Re: [PATCH 07/10] ram_save_remaining() returns an uint64_t

2010-12-01 Thread Paolo Bonzini
On 11/30/2010 03:06 AM, Anthony Liguori wrote: -static ram_addr_t ram_save_remaining(void) +static uint64_t ram_save_remaining(void) { RAMBlock *block; -ram_addr_t count = 0; +uint64_t count = 0; QLIST_FOREACH(block,ram_list.blocks, next) { ram_addr_t addr;

[Qemu-devel] [PATCH 12/16] raw-posix: raw_pwrite comment fixup

2010-12-01 Thread Kevin Wolf
From: Christoph Hellwig h...@lst.de Signed-off-by: Christoph Hellwig h...@lst.de Signed-off-by: Kevin Wolf kw...@redhat.com --- block/raw-posix.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block/raw-posix.c b/block/raw-posix.c index d0960b8..9286fb8 100644 ---

[Qemu-devel] Re: [PATCH 08/10] Count nanoseconds with uint64_t not doubles

2010-12-01 Thread Juan Quintela
Anthony Liguori anth...@codemonkey.ws wrote: On 11/23/2010 05:03 PM, Juan Quintela wrote: From: Juan Quintelaquint...@trasno.org Signed-off-by: Juan Quintelaquint...@trasno.org Signed-off-by: Juan Quintelaquint...@redhat.com Why? I needed the precision for the timestamp. Nanoseconds

[Qemu-devel] [PATCHv3 4/6] virtio-net: stop/start bh when appropriate

2010-12-01 Thread Jason Wang
Michael S. Tsirkin writes: Avoid sending out packets, and modifying device state, when VM is stopped. Add assert statements to verify this does not happen. Avoid scheduling bh when vhost-net is started. Stop bh when driver disabled bus mastering (we must not access memory after

[Qemu-devel] [PATCH 10/16] scsi: Move sense handling into the driver

2010-12-01 Thread Kevin Wolf
From: Hannes Reinecke h...@suse.de The current sense handling in scsi-bus is only used by the scsi-disk driver; the scsi-generic driver is using its own. So we should move the current sense handling into the scsi-disk driver. Signed-off-by: Hannes Reinecke h...@suse.de Acked-by: Christoph

[Qemu-devel] Re: [PATCHv6 00/16] boot order specification

2010-12-01 Thread Gleb Natapov
On Mon, Nov 29, 2010 at 08:34:03PM -0500, Kevin O'Connor wrote: On Sun, Nov 28, 2010 at 08:47:34PM +0200, Gleb Natapov wrote: On Sun, Nov 28, 2010 at 12:15:44PM -0500, Kevin O'Connor wrote: It's unclear to me how SeaBIOS is supposed to do that. Suppose we have

[Qemu-devel] [PATCH 05/16] qemu and qemu-xen: support empty write barriers in xen_disk

2010-12-01 Thread Kevin Wolf
From: Stefano Stabellini stefano.stabell...@eu.citrix.com This patch can be applied to both qemu-xen and qemu and adds support for empty write barriers to xen_disk. Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com Acked-by: Gerd Hoffmann kra...@redhat.com Signed-off-by: Kevin

[Qemu-devel] Re: [PATCH 09/21] Introduce event-tap.

2010-12-01 Thread Stefan Hajnoczi
On Tue, Nov 30, 2010 at 9:50 AM, Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp wrote: 2010/11/29 Stefan Hajnoczi stefa...@gmail.com: On Thu, Nov 25, 2010 at 6:06 AM, Yoshiaki Tamura tamura.yoshi...@lab.ntt.co.jp wrote: event-tap controls when to start FT transaction, and provides proxy

[Qemu-devel] [PATCH v8 1/7] virtio-console: Factor out common init between console and generic ports

2010-12-01 Thread Amit Shah
The initialisation for generic ports and console ports is similar. Factor out the parts that are the same in a different function that can be called from each of the initfns. Signed-off-by: Amit Shah amit.s...@redhat.com --- hw/virtio-console.c | 31 ++- 1 files

[Qemu-devel] Re: [PATCH 02/10] Add buffered_file_internal constant

2010-12-01 Thread Juan Quintela
Michael S. Tsirkin m...@redhat.com wrote: On Tue, Nov 30, 2010 at 04:40:41PM +0100, Juan Quintela wrote: Basically our bitmap handling code is exponential on memory size, I didn't realize this. What makes it exponential? Well, 1st of all, it is exponential as you measure it. stalls by

[Qemu-devel] [PATCH v8 7/7] virtio-console: Enable port throttling when chardev is slow to consume data

2010-12-01 Thread Amit Shah
When a chardev indicates it can't accept more data, we tell the virtio-serial code to stop sending us any more data till we tell otherwise. This helps in guests continuing to run normally while the vq keeps getting full and eventually the guest stops queueing more data. As soon as the chardev

Re: [Qemu-devel] [PATCHv2 2/6] cpus: flush all requests on each vm stop

2010-12-01 Thread Michael S. Tsirkin
On Tue, Nov 30, 2010 at 11:46:48AM -0200, Marcelo Tosatti wrote: On Tue, Nov 30, 2010 at 03:34:29PM +0200, Michael S. Tsirkin wrote: On Tue, Nov 30, 2010 at 10:45:40AM -0200, Marcelo Tosatti wrote: On Wed, Nov 24, 2010 at 05:52:58PM +0200, Michael S. Tsirkin wrote: Make sure disk is in

[Qemu-devel] Re: [PATCH 02/10] Add buffered_file_internal constant

2010-12-01 Thread Michael S. Tsirkin
On Tue, Nov 30, 2010 at 04:40:41PM +0100, Juan Quintela wrote: Basically our bitmap handling code is exponential on memory size, I didn't realize this. What makes it exponential?

Re: [Qemu-devel] [PATCHv3 4/6] virtio-net: stop/start bh when appropriate

2010-12-01 Thread Michael S. Tsirkin
On Wed, Dec 01, 2010 at 01:45:09PM +0800, Jason Wang wrote: Michael S. Tsirkin writes: Avoid sending out packets, and modifying device state, when VM is stopped. Add assert statements to verify this does not happen. Avoid scheduling bh when vhost-net is started. Stop bh

[Qemu-devel] [PATCH 2/3] piix: tag as not hotpluggable.

2010-12-01 Thread Gerd Hoffmann
This patch tags all pci devices which belong to the piix3/4 chipsets as not hotpluggable (Host bridge, ISA bridge, IDE controller, ACPI bridge). Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/acpi_piix4.c |2 ++ hw/ide/piix.c |2 ++ hw/piix4.c |1 + hw/piix_pci.c |

[Qemu-devel] Using usbip for usb network redirection (was RFC: usb redirection over the network, interesting outside of spice?)

2010-12-01 Thread Hans de Goede
Hi, First some definitions: vm-host: machine running the qemu virtual machine with the guest os usb-host: machine which has the usb device which appears inside the vm On 11/29/2010 04:47 PM, Gerd Hoffmann wrote: Hi, Not me at the moment, but unless you tunnel it inside another protocol,

Re: [Qemu-devel] [PATCH 03/10] Add printf debug to savevm

2010-12-01 Thread Stefan Hajnoczi
On Mon, Nov 29, 2010 at 08:00:18PM -0600, Anthony Liguori wrote: Yeah, all of this should be done via tracing. Maybe Stefan can make some suggestions. Here is an example of how to record savevm timestamps using tracing. Actually the timestamp is recorded automatically when a trace event fires.

[Qemu-devel] KVM call minutes for Nov 30

2010-12-01 Thread Chris Wright
2011 KVM Conference - together with LF event like LinuxCon Vancouver BC (Aug), KS Prague (Nov) - wider audience - include qemu (tcg) - include libvirt - include xen 0.14.0 release plan - could push things out, mainly want to keep on track for infrastructure changes (irc channel migration,

Re: [Qemu-devel] [PATCH] xen: Restrict build to x86 targets

2010-12-01 Thread Alexander Graf
On 01.12.2010, at 11:21, Anthony PERARD wrote: On Mon, 29 Nov 2010, Alexander Graf wrote: On 29.11.2010, at 15:27, Jan Kiszka wrote: Am 29.11.2010 15:15, Alexander Graf wrote: On 29.11.2010, at 13:44, Jan Kiszka wrote: Am 29.11.2010 13:40, Alexander Graf wrote: On 29.11.2010,

Re: [Qemu-devel] [PATCHv3 4/6] virtio-net: stop/start bh when appropriate

2010-12-01 Thread Jason Wang
Michael S. Tsirkin writes: On Wed, Dec 01, 2010 at 01:45:09PM +0800, Jason Wang wrote: Michael S. Tsirkin writes: Avoid sending out packets, and modifying device state, when VM is stopped. Add assert statements to verify this does not happen. Avoid scheduling bh when

[Qemu-devel] Re: [PATCH 09/10] Exit loop if we have been there too long

2010-12-01 Thread Anthony Liguori
On 11/30/2010 08:12 AM, Paolo Bonzini wrote: On 11/30/2010 02:47 PM, Anthony Liguori wrote: On 11/30/2010 01:15 AM, Paolo Bonzini wrote: On 11/30/2010 03:11 AM, Anthony Liguori wrote: BufferedFile should hit the qemu_file_rate_limit check when the socket buffer gets filled up. The problem

[Qemu-devel] Re: [Bug 595438] Re: KVM segmentation fault, using SCSI+writeback and linux 2.4 guest

2010-12-01 Thread Dustin Kirkland
Fedora1? Seriously? :-P -- KVM segmentation fault, using SCSI+writeback and linux 2.4 guest https://bugs.launchpad.net/bugs/595438 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in Kernel Virtual Machine: Confirmed Status in

[Qemu-devel] Re: [PATCHv6 00/16] boot order specification

2010-12-01 Thread Gleb Natapov
On Mon, Nov 29, 2010 at 08:55:09PM -0500, Kevin O'Connor wrote: On Mon, Nov 29, 2010 at 11:50:45AM +0100, Gerd Hoffmann wrote: If scsi card has optionrom with only one bcv then Seabios can determine its boot order from device path, so why not provide user with this option today? It's

[Qemu-devel] Re: [PATCH 09/10] Exit loop if we have been there too long

2010-12-01 Thread Anthony Liguori
On 11/30/2010 08:27 AM, Avi Kivity wrote: On 11/30/2010 04:17 PM, Anthony Liguori wrote: What's the problem with burning that cpu? per guest page, compressing takes less than sending. Is it just an issue of qemu mutex hold time? If you have a 512GB guest, then you have a 16MB dirty bitmap

[Qemu-devel] [PATCH 14/15] isa_mmio: Always use little endian

2010-12-01 Thread Alexander Graf
This patch converts the ISA MMIO bridge code to always use little endian mmio. All bswap code that existed was only there to convert from native cpu endianness to little endian ISA devices. Signed-off-by: Alexander Graf ag...@suse.de --- hw/bonito.c|4 +- hw/gt64xxx.c |

Re: [Qemu-devel] [PATCH] Convert fprintf() to error_request(): virtio-9p

2010-12-01 Thread Stefan Hajnoczi
On Tue, Nov 30, 2010 at 9:52 AM, Sanchit Garg sancg...@linux.vnet.ibm.com wrote: @@ -3707,19 +3708,19 @@ VirtIODevice *virtio_9p_init(DeviceState *dev, V9fsConf *conf)         s-ctx.fs_sm = SM_NONE;         s-ctx.xops = none_xattr_ops;     } else { -        fprintf(stderr, Default to

[Qemu-devel] [PATCH v8 2/7] char: Add a QemuChrHandlers struct to initialise chardev handlers

2010-12-01 Thread Amit Shah
Instead of passing each handler in the qemu_add_handlers() function, create a struct of handlers that can be passed to the function instead. Signed-off-by: Amit Shah amit.s...@redhat.com --- gdbstub.c|9 +++-- hw/debugcon.c|2 +- hw/escc.c|9

[Qemu-devel] [PATCH 13/15] heathrow_pic: Declare as little endian

2010-12-01 Thread Alexander Graf
This patch replaces explicit bswaps with endianness hints to the mmio layer. Signed-off-by: Alexander Graf ag...@suse.de --- hw/heathrow_pic.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/hw/heathrow_pic.c b/hw/heathrow_pic.c index 390b63c..b19b754 100644 ---

[Qemu-devel] [PATCH v8 5/7] char: Update send_all() to handle nonblocking chardev write requests

2010-12-01 Thread Amit Shah
The send_all function is modified to return to the caller in case the driver cannot handle any more data. It returns -EAGAIN or WSAEWOULDBLOCK on non-Windows and Windows platforms respectively. This is only done when the caller sets a callback function handler indicating it's not interested in

[Qemu-devel] [PATCH 08/15] prep: Declare as little endian

2010-12-01 Thread Alexander Graf
This patch replaces explicit bswaps with endianness hints to the mmio layer. Signed-off-by: Alexander Graf ag...@suse.de --- hw/ppc_prep.c | 38 +++--- 1 files changed, 3 insertions(+), 35 deletions(-) diff --git a/hw/ppc_prep.c b/hw/ppc_prep.c index

[Qemu-devel] [PATCH] kvm/x86: enlarge number of possible CPUID leaves

2010-12-01 Thread Andre Przywara
Currently the number of CPUID leaves KVM handles is limited to 40. My desktop machine (AthlonII) already has 35 and future CPUs will expand this well beyond the limit. Extend the limit to 80 to make room for future processors. Signed-off-by: Andre Przywara andre.przyw...@amd.com ---

[Qemu-devel] [PATCH v8 0/7] char: non-blocking writes, virtio-console flow control

2010-12-01 Thread Amit Shah
Hello, This refreshed series adds support for non-blocking chardev writes if the caller asks for it. This series does away with the special qemu_chr_write_nb() call that did nonblocking writes. Instead, now the writes are nonblocking if the caller registers a callback function with the chardev

[Qemu-devel] [PATCH 0/1] introduce spice-qemu-char chardev

2010-12-01 Thread Alon Levy
Adding a chardev backend for spice, for usage by spice vdagent over a with virtio-serial device. Alon Levy (1): spice: add chardev Makefile.objs |2 +- qemu-char.c |7 ++ qemu-config.c |9 ++ qemu-options.hx | 18 - spice-qemu-char.c | 222

Re: [Qemu-devel] [PATCH] qemu-user: Translate getsockopt level option

2010-12-01 Thread Peter Maydell
On 17 November 2010 12:30, Jamie Lentin j...@lentin.co.uk wrote: In setsockopt, the socket level options are translated to the hosts' architecture before the real syscall is called, e.g. TARGET_SO_TYPE - SO_TYPE. This patch does the same with getsockopt. I agree that this is necessary (at

Re: [Qemu-devel] [PATCH] xen: Restrict build to x86 targets

2010-12-01 Thread Anthony PERARD
On Mon, 29 Nov 2010, Alexander Graf wrote: On 29.11.2010, at 15:27, Jan Kiszka wrote: Am 29.11.2010 15:15, Alexander Graf wrote: On 29.11.2010, at 13:44, Jan Kiszka wrote: Am 29.11.2010 13:40, Alexander Graf wrote: On 29.11.2010, at 13:30, Jan Kiszka wrote: Am 29.11.2010

Re: [Spice-devel] [Qemu-devel] RFC: usb redirection over the network, interesting outside of spice?

2010-12-01 Thread Hans de Goede
Hi, On 12/01/2010 12:04 PM, Paul Brook wrote: Hi, On 11/30/2010 12:32 PM, Alon Levy wrote: On Tue, Nov 30, 2010 at 12:26:56PM +0100, Hans de Goede wrote: snip snip Then there would be multiple ways to add a virtual usb device using usb-net-redir.c to the virtual machine. One way of adding

[Qemu-devel] Re: [PATCH 09/10] Exit loop if we have been there too long

2010-12-01 Thread Avi Kivity
On 11/30/2010 04:17 PM, Anthony Liguori wrote: What's the problem with burning that cpu? per guest page, compressing takes less than sending. Is it just an issue of qemu mutex hold time? If you have a 512GB guest, then you have a 16MB dirty bitmap which ends up being an 128MB dirty bitmap

[Qemu-devel] [PATCH v8 6/7] char: Equip the unix/tcp backend to handle nonblocking writes

2010-12-01 Thread Amit Shah
Now that the infrastructure is in place to return -EAGAIN to callers, individual char drivers can set their update_fd_handlers() function to set or remove an fd's write handler. This handler checks if the driver became writable. A generic callback routine is used for unblocking writes and

Re: [Qemu-devel] [PATCH] Add basic read, write and create support for AMD SimNow HDD images.

2010-12-01 Thread Stefan Hajnoczi
On Sun, Nov 28, 2010 at 7:08 PM, François Revol re...@free.fr wrote: From b0602bc2b02dcd7b15f0f9a143f850defd767509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= re...@free.fr Date: Sun, 28 Nov 2010 20:01:03 +0100 Subject: [PATCH] Add basic read, write and create support for

[Qemu-devel] [PATCH 04/15] dbdma: Make little endian

2010-12-01 Thread Alexander Graf
The device is only used on big endian systems, but always byte swaps. That's a very good indicator that it's actually a little endian device ;-). Signed-off-by: Alexander Graf ag...@suse.de --- hw/mac_dbdma.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git

[Qemu-devel] Re: [PATCH 02/10] Add buffered_file_internal constant

2010-12-01 Thread Anthony Liguori
On 11/30/2010 08:11 AM, Michael S. Tsirkin wrote: On Tue, Nov 30, 2010 at 08:02:56AM -0600, Anthony Liguori wrote: If we're burning excess CPU walking a 100MB bitmap, then let's fix that problem. Stopping every 1MB worth of the bitmap to do other work just papers over the real problem

[Qemu-devel] [PATCH v8 3/7] char: Introduce char_set/remove_fd_handlers()

2010-12-01 Thread Amit Shah
Introduce a char-specific wrapper to qemu_set_fd_handler functions. This wrapper is useful to add / remove a write handler easily. Write handlers are only used when the backend is blocked and cannot receive any more input. Signed-off-by: Amit Shah amit.s...@redhat.com --- qemu-char.c | 64

Re: [Qemu-devel] [RFC] QEMU 0.14.0 release plan

2010-12-01 Thread Anthony Liguori
On 11/30/2010 04:15 AM, Kevin Wolf wrote: Am 29.11.2010 18:42, schrieb Anthony Liguori: 0.13 was a mess of a release (largely due to my lack of time) and I'd like to get us back onto a predictable schedule. Telling people six days in advance when the fork will be is hardly

Re: [Spice-devel] [Qemu-devel] RFC: usb redirection over the network, interesting outside of spice?

2010-12-01 Thread Paul Brook
Hi, On 11/30/2010 12:32 PM, Alon Levy wrote: On Tue, Nov 30, 2010 at 12:26:56PM +0100, Hans de Goede wrote: snip snip Then there would be multiple ways to add a virtual usb device using usb-net-redir.c to the virtual machine. One way of adding such a device could be starting a

[Qemu-devel] Re: [PATCH 09/10] Exit loop if we have been there too long

2010-12-01 Thread Paolo Bonzini
On 11/30/2010 02:47 PM, Anthony Liguori wrote: On 11/30/2010 01:15 AM, Paolo Bonzini wrote: On 11/30/2010 03:11 AM, Anthony Liguori wrote: BufferedFile should hit the qemu_file_rate_limit check when the socket buffer gets filled up. The problem is that the file rate limit is not hit because

[Qemu-devel] Re: [PATCH] qemu-kvm: response to SIGUSR1 to start/stop a VCPU (v2)

2010-12-01 Thread Srivatsa Vaddagiri
On Wed, Nov 24, 2010 at 04:23:15PM +0200, Avi Kivity wrote: I'm more concerned about lock holder preemption, and interaction of this mechanism with any kernel solution for LHP. Can you suggest some scenarios and I'll create some test cases? I'm trying figure out the best way to evaluate

[Qemu-devel] [PATCH 09/15] versatile_pci: Declare as little endian

2010-12-01 Thread Alexander Graf
This patch replaces explicit bswaps with endianness hints to the mmio layer. Signed-off-by: Alexander Graf ag...@suse.de --- hw/versatile_pci.c | 14 +- 1 files changed, 1 insertions(+), 13 deletions(-) diff --git a/hw/versatile_pci.c b/hw/versatile_pci.c index 3baad96..cc8f9f8

[Qemu-devel] Re: [PATCH 09/10] Exit loop if we have been there too long

2010-12-01 Thread Avi Kivity
On 11/30/2010 03:47 PM, Anthony Liguori wrote: On 11/30/2010 01:15 AM, Paolo Bonzini wrote: On 11/30/2010 03:11 AM, Anthony Liguori wrote: BufferedFile should hit the qemu_file_rate_limit check when the socket buffer gets filled up. The problem is that the file rate limit is not hit because

Re: [Qemu-devel] Re: [PATCH 2/3] virtio-pci: Use ioeventfd for virtqueue notify

2010-12-01 Thread Stefan Hajnoczi
On Mon, Nov 15, 2010 at 11:20 AM, Stefan Hajnoczi stefa...@gmail.com wrote: On Sun, Nov 14, 2010 at 12:19 PM, Avi Kivity a...@redhat.com wrote: On 11/14/2010 01:05 PM, Avi Kivity wrote: I agree, but let's enable virtio-ioeventfd carefully because bad code is out there. Sure.  Note as long

[Qemu-devel] Re: [PATCH 07/10] ram_save_remaining() returns an uint64_t

2010-12-01 Thread Anthony Liguori
On 11/30/2010 01:21 AM, Paolo Bonzini wrote: On 11/30/2010 03:06 AM, Anthony Liguori wrote: -static ram_addr_t ram_save_remaining(void) +static uint64_t ram_save_remaining(void) { RAMBlock *block; -ram_addr_t count = 0; +uint64_t count = 0;

Re: [Qemu-devel] [PATCH v4 0/4] virtio: Use ioeventfd for virtqueue notify

2010-12-01 Thread Stefan Hajnoczi
On Wed, Nov 17, 2010 at 4:19 PM, Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: The v4 version includes:  * Simpler start/stop ioeventfd mechanism using bool ioeventfd_started state  * Support for migration  * Handle deassign race condition to avoid dropping a virtqueue kick  * Add

[Qemu-devel] Re: KVM call agenda for Nov 30

2010-12-01 Thread Avi Kivity
On 11/30/2010 02:58 PM, Dor Laor wrote: Please send in any agenda items you are interested in covering. nested vmx? must pick up pace if want to merge. -- error compiling committee.c: too many arguments to function

[Qemu-devel] Re: KVM call agenda for Nov 30

2010-12-01 Thread Stefan Hajnoczi
On Tue, Nov 30, 2010 at 12:58 PM, Dor Laor dl...@redhat.com wrote: Please send in any agenda items you are interested in covering. Juan already has a thread for agenda items. It includes: As I forgot to put the call for agenda befor, Anthony already suggested: - 2011 kvm conference - 0.14.0

Re: [Spice-devel] [Qemu-devel] RFC: usb redirection over the network, interesting outside of spice?

2010-12-01 Thread Paul Brook
usb_add net:192.168.1.100::[vid]:[pid] or: usb_add net:192.168.1.100::[busnr]:[addr] ... Instead I suggest just using a freeform string ID. For practical reasons we probably want to restrict this to regular characters, like we do other ids (i.e. [-_A-Za-z0-9]). This allows

Re: [Qemu-devel] [PATCHv2 2/6] cpus: flush all requests on each vm stop

2010-12-01 Thread Michael S. Tsirkin
On Tue, Nov 30, 2010 at 10:45:40AM -0200, Marcelo Tosatti wrote: On Wed, Nov 24, 2010 at 05:52:58PM +0200, Michael S. Tsirkin wrote: Make sure disk is in consistent state. Signed-off-by: Michael S. Tsirkin m...@redhat.com Tested-by: Jason Wang jasow...@redhat.com --- cpus.c |2

Re: [Qemu-devel] [PATCH v8 7/7] virtio-console: Enable port throttling when chardev is slow to consume data

2010-12-01 Thread Amit Shah
On (Wed) Dec 01 2010 [11:59:35], Paul Brook wrote: -qemu_chr_write(vcon-chr, buf, len); +ret = qemu_chr_write(vcon-chr, buf, len); +if (ret == -EAGAIN) { +virtio_serial_throttle_port(port, true); +} } This looks wrong. It will loose data

[Qemu-devel] Re: [PATCH 09/10] Exit loop if we have been there too long

2010-12-01 Thread Juan Quintela
Anthony Liguori anth...@codemonkey.ws wrote: On 11/24/2010 09:16 AM, Paolo Bonzini wrote: On 11/24/2010 12:14 PM, Michael S. Tsirkin wrote: buffered_file timer runs each 100ms. And we try to measure channel bandwidth from there. If we are not able to run the timer, all the

Re: [Qemu-devel] [PATCH v8 7/7] virtio-console: Enable port throttling when chardev is slow to consume data

2010-12-01 Thread Paul Brook
-qemu_chr_write(vcon-chr, buf, len); +ret = qemu_chr_write(vcon-chr, buf, len); +if (ret == -EAGAIN) { +virtio_serial_throttle_port(port, true); +} } This looks wrong. It will loose data in the case of a partial write (i.e. ret len) That

[Qemu-devel] Re: [PATCH] kvm/x86: enlarge number of possible CPUID leaves

2010-12-01 Thread Andre Przywara
Avi Kivity wrote: On 12/01/2010 01:17 PM, Andre Przywara wrote: Currently the number of CPUID leaves KVM handles is limited to 40. My desktop machine (AthlonII) already has 35 and future CPUs will expand this well beyond the limit. Extend the limit to 80 to make room for future processors.

[Qemu-devel] Re: [PATCH] kvm/x86: enlarge number of possible CPUID leaves

2010-12-01 Thread Avi Kivity
On 12/01/2010 01:17 PM, Andre Przywara wrote: Currently the number of CPUID leaves KVM handles is limited to 40. My desktop machine (AthlonII) already has 35 and future CPUs will expand this well beyond the limit. Extend the limit to 80 to make room for future processors. Signed-off-by: Andre

[Qemu-devel] [PATCH 0/3] add hotplug opt-out option for pci devices.

2010-12-01 Thread Gerd Hoffmann
Hi, This patch series adds a flag which allows pci devices being tagged as not hotpluggable. It also sets this flag for a number of devices. cheers, Gerd Gerd Hoffmann (3): pci: allow devices being tagged as not hotpluggable. piix: tag as not hotpluggable. vga: tag as not

[Qemu-devel] [PATCH v2 2/3] vnc: support password expire

2010-12-01 Thread Gerd Hoffmann
This patch adds support for expiring passwords to vnc. It adds a new vnc_display_pw_expire() function which specifies the time when the password will expire. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- console.h |1 + qemu-common.h |3 +++ ui/vnc.c | 14 ++

[Qemu-devel] Re: [PATCH 09/10] Exit loop if we have been there too long

2010-12-01 Thread Avi Kivity
On 12/01/2010 03:52 AM, Juan Quintela wrote: - 512GB guest is really the target? no, problems exist with smaller amounts of RAM. with 16GB guest it is trivial to get 1s stalls, 64GB guest, 3-4s, with more memory, migration is flaky to say the less. - how much cpu time can we use for

[Qemu-devel] [PATCH v2 3/3] vnc/spice: add set_passwd monitor command.

2010-12-01 Thread Gerd Hoffmann
This patch adds new set_password and expire_password monitor commands which allows to change and expire the password for spice and vnc connections. See the doc update patch chunk for details. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hmp-commands.hx | 54 +

[Qemu-devel] Re: [PATCHv6 00/16] boot order specification

2010-12-01 Thread Gleb Natapov
On Tue, Nov 30, 2010 at 09:53:32PM -0500, Kevin O'Connor wrote: On Tue, Nov 30, 2010 at 04:01:00PM +0200, Gleb Natapov wrote: On Mon, Nov 29, 2010 at 08:34:03PM -0500, Kevin O'Connor wrote: On Sun, Nov 28, 2010 at 08:47:34PM +0200, Gleb Natapov wrote: If you let go to the idea of exact

[Qemu-devel] [PATCH 3/3] vga: tag as not hotplugable.

2010-12-01 Thread Gerd Hoffmann
This patch tags all vga cards as not hotpluggable. The qemu standard vga will never ever be hotpluggable. For cirrus + vmware it might be possible to get that work some day. Todays we can't handle that for a number of reasons though. Signed-off-by: Gerd Hoffmann kra...@redhat.com ---

Re: [Qemu-devel] Re: [PATCH 2/3] virtio-pci: Use ioeventfd for virtqueue notify

2010-12-01 Thread Avi Kivity
On 12/01/2010 01:44 PM, Stefan Hajnoczi wrote: And, what about efficiency? As in bits/cycle? We are running benchmarks with this latest patch and will report results. Full results here (thanks to Khoa Huynh): http://wiki.qemu.org/Features/VirtioIoeventfd The host CPU utilization is

[Qemu-devel] [RFC PATCH v3 1/4] block: Implement bdrv_aio_pwrite

2010-12-01 Thread Kevin Wolf
This implements an asynchronous version of bdrv_pwrite. Signed-off-by: Kevin Wolf kw...@redhat.com --- block.c | 167 +++ block.h |2 + 2 files changed, 169 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index

[Qemu-devel] Re: [PATCH 06/13] pci: add storage class for sata

2010-12-01 Thread Stefan Hajnoczi
On Fri, Nov 26, 2010 at 7:17 PM, Alexander Graf ag...@suse.de wrote: This patch adds the storage sata class id. Signed-off-by: Alexander Graf ag...@suse.de ---  hw/pci_ids.h |    1 +  1 files changed, 1 insertions(+), 0 deletions(-) Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com

[Qemu-devel] Re: [PATCH 09/10] Exit loop if we have been there too long

2010-12-01 Thread Avi Kivity
On 11/30/2010 04:50 PM, Anthony Liguori wrote: That's what the patch set I was alluding to did. Or maybe I imagined the whole thing. No, it just split the main bitmap into three bitmaps. I'm suggesting that we have the dirty interface have two implementations, one that refers to the 8-bit

[Qemu-devel] [RFC PATCH v3 2/4] Add block-queue

2010-12-01 Thread Kevin Wolf
Instead of directly executing writes and fsyncs, queue them and execute them asynchronously. What makes this interesting is that we can delay syncs and if multiple syncs occur, we can merge them into one bdrv_flush. A typical sequence in qcow2 (simple cluster allocation) looks like this: 1.

[Qemu-devel] Re: [PATCH 05/13] ide: add ncq identify data for ahci sata drives

2010-12-01 Thread Stefan Hajnoczi
On Fri, Nov 26, 2010 at 7:17 PM, Alexander Graf ag...@suse.de wrote: From: Roland Elek elek.rol...@gmail.com I modified ide_identify() to include the zero-based queue length value in word 75, and set bit 8 in word 76 to signal NCQ support in the identify data for AHCI SATA drives.

[Qemu-devel] [RFC PATCH v3 0/4] block-queue: Delay and batch metadata writes

2010-12-01 Thread Kevin Wolf
block-queue itself looks more or less ready to me now, the rest is possible bug fixes and addressing review comments. So please, give the first three patches a good review, they are in their final version otherwise. This series is only marked RFC because proper qcow2 integration is missing and

Re: [Qemu-devel] [PATCH 08/12] ARM: Return correct result for single-double conversion of NaN

2010-12-01 Thread Peter Maydell
On 29 November 2010 19:54, Nathan Froyd froy...@codesourcery.com wrote: Yes, this is ugly.  Are you up for running:  perl -p -i -e 's/float(\d+)_is_nan/float\1_is_quiet_nan/g' target-*/*.c (and also carefully in fpu/*) or similar and moving the bit-twiddling float_is_nan into fpu/? I'm just

Re: [Libusb-devel] [Qemu-devel] RFC: usb redirection over the network, interesting outside of spice?

2010-12-01 Thread Peter Stuge
François Revol wrote: usbip I don't know how good this is. For another implementation of USB-over-IP you could look at Sun's work with the SunRay thin clients. I believe some of it may be in the OpenUSB codebase. (They forked libusb to make it work the way they wanted.) I don't know how good

Re: [Qemu-devel] Re: [PATCH 09/21] Introduce event-tap.

2010-12-01 Thread Yoshiaki Tamura
Marcelo Tosatti wrote: On Tue, Nov 30, 2010 at 06:28:55PM +0900, Yoshiaki Tamura wrote: 2010/11/30 Marcelo Tosattimtosa...@redhat.com: On Thu, Nov 25, 2010 at 03:06:48PM +0900, Yoshiaki Tamura wrote: event-tap controls when to start FT transaction, and provides proxy functions to called from

  1   2   3   >