[Qemu-devel] Re: [PATCH] vga: Declare as little endian

2010-12-13 Thread Alexander Graf
On 11.12.2010, at 23:33, Blue Swirl wrote: This patch replaces explicit bswaps with endianness hints to the mmio layer. CC: Alexander Graf ag...@suse.de Signed-off-by: Blue Swirl blauwir...@gmail.com Acked-by: Alexander Graf ag...@suse.de Alex

[Qemu-devel] (no subject)

2010-12-13 Thread Ronnie Sahlberg
Please find a new block driver that IF libiscsi is present on the system will link with this userspace client library and make qemu able to access iscsi devices directly without exposing them to the host. The library used is multiplatform and available from git://github.com/sahlberg/libiscsi.git

[Qemu-devel] [PATCH] libiscsi

2010-12-13 Thread Ronnie Sahlberg
This patch adds a new block driver : block.iscsi.c This driver interfaces with the multiplatform posix library for iscsi initiator/client access to iscsi devices hosted at git://github.com/sahlberg/libiscsi.git The patch adds the driver to interface with the iscsi library. It also updated the

[Qemu-devel] Re: [PATCH] fix qruncom compilation problems

2010-12-13 Thread Paolo Bonzini
On 12/11/2010 03:42 PM, Stefano Bonifazi wrote: Surely I do understand you! Your help has been very very useful and appreciated already thank you! May you direct me to somebody who's working on it? Some TCG guru who could understand immediately what's wrong?:) I noticed, far now, that each

[Qemu-devel] Re: [RFC][PATCH v5 08/21] virtagent: add agent_viewfile qmp/hmp command

2010-12-13 Thread Jes Sorensen
On 12/10/10 18:09, Michael Roth wrote: I think with strictly enforced size limits the major liability for viewfile is, as you mentioned, users using it to view binary data or carefully crafted files that can mess up or fool users/shells/programs interpreting monitor output. But plain-text

[Qemu-devel] Re: [SeaBIOS] seabios: acpi: add _RMV control method for PCI devices

2010-12-13 Thread Avi Kivity
On 12/13/2010 02:00 AM, Marcelo Tosatti wrote: On Sat, Dec 11, 2010 at 09:39:30AM +0200, Avi Kivity wrote: On 12/08/2010 07:08 PM, Marcelo Tosatti wrote: Use _RMV method to indicate whether device can be removed. Data is retrieved from QEMU via I/O port 0xae0c. Where did this port

[Qemu-devel] Re: [PATCH V2] qemu, kvm: Enable user space NMI injection for kvm guest

