[Qemu-devel] Re: sparc OBP psr value

2010-12-12 Thread Blue Swirl
On Sun, Dec 12, 2010 at 12:17 AM, Bob Breuer breu...@mc.net wrote: Under qemu-system-sparc, I found a problem with OBP's psr commands. On an real SS-20, I get:    ok .psr    CWP: 4  ET: 1  PS: 1  S: 1  PIL: f  EF: 1  EC: 0  ICC: nZvc  VER: 0 IMPL: 4    ok %psr .    40401fe4 But with qemu,

Re: [Qemu-devel] [PATCH] wdt_i6300esb: register a reset function

2010-12-12 Thread Richard W.M. Jones
On Sat, Dec 11, 2010 at 06:39:03PM +, Blue Swirl wrote: Thanks, applied. Wait! This patch is incomplete. I already posted a complete patch already some months ago (twice) but it was ignored both times: http://www.mail-archive.com/qemu-devel@nongnu.org/msg42716.html

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

2010-12-12 Thread Michael S. Tsirkin
On Thu, Dec 09, 2010 at 03:14:17PM -0700, Alex Williamson wrote: On Thu, 2010-12-09 at 22:49 +0100, Juan Quintela wrote: Alex Williamson alex.william...@redhat.com wrote: The cpu_register_io_memory() value is unique to the VM instance and should not be restored after migration/save.

Re: [Qemu-devel] [PATCH] wdt_i6300esb: register a reset function

2010-12-12 Thread Blue Swirl
On Sun, Dec 12, 2010 at 10:08 AM, Richard W.M. Jones rjo...@redhat.com wrote: On Sat, Dec 11, 2010 at 06:39:03PM +, Blue Swirl wrote: Thanks, applied. Wait!  This patch is incomplete. I already posted a complete patch already some months ago (twice) but it was ignored both times:

Re: [Qemu-devel] [PATCH] wdt_i6300esb: register a reset function

2010-12-12 Thread Richard W.M. Jones
On Sun, Dec 12, 2010 at 10:59:59AM +, Blue Swirl wrote: On Sun, Dec 12, 2010 at 10:08 AM, Richard W.M. Jones rjo...@redhat.com wrote: On Sat, Dec 11, 2010 at 06:39:03PM +, Blue Swirl wrote: Thanks, applied. Wait!  This patch is incomplete. I already posted a complete patch

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

2010-12-12 Thread Michael S. Tsirkin
On Wed, Nov 17, 2010 at 04:19:27PM +, Stefan Hajnoczi wrote: Virtqueue notify is currently handled synchronously in userspace virtio. This prevents the vcpu from executing guest code while hardware emulation code handles the notify. On systems that support KVM, the ioeventfd mechanism

[Qemu-devel] Re: [PATCH v4 4/4] docs: Document virtio PCI -device ioeventfd=on|off

2010-12-12 Thread Michael S. Tsirkin
On Wed, Nov 17, 2010 at 04:19:29PM +, Stefan Hajnoczi wrote: Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- docs/qdev-device-use.txt |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/qdev-device-use.txt b/docs/qdev-device-use.txt

[Qemu-devel] [PULL] pci, virtio, net, migration

2010-12-12 Thread Michael S. Tsirkin
The following changes since commit 962630f207a33b7de4316022884b5241e05491cd: Pass boot device list to firmware. (2010-12-11 21:32:48 +) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.git for_anthony Isaku Yamahata (1): pci: make

Re: [Qemu-devel] [PATCH 0/6] usb-ccid (v8)

2010-12-12 Thread Alon Levy
On Sat, Dec 11, 2010 at 03:55:10PM +, Blue Swirl wrote: On Sat, Dec 11, 2010 at 3:33 PM, Hans de Goede hdego...@redhat.com wrote: Hi, On 12/11/2010 10:43 AM, Blue Swirl wrote: On Tue, Dec 7, 2010 at 10:20 AM, Alon Levyal...@redhat.com  wrote: ping. I don't think Anthony's

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

2010-12-12 Thread Juan Quintela
Michael S. Tsirkin m...@redhat.com wrote: On Thu, Dec 09, 2010 at 03:14:17PM -0700, Alex Williamson wrote: On Thu, 2010-12-09 at 22:49 +0100, Juan Quintela wrote: Alex Williamson alex.william...@redhat.com wrote: The cpu_register_io_memory() value is unique to the VM instance and should

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

2010-12-12 Thread Michael S. Tsirkin
On Sun, Dec 12, 2010 at 05:23:39PM +0530, Juan Quintela wrote: Michael S. Tsirkin m...@redhat.com wrote: On Thu, Dec 09, 2010 at 03:14:17PM -0700, Alex Williamson wrote: On Thu, 2010-12-09 at 22:49 +0100, Juan Quintela wrote: Alex Williamson alex.william...@redhat.com wrote: The