2010-12-13 Thread Lai Jiangshan
On 12/10/2010 04:41 PM, Jan Kiszka wrote: Am 10.12.2010 08:42, Lai Jiangshan wrote: Make use of the new KVM_NMI IOCTL to send NMIs into the KVM guest if the user space raised them. (example: qemu monitor's nmi command) Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- diff --git

[Qemu-devel] Re: [SeaBIOS] seabios: acpi: add _RMV control method for PCI devices

2010-12-13 Thread Gleb Natapov
On Mon, Dec 13, 2010 at 10:41:25AM +0200, Avi Kivity wrote: On 12/13/2010 02:00 AM, Marcelo Tosatti wrote: On Sat, Dec 11, 2010 at 09:39:30AM +0200, Avi Kivity wrote: On 12/08/2010 07:08 PM, Marcelo Tosatti wrote: Use _RMV method to indicate whether device can be removed. Data is

[Qemu-devel] Re: [SeaBIOS] seabios: acpi: add _RMV control method for PCI devices

2010-12-13 Thread Avi Kivity
On 12/13/2010 10:49 AM, Gleb Natapov wrote: On Mon, Dec 13, 2010 at 10:41:25AM +0200, Avi Kivity wrote: On 12/13/2010 02:00 AM, Marcelo Tosatti wrote: On Sat, Dec 11, 2010 at 09:39:30AM +0200, Avi Kivity wrote: On 12/08/2010 07:08 PM, Marcelo Tosatti wrote: Use _RMV method to

[Qemu-devel] Re: [SeaBIOS] seabios: acpi: add _RMV control method for PCI devices

2010-12-13 Thread Gleb Natapov
On Mon, Dec 13, 2010 at 10:53:07AM +0200, Avi Kivity wrote: On 12/13/2010 10:49 AM, Gleb Natapov wrote: On Mon, Dec 13, 2010 at 10:41:25AM +0200, Avi Kivity wrote: On 12/13/2010 02:00 AM, Marcelo Tosatti wrote: On Sat, Dec 11, 2010 at 09:39:30AM +0200, Avi Kivity wrote: On 12/08/2010

[Qemu-devel] Re: [SeaBIOS] seabios: acpi: add _RMV control method for PCI devices

2010-12-13 Thread Avi Kivity
On 12/13/2010 11:03 AM, Gleb Natapov wrote: We could also deprecate the old port and use fwcfg for everything (try fwcfg, fall back to ae00). fwcfg designed to be simple for easy use by firmware. It has two port one for index another for value, so its use is racy in multi-threaded SMP

[Qemu-devel] Re: [SeaBIOS] seabios: acpi: add _RMV control method for PCI devices

2010-12-13 Thread Gleb Natapov
On Mon, Dec 13, 2010 at 11:10:38AM +0200, Avi Kivity wrote: On 12/13/2010 11:03 AM, Gleb Natapov wrote: We could also deprecate the old port and use fwcfg for everything (try fwcfg, fall back to ae00). fwcfg designed to be simple for easy use by firmware. It has two port one for index

[Qemu-devel] [PATCH] qemu-io: Add discard command

2010-12-13 Thread Stefan Hajnoczi
discard [-Cq] off len -- discards a number of bytes at a specified offset discards a range of bytes from the given offset Example: 'discard 512 1k' - discards 1 kilobyte from 512 bytes into the file Discards a segment of the currently open file. -C, -- report statistics in a machine

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

2010-12-13 Thread Stefan Hajnoczi
On Sun, Dec 12, 2010 at 9:09 PM, Michael S. Tsirkin m...@redhat.com wrote: On Sun, Dec 12, 2010 at 10:56:34PM +0200, Michael S. Tsirkin wrote: On Sun, Dec 12, 2010 at 10:42:28PM +0200, Michael S. Tsirkin wrote: On Sun, Dec 12, 2010 at 10:41:28PM +0200, Michael S. Tsirkin wrote: On Sun, Dec

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

2010-12-13 Thread Michael S. Tsirkin
On Mon, Dec 13, 2010 at 10:24:51AM +, Stefan Hajnoczi wrote: On Sun, Dec 12, 2010 at 9:09 PM, Michael S. Tsirkin m...@redhat.com wrote: On Sun, Dec 12, 2010 at 10:56:34PM +0200, Michael S. Tsirkin wrote: On Sun, Dec 12, 2010 at 10:42:28PM +0200, Michael S. Tsirkin wrote: On Sun, Dec

Re: [Qemu-devel] SCSI Command support over VirtIO Block device

2010-12-13 Thread अनुज
Hi 2010/12/13 Stefan Hajnoczi stefa...@gmail.com: On Dec 13, 2010 5:14 AM, अनुज anu...@gmail.com wrote: Hi I am trying to implement VirtIO support for a proprietary OS. And It would be great if I am able to process SCSI commands over VirtIO Block device. I tried to execute INQUIRY

[Qemu-devel] Re: [Spice-devel] RFC; usb redirection protocol

2010-12-13 Thread Gerd Hoffmann
Basic packet structure / communication -- Each packet exchanged between the vm-host and the usb-host starts with a usb_redir_header, followed by an optional command specific header follow by optional additional data. The usb_redir_header each packet starts

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

2010-12-13 Thread Stefan Hajnoczi
Fresh results: 192.168.0.1 - host (runs netperf) 192.168.0.2 - guest (runs netserver) host$ src/netperf -H 192.168.0.2 -- -m 200 ioeventfd=on TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.0.2 (192.168.0.2) port 0 AF_INET Recv SendSend Socket Socket Message Elapsed

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

2010-12-13 Thread Michael S. Tsirkin
On Mon, Dec 13, 2010 at 01:11:27PM +, Stefan Hajnoczi wrote: Fresh results: 192.168.0.1 - host (runs netperf) 192.168.0.2 - guest (runs netserver) host$ src/netperf -H 192.168.0.2 -- -m 200 ioeventfd=on TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.0.2

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

2010-12-13 Thread Michael S. Tsirkin
On Mon, Dec 13, 2010 at 03:35:38PM +0200, Michael S. Tsirkin wrote: On Mon, Dec 13, 2010 at 01:11:27PM +, Stefan Hajnoczi wrote: Fresh results: 192.168.0.1 - host (runs netperf) 192.168.0.2 - guest (runs netserver) host$ src/netperf -H 192.168.0.2 -- -m 200 ioeventfd=on

[Qemu-devel] Re: [PATCH v2 1/2] Do not register kvmclock savevm section if kvmclock is disabled.

2010-12-13 Thread Glauber Costa
On Wed, 2010-12-08 at 17:31 -0200, Marcelo Tosatti wrote: On Tue, Dec 07, 2010 at 03:12:36PM -0200, Glauber Costa wrote: On Mon, 2010-12-06 at 19:04 -0200, Marcelo Tosatti wrote: On Mon, Dec 06, 2010 at 09:03:46AM -0500, Glauber Costa wrote: Usually nobody usually thinks about that

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

2010-12-13 Thread Stefan Hajnoczi
Here are my results on qemu-kvm.git: ioeventfd=on TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.0.2 (192.168.0.2) port 0 AF_INET Recv SendSend Socket Socket Message Elapsed Size SizeSize Time Throughput bytes bytes bytessecs.10^6bits/sec 87380

[Qemu-devel] [Bug 595117] Re: qemu-nbd slow and missing writeback cache option

2010-12-13 Thread Serge Hallyn
@Stephane, did upstream ever accept your patch? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/595117 Title: qemu-nbd slow and missing writeback cache option Status in QEMU: Invalid Status in

[Qemu-devel] Check out my photos on Shtyle.fm

2010-12-13 Thread iboga...@gmail.com
Hi qemu-de...@nongnu.org! Check out my photos on Shtyle.fm I've created a profile on Shtyle.fm to upload my photos, share files and make new friends and I want to add you as a

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

2010-12-13 Thread Stefan Hajnoczi
On Mon, Dec 13, 2010 at 1:36 PM, Michael S. Tsirkin m...@redhat.com wrote: On Mon, Dec 13, 2010 at 03:35:38PM +0200, Michael S. Tsirkin wrote: On Mon, Dec 13, 2010 at 01:11:27PM +, Stefan Hajnoczi wrote: Fresh results: 192.168.0.1 - host (runs netperf) 192.168.0.2 - guest (runs

Re: [Qemu-devel] [PATCH 1/5] block: add discard support

2010-12-13 Thread Christoph Hellwig
On Sat, Dec 11, 2010 at 12:50:20PM +, Paul Brook wrote: It's guest visible state, so it must not change due to migrations. For the current implementation all values for it work anyway - if it's smaller than the block size we'll zero out the remainder of the block. That sounds wrong.

Re: [Qemu-devel] ]PATCH 0/7] add TRIM/UNMAP support, v3

2010-12-13 Thread Christoph Hellwig
On Sun, Dec 12, 2010 at 03:28:14PM +, Stefan Hajnoczi wrote: Do you have qemu-io support for discard? Now that you wrote it we have the support :) Any hints on testing this? A recent guest kernel and ext -o discard might exercise the code but I haven't tried yet. Anything that submits a

Re: [Qemu-devel] [PATCH 5/6] [RFC] Emulation of Leon3.

2010-12-13 Thread Fabien Chouteau
On 12/11/2010 10:56 AM, Blue Swirl wrote: On Tue, Dec 7, 2010 at 11:40 AM, Fabien Chouteauchout...@adacore.com wrote: On 12/06/2010 06:53 PM, Blue Swirl wrote: On Mon, Dec 6, 2010 at 9:26 AM, Fabien Chouteauchout...@adacore.com wrote: Signed-off-by: Fabien Chouteauchout...@adacore.com

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

2010-12-13 Thread Michael S. Tsirkin
On Mon, Dec 13, 2010 at 03:27:06PM +, Stefan Hajnoczi wrote: On Mon, Dec 13, 2010 at 1:36 PM, Michael S. Tsirkin m...@redhat.com wrote: On Mon, Dec 13, 2010 at 03:35:38PM +0200, Michael S. Tsirkin wrote: On Mon, Dec 13, 2010 at 01:11:27PM +, Stefan Hajnoczi wrote: Fresh results:

[Qemu-devel] Re: [PATCH 1/5] block: add discard support

2010-12-13 Thread Paolo Bonzini
On 12/10/2010 02:38 PM, Christoph Hellwig wrote: if it's smaller than the block size we'll zero out the remainder of the block. I think it should fail at VM startup time, or even better do nothing at all. When you write in the middle of an absent block, and a partially-zero block is created,

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

2010-12-13 Thread Michael S. Tsirkin
On Mon, Dec 13, 2010 at 03:27:06PM +, Stefan Hajnoczi wrote: On Mon, Dec 13, 2010 at 1:36 PM, Michael S. Tsirkin m...@redhat.com wrote: On Mon, Dec 13, 2010 at 03:35:38PM +0200, Michael S. Tsirkin wrote: On Mon, Dec 13, 2010 at 01:11:27PM +, Stefan Hajnoczi wrote: Fresh results:

[Qemu-devel] Re: [PATCH 1/5] block: add discard support

2010-12-13 Thread Christoph Hellwig
On Mon, Dec 13, 2010 at 05:07:27PM +0100, Paolo Bonzini wrote: On 12/10/2010 02:38 PM, Christoph Hellwig wrote: if it's smaller than the block size we'll zero out the remainder of the block. I think it should fail at VM startup time, or even better do nothing at all. What should fail?

Re: [Qemu-devel] [PATCH 1/5] block: add discard support

2010-12-13 Thread Paul Brook
On Sat, Dec 11, 2010 at 12:50:20PM +, Paul Brook wrote: It's guest visible state, so it must not change due to migrations. For the current implementation all values for it work anyway - if it's smaller than the block size we'll zero out the remainder of the block. That sounds

Re: [Qemu-devel] [PATCH 2/6] [RFC] Emulation of GRLIB IRQMP as defined in GRLIB IP Core User's Manual.

2010-12-13 Thread Fabien Chouteau
On 12/11/2010 11:31 AM, Blue Swirl wrote: On Tue, Dec 7, 2010 at 10:43 AM, Fabien Chouteauchout...@adacore.com wrote: On 12/06/2010 06:25 PM, Blue Swirl wrote: On Mon, Dec 6, 2010 at 9:26 AM, Fabien Chouteauchout...@adacore.com wrote: Signed-off-by: Fabien Chouteauchout...@adacore.com

[Qemu-devel] Re: [PATCH 1/5] block: add discard support

2010-12-13 Thread Paolo Bonzini
On 12/13/2010 05:15 PM, Christoph Hellwig wrote: On Mon, Dec 13, 2010 at 05:07:27PM +0100, Paolo Bonzini wrote: On 12/10/2010 02:38 PM, Christoph Hellwig wrote: if it's smaller than the block size we'll zero out the remainder of the block. I think it should fail at VM startup time, or even

[Qemu-devel] [PATCH 1/4] Make vm_stop available for block layer

2010-12-13 Thread Kevin Wolf
blkqueue wants to stop the VM after an error has occurred, so we need to make vm_stop available in common code. It now returns a boolean that tells if the VM could be stopped, which is always true in qemu itself, and always false in the tools. Signed-off-by: Kevin Wolf kw...@redhat.com ---