Re: [Qemu-devel] [PATCH] wdt_i6300esb: register a reset function

2010-12-12 Thread Blue Swirl
Thanks, applied. On Sun, Dec 12, 2010 at 11:15 AM, Richard W.M. Jones rjo...@redhat.com wrote: On Sun, Dec 12, 2010 at 10:59:59AM +, Blue Swirl wrote: On Sun, Dec 12, 2010 at 10:08 AM, Richard W.M. Jones rjo...@redhat.com wrote: On Sat, Dec 11, 2010 at 06:39:03PM +, Blue Swirl

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

2010-12-12 Thread Juan Quintela
Michael S. Tsirkin m...@redhat.com wrote: On Sun, Dec 12, 2010 at 05:23:39PM +0530, Juan Quintela wrote: Michael S. Tsirkin m...@redhat.com wrote: On Thu, Dec 09, 2010 at 03:14:17PM -0700, Alex Williamson wrote: How about we keep migrating the index for the benefit of old versions, but

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

2010-12-12 Thread Andreas Färber
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 lance.o tcx.o sun4m_iommu.o slavio_intctl.o

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

2010-12-12 Thread Stefan Hajnoczi
See below for the v5 changelog. Due to lack of connectivity I am sending from GMail. Git should retain my stefa...@linux.vnet.ibm.com From address. Virtqueue notify is currently handled synchronously in userspace virtio. This prevents the vcpu from executing guest code while hardware emulation

[Qemu-devel] [PATCH v5 1/4] virtio-pci: Rename bugs field to flags

2010-12-12 Thread Stefan Hajnoczi
The VirtIOPCIProxy bugs field is currently used to enable workarounds for older guests. Rename it to flags so that other per-device behavior can be tracked. A later patch uses the flags field to remember whether ioeventfd should be used for virtqueue host notification. Signed-off-by: Stefan

[Qemu-devel] [PATCH v5 4/4] docs: Document virtio PCI -device ioeventfd=on|off

2010-12-12 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- docs/qdev-device-use.txt |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/docs/qdev-device-use.txt b/docs/qdev-device-use.txt index f252c8e..84d0c82 100644 --- a/docs/qdev-device-use.txt +++

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

2010-12-12 Thread Stefan Hajnoczi
Virtqueue notify is currently handled synchronously in userspace virtio. This prevents the vcpu from executing guest code while hardware emulation code handles the notify. On systems that support KVM, the ioeventfd mechanism can be used to make virtqueue notify a lightweight exit by deferring

[Qemu-devel] [PATCH v5 3/4] virtio-pci: Don't use ioeventfd on old kernels

2010-12-12 Thread Stefan Hajnoczi
There used to be a limit of 6 KVM io bus devices inside the kernel. On such a kernel, don't use ioeventfd for virtqueue host notification since the limit is reached too easily. This ensures that existing vhost-net setups (which always use ioeventfd) have ioeventfds available so they can continue

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

2010-12-12 Thread Stefan Hajnoczi
On Sun, Dec 12, 2010 at 11:22 AM, Michael S. Tsirkin m...@redhat.com wrote: On Wed, Nov 17, 2010 at 04:19:27PM +, Stefan Hajnoczi wrote: Virtqueue notify is currently handled synchronously in userspace virtio.   This prevents the vcpu from executing guest code while hardware emulation code

Re: [Qemu-devel] [PATCH 0/6] usb-ccid (v8)

2010-12-12 Thread Blue Swirl
On Sun, Dec 12, 2010 at 11:35 AM, Alon Levy al...@redhat.com wrote: On Sat, Dec 11, 2010 at 03:55:10PM +, Blue Swirl wrote: On Sat, Dec 11, 2010 at 3:33 PM, Hans de Goede hdego...@redhat.com wrote: Hi, On 12/11/2010 10:43 AM, Blue Swirl wrote: On Tue, Dec 7, 2010 at 10:20 AM, Alon

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

2010-12-12 Thread Stefan Hajnoczi
On Sun, Dec 12, 2010 at 3:02 PM, Stefan Hajnoczi stefa...@gmail.com wrote: Due to lack of connectivity I am sending from GMail.  Git should retain my stefa...@linux.vnet.ibm.com From address. The From address didn't come through correctly so I've pushed the commits here: git pull

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

2010-12-12 Thread Stefan Hajnoczi
Do you have qemu-io support for discard? Any hints on testing this? A recent guest kernel and ext -o discard might exercise the code but I haven't tried yet. Stefan

Re: [Qemu-devel] [PATCH 0/6] usb-ccid (v8)