[Qemu-devel] [PATCH 3/4] Test cases for block-queue

2010-12-13 Thread Kevin Wolf
Add some unit tests especially for the ordering and request merging in block-queue. Signed-off-by: Kevin Wolf kw...@redhat.com --- Makefile|1 + check-block-queue.c | 402 +++ 2 files changed, 403 insertions(+), 0 deletions(-)

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

2010-12-13 Thread Stefan Hajnoczi
On Mon, Dec 13, 2010 at 4:12 PM, Michael S. Tsirkin m...@redhat.com wrote: On Mon, Dec 13, 2010 at 03:27:06PM +, Stefan Hajnoczi wrote: On Mon, Dec 13, 2010 at 1:36 PM, Michael S. Tsirkin m...@redhat.com wrote: On Mon, Dec 13, 2010 at 03:35:38PM +0200, Michael S. Tsirkin wrote: On Mon,

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

2010-12-13 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] [PATCH 0/4] block-queue: Delay and batch metadata write

2010-12-13 Thread Kevin Wolf
Differences to RFC v3 include proper conversion of qcow2, addressing Stefan's comments and fixing some error cases in which two write requests to the same location might conflict. Also worth noting is that bdrv_aio_pwrite is dropped. It was unsafe with respect to multiple concurrent requests on

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

2010-12-13 Thread Stefan Hajnoczi
On Mon, Dec 13, 2010 at 4:00 PM, Michael S. Tsirkin m...@redhat.com wrote: On Mon, Dec 13, 2010 at 03:27:06PM +, Stefan Hajnoczi wrote: On Mon, Dec 13, 2010 at 1:36 PM, Michael S. Tsirkin m...@redhat.com wrote: On Mon, Dec 13, 2010 at 03:35:38PM +0200, Michael S. Tsirkin wrote: On Mon,

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

2010-12-13 Thread Michael S. Tsirkin
On Mon, Dec 13, 2010 at 04:29:58PM +, Stefan Hajnoczi wrote: On Mon, Dec 13, 2010 at 4:00 PM, Michael S. Tsirkin m...@redhat.com wrote: On Mon, Dec 13, 2010 at 03:27:06PM +, Stefan Hajnoczi wrote: On Mon, Dec 13, 2010 at 1:36 PM, Michael S. Tsirkin m...@redhat.com wrote: On Mon,

Re: [Qemu-devel] [PATCH 6/6] [RFC] SPARCV8 asr17 register support.

2010-12-13 Thread Fabien Chouteau
On 12/11/2010 10:59 AM, Blue Swirl wrote: On Tue, Dec 7, 2010 at 11:51 AM, Fabien Chouteauchout...@adacore.com wrote: On 12/06/2010 07:01 PM, Blue Swirl wrote: On Mon, Dec 6, 2010 at 9:26 AM, Fabien Chouteauchout...@adacore.com wrote: Signed-off-by: Fabien Chouteauchout...@adacore.com

Re: [Qemu-devel] [PATCH 5/6] [RFC] Emulation of Leon3.

2010-12-13 Thread Fabien Chouteau
On 12/12/2010 03:41 PM, Andreas Färber wrote: Am 06.12.2010 um 10:26 schrieb Fabien Chouteau: diff --git a/Makefile.target b/Makefile.target index 2800f47..f40e04f 100644 --- a/Makefile.target +++ b/Makefile.target @@ -290,7 +290,10 @@ obj-sparc-y += cirrus_vga.o else obj-sparc-y = sun4m.o

[Qemu-devel] Re: [PATCH] rtl8139: IO memory is not part of vmstate

2010-12-13 Thread Alex Williamson
On Mon, 2010-12-13 at 02:55 +0530, Juan Quintela wrote: Alex Williamson alex.william...@redhat.com wrote: On Sun, 2010-12-12 at 20:07 +0530, Juan Quintela wrote: Michael S. Tsirkin m...@redhat.com wrote: On Sun, Dec 12, 2010 at 05:23:39PM +0530, Juan Quintela wrote: Michael S. Tsirkin

[Qemu-devel] Re: [PATCH] rtl8139: IO memory is not part of vmstate

2010-12-13 Thread Michael S. Tsirkin
On Mon, Dec 13, 2010 at 10:43:22AM -0700, Alex Williamson wrote: So, unfortunately, I stand by my original patch. What about the one that put -1 in saved index for a hotplugged device? -- MST

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

2010-12-13 Thread Stefan Hajnoczi
On Mon, Dec 13, 2010 at 4:28 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Mon, Dec 13, 2010 at 4:12 PM, Michael S. Tsirkin m...@redhat.com wrote: On Mon, Dec 13, 2010 at 03:27:06PM +, Stefan Hajnoczi wrote: On Mon, Dec 13, 2010 at 1:36 PM, Michael S. Tsirkin m...@redhat.com wrote: On

[Qemu-devel] Re: [PATCH] rtl8139: IO memory is not part of vmstate

2010-12-13 Thread Alex Williamson
On Mon, 2010-12-13 at 19:50 +0200, Michael S. Tsirkin wrote: On Mon, Dec 13, 2010 at 10:43:22AM -0700, Alex Williamson wrote: So, unfortunately, I stand by my original patch. What about the one that put -1 in saved index for a hotplugged device? There are still examples that don't work even

[Qemu-devel] [PATCH 3/7] Add configure script and command line options for TPM interface.

2010-12-13 Thread Andreas Niederl
Signed-off-by: Andreas Niederl andreas.nied...@iaik.tugraz.at --- Makefile.objs |3 +++ configure |9 + qemu-config.c | 16 qemu-config.h |1 + qemu-options.hx |6 ++ vl.c| 29 + 6 files changed,

[Qemu-devel] [PATCH 2/7] Add TPM host passthrough device backend.

2010-12-13 Thread Andreas Niederl
Threadlets are used for asynchronous I/O to the host TPM device because the Linux TPM driver does not allow for non-blocking I/O. This patch is based on the Threadlets patch series v12 posted on this list. Signed-off-by: Andreas Niederl andreas.nied...@iaik.tugraz.at --- hw/tpm_backend.c |

[Qemu-devel] Re: [PATCH 3/7] Add configure script and command line options for TPM interface.

2010-12-13 Thread Andreas Niederl
On 12/13/2010 07:04 PM, Andreas Niederl wrote: [...] Sorry for the wrong patch count in the subject. Total number is 4. Regards, Andreas smime.p7s Description: S/MIME Cryptographic Signature

[Qemu-devel] [PATCH 1/7] Add TPM 1.2 device interface

2010-12-13 Thread Andreas Niederl
This implementation is based on the TPM 1.2 interface for virtualized TPM devices from the Xen-4.0.0 ioemu-qemu-xen fork. A backend driver infrastructure is provided to be able to use different device backends. Signed-off-by: Andreas Niederl andreas.nied...@iaik.tugraz.at --- hw/tpm.h |

Re: [Qemu-devel] [PATCH 2/6] [RFC] Emulation of GRLIB IRQMP as defined in GRLIB IP Core User's Manual.

2010-12-13 Thread Blue Swirl
On Mon, Dec 13, 2010 at 4:23 PM, Fabien Chouteau chout...@adacore.com wrote: On 12/11/2010 11:31 AM, Blue Swirl wrote: On Tue, Dec 7, 2010 at 10:43 AM, Fabien Chouteauchout...@adacore.com  wrote: On 12/06/2010 06:25 PM, Blue Swirl wrote: On Mon, Dec 6, 2010 at 9:26 AM, Fabien

Re: [Qemu-devel] [PATCH 5/6] [RFC] Emulation of Leon3.

2010-12-13 Thread Blue Swirl
On Mon, Dec 13, 2010 at 3:51 PM, Fabien Chouteau chout...@adacore.com wrote: On 12/11/2010 10:56 AM, Blue Swirl wrote: On Tue, Dec 7, 2010 at 11:40 AM, Fabien Chouteauchout...@adacore.com  wrote: On 12/06/2010 06:53 PM, Blue Swirl wrote: On Mon, Dec 6, 2010 at 9:26 AM, Fabien

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

2010-12-13 Thread Michael S. Tsirkin
On Mon, Dec 13, 2010 at 05:57:28PM +, Stefan Hajnoczi wrote: On Mon, Dec 13, 2010 at 4:28 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Mon, Dec 13, 2010 at 4:12 PM, Michael S. Tsirkin m...@redhat.com wrote: On Mon, Dec 13, 2010 at 03:27:06PM +, Stefan Hajnoczi wrote: On Mon, Dec

[Qemu-devel] Re: [PATCH] rtl8139: IO memory is not part of vmstate

2010-12-13 Thread Michael S. Tsirkin
On Mon, Dec 13, 2010 at 11:00:44AM -0700, Alex Williamson wrote: On Mon, 2010-12-13 at 19:50 +0200, Michael S. Tsirkin wrote: On Mon, Dec 13, 2010 at 10:43:22AM -0700, Alex Williamson wrote: So, unfortunately, I stand by my original patch. What about the one that put -1 in saved index

[Qemu-devel] Re: [PATCH] rtl8139: IO memory is not part of vmstate

2010-12-13 Thread Alex Williamson
On Mon, 2010-12-13 at 20:54 +0200, Michael S. Tsirkin wrote: On Mon, Dec 13, 2010 at 11:00:44AM -0700, Alex Williamson wrote: On Mon, 2010-12-13 at 19:50 +0200, Michael S. Tsirkin wrote: On Mon, Dec 13, 2010 at 10:43:22AM -0700, Alex Williamson wrote: So, unfortunately, I stand by my

[Qemu-devel] Re: [PATCH] rtl8139: IO memory is not part of vmstate

2010-12-13 Thread Michael S. Tsirkin
On Mon, Dec 13, 2010 at 11:59:16AM -0700, Alex Williamson wrote: On Mon, 2010-12-13 at 20:54 +0200, Michael S. Tsirkin wrote: On Mon, Dec 13, 2010 at 11:00:44AM -0700, Alex Williamson wrote: On Mon, 2010-12-13 at 19:50 +0200, Michael S. Tsirkin wrote: On Mon, Dec 13, 2010 at 10:43:22AM

[Qemu-devel] Re: [PATCH] rtl8139: IO memory is not part of vmstate