2010-12-12 Thread Alon Levy
On Sun, Dec 12, 2010 at 03:07:52PM +, Blue Swirl wrote: snip There is a typo in configure: diff --git a/configure b/configure index 4b55904..7288b09 100755 --- a/configure +++ b/configure @@ -2142,7 +2142,7 @@ if test $smartcard != no ; then QEMU_CFLAGS=$QEMU_CFLAGS

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

2010-12-12 Thread Alex Williamson
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 m...@redhat.com wrote: On Thu, Dec 09, 2010 at 03:14:17PM -0700, Alex Williamson wrote: How about we keep

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

2010-12-12 Thread Michael S. Tsirkin
On Sun, Dec 12, 2010 at 09:29:05AM -0700, Alex Williamson 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 m...@redhat.com wrote: On Thu, Dec 09,

[Qemu-devel] [PATCH 0/5] usb-ccid (v9)

2010-12-12 Thread Alon Levy
This patchset adds three new devices, usb-ccid, ccid-card-passthru and ccid-card-emulated, providing a CCID bus, a simple passthru protocol implementing card requiring a client, and a standalone emulated card. It also introduces a new directory libcaccard with CAC card emulation, CAC is a type of

[Qemu-devel] [PATCH 2/5] ccid: add passthru card device

2010-12-12 Thread Alon Levy
Signed-off-by: Alon Levy al...@redhat.com --- Makefile.objs |2 +- hw/ccid-card-passthru.c | 277 + libcacard/vscard_common.h | 130 + 3 files changed, 408 insertions(+), 1 deletions(-) create mode 100644

[Qemu-devel] [PATCH 4/5] ccid: add ccid-card-emulated device (v2)

2010-12-12 Thread Alon Levy
changes from v1: remove stale comments, use only c-style comments bugfix, forgot to set recv_len change reader name to 'Virtual Reader' Signed-off-by: Alon Levy al...@redhat.com --- Makefile.objs |2 +- hw/ccid-card-emulated.c | 501

[Qemu-devel] [PATCH 5/5] smartcard: add docs

2010-12-12 Thread Alon Levy
--- docs/ccid.txt | 125 ++ docs/libcacard.txt | 483 2 files changed, 608 insertions(+), 0 deletions(-) create mode 100644 docs/ccid.txt create mode 100644 docs/libcacard.txt diff --git a/docs/ccid.txt b/docs/ccid.txt new

[Qemu-devel] [PATCH 1/5] usb-ccid: add CCID bus

2010-12-12 Thread Alon Levy
A CCID device is a smart card reader. It is a USB device, defined at [1]. This patch introduces the usb-ccid device that is a ccid bus. Next patches will introduce two card types to use it, a passthru card and an emulated card. [1]

Re: [Qemu-devel] Re: sparc OBP psr value

2010-12-12 Thread Bob Breuer
Blue Swirl wrote: On Sun, Dec 12, 2010 at 12:17 AM, Bob Breuer breu...@mc.net wrote: Under qemu-system-sparc, I found a problem with OBP's psr commands. On an real SS-20, I get: ok .psr CWP: 4 ET: 1 PS: 1 S: 1 PIL: f EF: 1 EC: 0 ICC: nZvc VER: 0 IMPL: 4 ok %psr .

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

2010-12-12 Thread Kevin O'Connor
On Wed, Dec 08, 2010 at 03:08:59PM -0200, Marcelo Tosatti wrote: Use _RMV method to indicate whether device can be removed. Data is retrieved from QEMU via I/O port 0xae0c. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Thanks Marcelo, Can you add acked-bys from the qemu/kvm

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

2010-12-12 Thread Gleb Natapov
On Sun, Dec 12, 2010 at 02:11:29PM -0500, Kevin O'Connor wrote: On Wed, Dec 08, 2010 at 03:08:59PM -0200, Marcelo Tosatti wrote: Use _RMV method to indicate whether device can be removed. Data is retrieved from QEMU via I/O port 0xae0c. Signed-off-by: Marcelo Tosatti

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

2010-12-12 Thread Kevin O'Connor
On Sun, Dec 12, 2010 at 09:49:16PM +0200, Gleb Natapov wrote: On Sun, Dec 12, 2010 at 02:11:29PM -0500, Kevin O'Connor wrote: On Wed, Dec 08, 2010 at 03:08:59PM -0200, Marcelo Tosatti wrote: Use _RMV method to indicate whether device can be removed. Data is retrieved from QEMU via I/O

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

2010-12-12 Thread Michael S. Tsirkin
On Sun, Dec 12, 2010 at 03:02:04PM +, Stefan Hajnoczi wrote: See below for the v5 changelog. Due to lack of connectivity I am sending from GMail. Git should retain my stefa...@linux.vnet.ibm.com From address. Virtqueue notify is currently handled synchronously in userspace virtio.

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