2010-12-13 Thread Alex Williamson
On Mon, 2010-12-13 at 21:06 +0200, Michael S. Tsirkin wrote: On Mon, Dec 13, 2010 at 11:59:16AM -0700, Alex Williamson wrote: On Mon, 2010-12-13 at 20:54 +0200, Michael S. Tsirkin wrote: On Mon, Dec 13, 2010 at 11:00:44AM -0700, Alex Williamson wrote: On Mon, 2010-12-13 at 19:50 +0200,

Re: [Qemu-devel] Re: [PATCH] PCI: Bus number from the bridge, not the device

2010-12-13 Thread Alex Williamson
On Mon, 2010-11-08 at 13:22 +0200, Michael S. Tsirkin wrote: On Mon, Oct 04, 2010 at 03:53:11PM -0600, Alex Williamson wrote: pcibus_dev_print() was erroneously retrieving the device bus number from the secondary bus number offset of the device instead of the bridge above the device. This

[Qemu-devel] [RESEND PATCH v3 0/2] Minimal RAM API support

2010-12-13 Thread Alex Williamson
No comments since v3, please apply. Thanks, Alex v3: - Address review comments - pc registers all memory below 4G in one chunk Let me know if there are any further issues. v2: - Move to Makefile.objs - Move structures to memory.c and create a callback function - Fix memory leak I

[Qemu-devel] [RESEND PATCH v3 1/2] Minimal RAM API support

2010-12-13 Thread Alex Williamson
This adds a minimum chunk of Anthony's RAM API support so that we can identify actual VM RAM versus all the other things that make use of qemu_ram_alloc. Signed-off-by: Alex Williamson alex.william...@redhat.com --- Makefile.objs |1 + cpu-common.h |2 + memory.c | 97

[Qemu-devel] [RESEND PATCH v3 2/2] RAM API: Make use of it for x86 PC

2010-12-13 Thread Alex Williamson
Register the actual VM RAM using the new API Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/pc.c |9 +++-- 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index e1b2667..1554164 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -913,14 +913,11 @@

Re: [Qemu-devel] [PATCH] libiscsi

2010-12-13 Thread Blue Swirl
On Mon, Dec 13, 2010 at 8:05 AM, Ronnie Sahlberg ronniesahlb...@gmail.com wrote: This patch adds a new block driver : block.iscsi.c This driver interfaces with the multiplatform posix library for iscsi initiator/client access to iscsi devices hosted at git://github.com/sahlberg/libiscsi.git

Re: [Qemu-devel] [RESEND PATCH v3 1/2] Minimal RAM API support

2010-12-13 Thread Blue Swirl
On Mon, Dec 13, 2010 at 8:47 PM, Alex Williamson alex.william...@redhat.com wrote: This adds a minimum chunk of Anthony's RAM API support so that we can identify actual VM RAM versus all the other things that make use of qemu_ram_alloc. Signed-off-by: Alex Williamson

[Qemu-devel] [RESEND PATCH] exec: Implement qemu_ram_free_from_ptr()

2010-12-13 Thread Alex Williamson
Required for regions mapped via qemu_ram_alloc_from_ptr(). VFIO and ivshmem will make use of this to remove mappings when devices are hot unplugged. Signed-off-by: Alex Williamson alex.william...@redhat.com --- No comments on original patch. Obvious missing function. Cam has since requested

[Qemu-devel] Re: [RESEND PATCH v3 1/2] Minimal RAM API support

2010-12-13 Thread Anthony Liguori
On 12/13/2010 02:47 PM, Alex Williamson wrote: This adds a minimum chunk of Anthony's RAM API support so that we can identify actual VM RAM versus all the other things that make use of qemu_ram_alloc. Signed-off-by: Alex Williamsonalex.william...@redhat.com --- Makefile.objs |1 +

[Qemu-devel] [PATCH v4 0/2] Minimal RAM API support

2010-12-13 Thread Alex Williamson
Update per comments, Thanks, Alex v4: - ram_slot - RamSlot (per CODING_STYLE) - drop qemu_ prefix from functions (per CODING_STYLE) - mallocz - malloc - drop extraneous return from void function v3: - Address review comments - pc registers all memory below 4G in one chunk Let me know

[Qemu-devel] [PATCH] RFC: delay pci_update_mappings for 64-bit BARs

2010-12-13 Thread Cam Macdonell
Do not call pci_update_mappings on the lower 32-bits of a 64-bit bar. Wait for the upper 32 or else Qemu will try to map on just the lower 32 which is probably going to corrupt memory. I was encountering crashes when mapping certain PCI region sizes. The problem turns out that

[Qemu-devel] KVM call agenda for Dec 14

2010-12-13 Thread Chris Wright
Please send in any agenda items you are interested in covering. thanks, -chris

[Qemu-devel] [PATCH 04/11] ide: move transfer_start after variable modification

2010-12-13 Thread Alexander Graf
We hook into transfer_start and immediately call the end function for ahci. This means that everything needs to be in place for the end function when we start the transfer, so let's move the function down to where all state is in place. Signed-off-by: Alexander Graf ag...@suse.de ---

[Qemu-devel] [PATCH 01/11] ide: split ide command interpretation off

2010-12-13 Thread Alexander Graf
The ATA command interpretation code can be used for PATA and SATA interfaces alike. So let's split it out into a separate function. Signed-off-by: Alexander Graf ag...@suse.de --- v6 - v7: - use bus instead of opaque (stefanha) --- hw/ide/core.c | 20 ++--

[Qemu-devel] [PATCH 07/11] pci: add ich9 pci id

2010-12-13 Thread Alexander Graf
We need a PCI ID for our new AHCI adapter. I just picked an ICH-9 because that's the one in the Q35 chipset. This patch adds a PCI ID define for an ICH-9 AHCI adapter. Signed-off-by: Alexander Graf ag...@suse.de --- v3 - v4: - add ICH7 instead of ICH7M (herbszt) v4 - v5: - rename to

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

2010-12-13 Thread Alexander Graf
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. Signed-off-by: Roland Elek elek.rol...@gmail.com --- hw/ide/core.c |7

[Qemu-devel] [PATCH 00/11] AHCI emulation support v9

2010-12-13 Thread Alexander Graf
This patch adds support for AHCI emulation. I have tested and verified it works in Linux, OpenBSD, Windows Vista and Windows 7. This AHCI emulation supports NCQ, so multiple read or write requests can be outstanding at the same time. The code is however not fully optimized yet. I'm fairly sure

[Qemu-devel] [PATCH 03/11] ide: Split out BMDMA code from ATA core

2010-12-13 Thread Alexander Graf
The ATA core is currently heavily intertwined with BMDMA code. Let's loosen that a bit, so we can happily replace the DMA backend with different implementations. Signed-off-by: Alexander Graf ag...@suse.de --- v7 - v8: - rewrite as DMA ops v8 - v9: - fold in: split out irq setting -

[Qemu-devel] [PATCH 10/11] config: add ahci for pci capable machines

2010-12-13 Thread Alexander Graf
This patch enables AHCI for all machines supporting PCI. Signed-off-by: Alexander Graf ag...@suse.de --- default-configs/pci.mak |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/default-configs/pci.mak b/default-configs/pci.mak index d700b3c..0471efb 100644 ---

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

2010-12-13 Thread Alexander Graf
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(-) diff --git a/hw/pci_ids.h b/hw/pci_ids.h index 82cba7e..ea3418c 100644 --- a/hw/pci_ids.h +++ b/hw/pci_ids.h @@ -15,6 +15,7 @@

[Qemu-devel] [PATCH 02/11] ide: fix whitespace gap in ide_exec_cmd

2010-12-13 Thread Alexander Graf
Now that we have the function split out, we have to reindent it. In order to increase the readability of the actual functional change, this is split out. Signed-off-by: Alexander Graf ag...@suse.de --- hw/ide/core.c | 734 1 files

[Qemu-devel] [PATCH 11/11] ahci: set SATA Mode Select

2010-12-13 Thread Alexander Graf
From: Sebastian Herbszt herb...@gmx.de Set SATA Mode Select to AHCI in the Address Map Register. Signed-off-by: Sebastian Herbszt herb...@gmx.de --- hw/ide/ahci.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index f937a92..8ae236a

[Qemu-devel] [PATCH 09/11] config: move ide core and pci to pci.mak

2010-12-13 Thread Alexander Graf
Every device that can do PCI should also be able to do IDE. So let's move the IDE definitions over to pci.mak. Signed-off-by: Alexander Graf ag...@suse.de --- default-configs/arm-softmmu.mak |1 - default-configs/i386-softmmu.mak |3 --- default-configs/mips-softmmu.mak |

[Qemu-devel] [PATCH 08/11] ahci: add ahci emulation

2010-12-13 Thread Alexander Graf
This patch adds an emulation layer for an ICH-9 AHCI controller. For now this controller does not do IDE legacy emulation. It is a pure AHCI controller. Signed-off-by: Alexander Graf ag...@suse.de --- v1 - v2: - rename IDEExtender to IDEBusOps and make a pointer (kraxel) - make dma hooks

[Qemu-devel] [PATCH, RFC 3/4] prep: Fix duplicate ISA IDE IRQ

2010-12-13 Thread Andreas Färber
Calling isa_ide_init() twice with the same IRQ 13 fails: qemu: hardware error: isa irq 13 already assigned Use a different IRQ (14) for the second one to avoid this. Signed-off-by: Hervé Poussineau hpous...@reactos.org Cc: Alexander Graf ag...@suse.de Signed-off-by: Andreas Färber

[Qemu-devel] [PATCH 1/4] prep: Remove bogus BIOS size check

2010-12-13 Thread Andreas Färber
r3480 added this check to account for the entry vector 0xfff00100 to be available for CPUs that need it. Today however, the NIP is not yet initialized at this point (zero), so the check always triggers. Cc: Hervé Poussineau hpous...@reactos.org Cc: Alexander Graf ag...@suse.de Signed-off-by:

[Qemu-devel] [FYI 4/4] prep: Quickfix for ioport

2010-12-13 Thread Andreas Färber
Workaround the following error: qemu: hardware error: register_ioport_read: invalid opaque Signed-off-by: Hervé Poussineau hpous...@reactos.org Signed-off-by: Andreas Färber andreas.faer...@web.de --- hw/ppc_prep.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

[Qemu-devel] [PATCH 2/4] prep: Add ELF support

2010-12-13 Thread Andreas Färber
In order to switch from abondoned OpenHack'Ware to OpenBIOS firmware, the PReP machine needs to be able to load an ELF BIOS. ELF loading is adapted from ppc_newworld, the fallback mechanism from sun4m. Note that since we must register the maximum amount of ROM before attempting to load an ELF