2010-12-12 Thread Michael S. Tsirkin
On Sun, Dec 12, 2010 at 10:41:28PM +0200, Michael S. Tsirkin wrote: On Sun, Dec 12, 2010 at 03:02:04PM +, Stefan Hajnoczi wrote: See below for the v5 changelog. Due to lack of connectivity I am sending from GMail. Git should retain my stefa...@linux.vnet.ibm.com From address.

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

2010-12-12 Thread Michael S. Tsirkin
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 12, 2010 at 03:02:04PM +, Stefan Hajnoczi wrote: See below for the v5 changelog. Due to lack of connectivity I am sending from GMail.

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

2010-12-12 Thread Michael S. Tsirkin
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 12, 2010 at 03:02:04PM +, Stefan Hajnoczi wrote: See below for the

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

2010-12-12 Thread Juan Quintela
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 m...@redhat.com wrote: On Thu, Dec 09, 2010 at 03:14:17PM

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

2010-12-12 Thread Marcelo Tosatti
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 come from? Its the next available address after

[Qemu-devel] A problem about qemu compiling .

2010-12-12 Thread D Prince
Hi, I am a college student.When I am trying to compile qemu 0.9.1 under MingW(gcc 3.4.5).For some reason,I have to use this particular version.But an error keep showing up. $ make make: *** No rule to make target `irq.o', needed by `libqemu_common.a'. Stop. Can you tell how to fix

Re: [Qemu-devel] A problem about qemu compiling .

2010-12-12 Thread Mulyadi Santosa
On Mon, Dec 13, 2010 at 08:12, D Prince prince.d...@gmail.com wrote: Hi, I am a college student.When I am trying to compile qemu 0.9.1 under MingW(gcc 3.4.5).For some reason,I have to use this particular version.But an error keep showing up.    $ make    make: *** No rule to make target

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

2010-12-12 Thread अनुज
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 command but the status returned is UNSUPPORTED. If anyone provide example VirtIO SCSI Command request structure for

Re: [Qemu-devel] A problem about qemu compiling .

2010-12-12 Thread Mulyadi Santosa
Hi... On Mon, Dec 13, 2010 at 09:32, D Prince prince.d...@gmail.com wrote: I invoked $ ./configure --target-list=i386-softmmu --static --enable-adlib Here, I am using Centos 5.5 and gcc 4.1.2, I tried the same way on qemu 0.13.0 and it works. The difference is just I invoke it this way:

[Qemu-devel] Re: [PATCH 00/15] Megasas HBA emulation and SCSI update v.3

2010-12-12 Thread Hannes Reinecke
On 12/10/2010 11:14 PM, Paolo Bonzini wrote: On 11/24/2010 05:50 PM, Christoph Hellwig wrote: Btw, it might make sense to split this series into two. Patches 1 to 11 are genuine improvements to the SCSI code, which I'd like to see merged ASAP. The rest is the actual megasas driver, which I

[Qemu-devel] [PATCH 3/3] Prevent creating an image with the same filename as backing file

2010-12-12 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- block.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 3ab062c..403a434 100644 --- a/block.c +++ b/block.c @@ -2752,6 +2752,13 @@ int

[Qemu-devel] [PATCH 0/3] Re-factor img_create() and add live snapshots

2010-12-12 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com Hi, This set of patches re-factors img_create() and moves the core part of it into block.c so it can be accessed from qemu as well as qemu-img. The second patch adds basic live snapshots support to the code, however only snapshots to external QCOW2

[Qemu-devel] [PATCH 2/3] Introduce do_snapshot_blkdev() and monitor command to handle it.

2010-12-12 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com The monitor command is: snapshot_blkdev device [snapshot-file] [format] Default format is qcow2. For now snapshots without a snapshot-file, eg internal snapshots, are not supported. Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- blockdev.c

[Qemu-devel] [PATCH 1/3] qemu-img.c: Re-factor img_create()

2010-12-12 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com This patch re-factors img_create() moving the code doing the actual work into block.c where it can be shared with QEMU. This is needed to be able to create images from QEMU to be used for live snapshots. Signed-off-by: Jes Sorensen

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

2010-12-12 Thread Stefan Hajnoczi
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 command but the status returned is UNSUPPORTED. If anyone

[Qemu-devel] [Bug 687733] Re: Linux KSM not compiled in (MADV_MERGEABLE always undef)

2010-12-12 Thread Walter Haidinger
I see. Never considered a glibc header dependency. In fact, I thought that having at least kernel 2.6.32 and recent qemu-kvm would suffice... How about an --enable-ksm configure option which checks and requires MADV_MERGABLE to be defined? That way, people (like me) would notice instead of