[Qemu-devel] [PATCH 0/4] ppc: Fix PReP emulation

2010-12-13 Thread Andreas Färber
Hello, Based on an earlier attempt of mine to make OpenBIOS work with -M prep, with kind support from Hervé Poussineau here's an initial stab at fixing the long-broken PReP emulation and preparing migration from abandoned OpenHack'Ware to OpenBIOS as default FOSS firmware. In particular a number

[Qemu-devel] Can any one help me?

2010-12-13 Thread 欧阳晓华
I use qemu-0.13.0, and I want to emulate SPARC system, I did these: 1.qemu-img create solaris.img 10G 2.qemu-system-sparc -m 256 -hda solaris.img -boot d -cdrom sol-9-905-sparc.iso 3.qemu reported Unhandled Exception 0X0007, and then Stopping execution Any one known why this happened? Thank

[Qemu-devel] Re: [PATCH] rtl8139: IO memory is not part of vmstate

2010-12-13 Thread Michael S. Tsirkin
On Mon, Dec 13, 2010 at 12:15:08PM -0700, Alex Williamson wrote: On Mon, 2010-12-13 at 21:06 +0200, Michael S. Tsirkin wrote: On Mon, Dec 13, 2010 at 11:59:16AM -0700, Alex Williamson wrote: On Mon, 2010-12-13 at 20:54 +0200, Michael S. Tsirkin wrote: On Mon, Dec 13, 2010 at 11:00:44AM

Re: [Qemu-devel] Re: [PATCH] PCI: Bus number from the bridge, not the device

2010-12-13 Thread Michael S. Tsirkin
On Mon, Dec 13, 2010 at 01:04:23PM -0700, Alex Williamson wrote: On Mon, 2010-11-08 at 13:22 +0200, Michael S. Tsirkin wrote: On Mon, Oct 04, 2010 at 03:53:11PM -0600, Alex Williamson wrote: pcibus_dev_print() was erroneously retrieving the device bus number from the secondary bus number

Re: [Qemu-devel] Re: [PATCH] PCI: Bus number from the bridge, not the device

2010-12-13 Thread Alex Williamson
On Tue, 2010-12-14 at 06:46 +0200, Michael S. Tsirkin wrote: On Mon, Dec 13, 2010 at 01:04:23PM -0700, Alex Williamson wrote: On Mon, 2010-11-08 at 13:22 +0200, Michael S. Tsirkin wrote: On Mon, Oct 04, 2010 at 03:53:11PM -0600, Alex Williamson wrote: pcibus_dev_print() was erroneously

Re: [Qemu-devel] Re: [PATCH] PCI: Bus number from the bridge, not the device

2010-12-13 Thread Michael S. Tsirkin
On Mon, Dec 13, 2010 at 09:49:21PM -0700, Alex Williamson wrote: On Tue, 2010-12-14 at 06:46 +0200, Michael S. Tsirkin wrote: On Mon, Dec 13, 2010 at 01:04:23PM -0700, Alex Williamson wrote: On Mon, 2010-11-08 at 13:22 +0200, Michael S. Tsirkin wrote: On Mon, Oct 04, 2010 at 03:53:11PM

[Qemu-devel] Re: [PATCH] rtl8139: IO memory is not part of vmstate

2010-12-13 Thread Alex Williamson
On Tue, 2010-12-14 at 06:43 +0200, Michael S. Tsirkin wrote: On Mon, Dec 13, 2010 at 12:15:08PM -0700, Alex Williamson wrote: On Mon, 2010-12-13 at 21:06 +0200, Michael S. Tsirkin wrote: On Mon, Dec 13, 2010 at 11:59:16AM -0700, Alex Williamson wrote: On Mon, 2010-12-13 at 20:54 +0200,

Re: [Qemu-devel] Re: [PATCH] PCI: Bus number from the bridge, not the device

2010-12-13 Thread Alex Williamson
On Tue, 2010-12-14 at 06:57 +0200, Michael S. Tsirkin wrote: On Mon, Dec 13, 2010 at 09:49:21PM -0700, Alex Williamson wrote: On Tue, 2010-12-14 at 06:46 +0200, Michael S. Tsirkin wrote: On Mon, Dec 13, 2010 at 01:04:23PM -0700, Alex Williamson wrote: On Mon, 2010-11-08 at 13:22 +0200,

[Qemu-devel] SMBIOS support in Qemu?

2010-12-13 Thread Anjali Kulkarni
Hi, Which version of Qemu contains the Smbios code? If I have to get the code in my repo, is there any place I can get the complete set of patches? Thanks Anjali

[Qemu-devel] SMBIOS support in Qemu?

2010-12-13 Thread Anjali Kulkarni
Hi, Which version of Qemu contains the Smbios code? If I have to get the code in my repo, is there any place I can get the complete set of patches? Thanks Anjali

Re: [Qemu-devel] SMBIOS support in Qemu?

2010-12-13 Thread Alex Williamson
On Mon, Dec 13, 2010 at 10:47 PM, Anjali Kulkarni anj...@juniper.net wrote: Hi, Which version of Qemu contains the Smbios code? If I have to get the code in my repo, is there any place I can get the complete set of patches? We've had SMBIOS support for a couple years, it should be in any of