[Qemu-devel] [PATCH REBASE/RESEND 4/4] block_int.h: Provide documentation for common block qdev properties

2011-02-03 Thread Amit Shah
Document the options common to all block devices. This comes from Kevin. Signed-off-by: Amit Shah Acked-by: Markus Armbruster CC: Kevin Wolf --- block_int.h | 20 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/block_int.h b/block_int.h index fdde005..2e

[Qemu-devel] [PATCH REBASE/RESEND 2/4] virtio-serial: Add description fields for qdev properties

2011-02-03 Thread Amit Shah
Document the parameters for the virtserialport and virtioconsole devices. Example: $ ./x86_64-softmmu/qemu-system-x86_64 -device virtserialport,? virtserialport.nr=uint32, The 'number' for the port for \ predictable port numbers. Use this to spawn ports if you \ plan to migrate the guest. virtse

[Qemu-devel] [PATCH REBASE/RESEND 3/4] net.h: Add description fields for qdev properites

2011-02-03 Thread Amit Shah
This results in an output like: $ ./x86_64-softmmu/qemu-system-x86_64 -device virtio-net-pci,? ... virtio-net-pci.mac=macaddr, The MAC address for the NIC. virtio-net-pci.vlan=vlan, The VLAN to associate the NIC with. virtio-net-pci.netdev=netdev, The peer net device to associate with this virt

Re: [Qemu-devel] [PATCHv2] e1000: multi-buffer packet support

2011-02-03 Thread Stefan Hajnoczi
On Thu, Feb 3, 2011 at 4:49 PM, Michael S. Tsirkin wrote: > e1000 supports multi-buffer packets larger than rxbuf_size. > > This fixes the following (on linux): > - in guest: ifconfig eth1 mtu 16110 > - in host: ifconfig tap0 mtu 16110 >           ping -s 16082 > > Red Hat bugzilla: https://bugzi

[Qemu-devel] [PATCH REBASE/RESEND 0/4] Auto-document qdev devices

2011-02-03 Thread Amit Shah
Hello, This is yet another rebase of the patchset I'd sent earlier. The usual notes apply: this is just the start, just getting the framework in place and a few examples so that people can then pick up and start documenting their devices and options. We want to see all of the devices covered, an

Re: [Qemu-devel] [PATCH 1/2] Add virtagent file system freeze/thaw

2011-02-03 Thread Stefan Hajnoczi
On Thu, Feb 3, 2011 at 5:41 PM, Michael Roth wrote: > For things like logging and i/o on a frozen system...I agree we'd need some > flag for these kinds of situations. Maybe a disable_logging() flagi > really don't like this though... I'd imagine even syslogd() could block > virtagent in this

[Qemu-devel] Re: QCOW2 bugs releated to qcow2_aio_cancel()

2011-02-03 Thread Stefan Hajnoczi
On Thu, Feb 3, 2011 at 5:44 PM, Kevin Wolf wrote: > Given that a cancel shouldn't happen too often, I think it would be > reasonable to take the same approach for qcow2. I don't think adding a > lot of complexity for getting this right is justified. > > Stefan, what do you think? Maybe we could ev

[Qemu-devel] [PATCH] iSCSI support

2011-02-03 Thread ronniesahlberg
From: 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.

[Qemu-devel] iSCSI block driver support

2011-02-03 Thread ronniesahlberg
The following patch adds a new block driver to QEMU/KVM for iSCSI. This utilizes the userspace client library for iscsi at https://github.com/sahlberg/libiscsi and will link with this library if available. This allows using iSCSI resources with QEMU/KVM without making them visible to the underl

[Qemu-devel] Re: [PATCH 2/3] AMD IOMMU support

2011-02-03 Thread Isaku Yamahata
On Fri, Feb 04, 2011 at 01:24:14AM +0200, Eduard - Gabriel Munteanu wrote: > This initializes the AMD IOMMU and creates ACPI tables for it. > > Signed-off-by: Eduard - Gabriel Munteanu > --- > src/acpi.c | 84 > > src/config.h |

Re: [Qemu-devel] Re: [RFC: 0/2] patch for QEMU HPET periodic timer emulation to alleviate time drift

2011-02-03 Thread Anthony Liguori
On 02/03/2011 03:24 PM, Jan Kiszka wrote: On 2011-02-03 21:07, Anthony Liguori wrote: On 02/03/2011 09:28 AM, Jan Kiszka wrote: On 2011-02-03 14:43, Ulrich Obergfell wrote: Hi, I am observing severe backward time drift in a MS Windows Vista(tm) guest running on a Fedora 14

Re: [Qemu-devel] Re: [RFC: 0/2] patch for QEMU HPET periodic timer emulation to alleviate time drift

2011-02-03 Thread Jan Kiszka
On 2011-02-03 21:07, Anthony Liguori wrote: > On 02/03/2011 09:28 AM, Jan Kiszka wrote: >> On 2011-02-03 14:43, Ulrich Obergfell wrote: >> >>> Hi, >>> >>> I am observing severe backward time drift in a MS Windows Vista(tm) >>> guest running on a Fedora 14 KVM host. I can reproduce the problem >>

[Qemu-devel] [PATCH 04/17] qdev-properties: parse_enum: don't cast a void*

2011-02-03 Thread Alon Levy
Signed-off-by: Alon Levy --- hw/qdev-properties.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c index 3157721..9108f18 100644 --- a/hw/qdev-properties.c +++ b/hw/qdev-properties.c @@ -75,7 +75,7 @@ DEFINE_PROP_ENUM("foo", Sta

[Qemu-devel] [PATCH 02/10] qdev: add creation function that may fail

2011-02-03 Thread Blue Swirl
Signed-off-by: Blue Swirl --- hw/qdev.c | 14 +- hw/qdev.h |1 + 2 files changed, 14 insertions(+), 1 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index c7fec44..1aa1ea0 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -106,6 +106,18 @@ static DeviceState *qdev_create_from_info(Bus

[Qemu-devel] Re: [RFC][PATCH] apic: Fix relocation

2011-02-03 Thread Jan Kiszka
On 2011-02-03 20:43, Blue Swirl wrote: > On Thu, Feb 3, 2011 at 7:32 PM, Jan Kiszka wrote: >> When the guest remaps an APIC by modifying MSR_IA32_APICBASE, we need to >> update its mmio mapping. This is a bit tricky as multiple APICs might be >> mapped to the same address. So walk through the full

[Qemu-devel] [PATCH 12/17] ccid: configure: add --enable/disable and nss only disable

2011-02-03 Thread Alon Levy
add --enable-smartcard and --disable-smartcard flags, and let the nss check only disable building the ccid-card-emulated device, since both the usb-ccid and ccid-card-passthru don't depend on it. Signed-off-by: Alon Levy --- Makefile.objs |3 ++- Makefile.target |2 +- configure

Re: [Qemu-devel] New machine?

2011-02-03 Thread comicinker
Am Sonntag, den 30.01.2011, 11:13 + schrieb Peter Maydell: ... > > > Do I have to patch qemu to support a new machine? > > Yes, you would have to implement support for this board, > and also implement models of any devices which qemu > doesn't already have (probably most of them). In particul

[Qemu-devel] [PATCH 11/17] ccid: add docs

2011-02-03 Thread Alon Levy
Add documentation for the usb-ccid device and accompanying two card devices, ccid-card-emulated and ccid-card-passthru. Signed-off-by: Alon Levy --- docs/ccid.txt | 135 + 1 files changed, 135 insertions(+), 0 deletions(-) create mode 100

[Qemu-devel] [PATCH 0/3] SeaBIOS AMD IOMMU initialization patches

2011-02-03 Thread Eduard - Gabriel Munteanu
Hi, Here are the SeaBIOS parts that initialize the AMD IOMMU. I was told an ack from other QEMU/KVM developers would be nice, so please have a look. Thanks, Eduard Eduard - Gabriel Munteanu (3): pci: add pci_find_capability() helper AMD IOMMU support Clarify address space layout.

[Qemu-devel] [PATCH 3/3] Clarify address space layout.

2011-02-03 Thread Eduard - Gabriel Munteanu
This clarifies the address space layout by commenting on where APIC, IOAPIC and AMD IOMMU building regions end. Signed-off-by: Eduard - Gabriel Munteanu --- src/config.h |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/config.h b/src/config.h index 0ba5723..6a

[Qemu-devel] [PATCH 2/3] AMD IOMMU support

2011-02-03 Thread Eduard - Gabriel Munteanu
This initializes the AMD IOMMU and creates ACPI tables for it. Signed-off-by: Eduard - Gabriel Munteanu --- src/acpi.c | 84 src/config.h |3 ++ src/pci_ids.h |1 + src/pci_regs.h |1 + src/pciinit.c | 29 ++

[Qemu-devel] [PATCH 1/3] pci: add pci_find_capability() helper

2011-02-03 Thread Eduard - Gabriel Munteanu
pci_find_capability() looks up a given capability and returns its offset. This is needed by AMD IOMMU initialization code. Signed-off-by: Eduard - Gabriel Munteanu --- src/pci.c | 15 +++ src/pci.h |1 + 2 files changed, 16 insertions(+), 0 deletions(-) diff --git a/src/pci.c

[Qemu-devel] [PATCH 16/16] ccid.h: add copyright, fix define and remove non C89 comments

2011-02-03 Thread Alon Levy
--- hw/ccid.h | 17 + 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/hw/ccid.h b/hw/ccid.h index f5dcfae..df9af29 100644 --- a/hw/ccid.h +++ b/hw/ccid.h @@ -1,5 +1,14 @@ -#ifndef __CCID_H__ -#define __CCID_H__ +/* + * CCID Passthru Card Device emulation + * + * C

[Qemu-devel] [PATCH 15/16] ccid-card-emulated: don't link with NSS if --disable-smartcard-nss

2011-02-03 Thread Alon Levy
--- configure |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 2cd73b4..4189814 100755 --- a/configure +++ b/configure @@ -2256,13 +2256,14 @@ fi # check for libcacard for smartcard support if test "$smartcard" != "no" ; then smartca

[Qemu-devel] [PATCH 13/16] smartcard, configure: add --enable-smartcard-nss, report only nss

2011-02-03 Thread Alon Levy
Signed-off-by: Alon Levy --- configure | 28 1 files changed, 20 insertions(+), 8 deletions(-) diff --git a/configure b/configure index 8b86c9a..27e5488 100755 --- a/configure +++ b/configure @@ -174,8 +174,8 @@ trace_backend="nop" trace_file="trace" spice="" rb

[Qemu-devel] [PATCH 10/16] ccid: add docs

2011-02-03 Thread Alon Levy
Add documentation for the usb-ccid device and accompanying two card devices, ccid-card-emulated and ccid-card-passthru. Signed-off-by: Alon Levy --- docs/ccid.txt | 135 + 1 files changed, 135 insertions(+), 0 deletions(-) create mode 100

[Qemu-devel] [PATCH 12/16] ccid: add qdev description strings

2011-02-03 Thread Alon Levy
Signed-off-by: Alon Levy --- hw/ccid-card-emulated.c |1 + hw/ccid-card-passthru.c |1 + hw/usb-ccid.c |1 + 3 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/ccid-card-emulated.c b/hw/ccid-card-emulated.c index 09ce770..2e25daa 100644 --- a/hw/ccid-card-emul

[Qemu-devel] [PATCH 11/16] ccid: configure: add --enable/disable and nss only disable

2011-02-03 Thread Alon Levy
add --enable-smartcard and --disable-smartcard flags, and let the nss check only disable building the ccid-card-emulated device, since both the usb-ccid and ccid-card-passthru don't depend on it. Signed-off-by: Alon Levy --- Makefile.objs |3 ++- Makefile.target |2 +- configure

[Qemu-devel] [PATCH 14/16] smartcard,configure: report only nss

2011-02-03 Thread Alon Levy
Signed-off-by: Alon Levy --- configure |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 27e5488..2cd73b4 100755 --- a/configure +++ b/configure @@ -2510,8 +2510,7 @@ echo "Trace output file $trace_file-" echo "spice support $spice" echo

[Qemu-devel] [PATCH 05/16] usb-ccid: add CCID bus

2011-02-03 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] http://www.usb.org/developers/devclass_docs/DWG_Smart-Card_CCID_R

[Qemu-devel] [PATCH 07/16] ccid: add passthru card device

2011-02-03 Thread Alon Levy
The passthru ccid card is a device sitting on the usb-ccid bus and using a chardevice to communicate with a remote device using the VSCard protocol defined in libcacard/vscard_common.h Usage docs available in following patch in docs/ccid.txt Signed-off-by: Alon Levy --- Changes from v16->v17:

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

2011-02-03 Thread Alon Levy
This devices uses libcacard (internal) to emulate a smartcard conforming to the CAC standard. It attaches to the usb-ccid bus. Usage instructions (example command lines) are in the following patch in docs/ccid.txt. It uses libcacard which uses nss, so it can work with both hw cards and certificates

[Qemu-devel] [PATCH 06/16] introduce libcacard/vscard_common.h

2011-02-03 Thread Alon Levy
--- Signed-off-by: Alon Levy v15->v16 changes: Protocol change: * VSCMsgInit capabilities and magic * removed ReaderResponse, will use Error instead with code==VSC_SUCCESS. * adaded Flush and FlushComplete, remove Reconnect. * define VSCARD_MAGIC * added error code VSC_SUCCESS. Fixes: *

[Qemu-devel] [PATCH 03/16] qdev-properties: add PROP_TYPE_ENUM

2011-02-03 Thread Alon Levy
Example usage: EnumTable foo_enum_table[] = { {"bar", 1}, {"buz", 2}, {NULL, 0}, }; DEFINE_PROP_ENUM("foo", State, foo, 1, foo_enum_table) When using qemu -device foodev,? it will appear as: foodev.foo=bar/buz Signed-off-by: Alon Levy --- hw/qdev-properties.c | 60 +

[Qemu-devel] [PATCH 04/16] qdev-properties: parse_enum: don't cast a void*

2011-02-03 Thread Alon Levy
Signed-off-by: Alon Levy --- hw/qdev-properties.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c index 3157721..9108f18 100644 --- a/hw/qdev-properties.c +++ b/hw/qdev-properties.c @@ -75,7 +75,7 @@ DEFINE_PROP_ENUM("foo", Sta

[Qemu-devel] [PATCH 01/16] qdev: add print_options callback

2011-02-03 Thread Alon Levy
another callback added to PropertyInfo, for later use by PROP_TYPE_ENUM. Allows printing of runtime computed options when doing: qemu -device foo,? Signed-off-by: Alon Levy --- hw/qdev.c | 10 +- hw/qdev.h |1 + 2 files changed, 10 insertions(+), 1 deletions(-) diff --git a/hw/qd

[Qemu-devel] [PATCH 00/16] usb-ccid (v18)

2011-02-03 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 02/16] qdev: add data pointer to Property

2011-02-03 Thread Alon Levy
For later use by PROP_TYPE_ENUM, will store enumeration name/value table there. Signed-off-by: Alon Levy --- hw/qdev.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/qdev.h b/hw/qdev.h index fa3221b..3d9acd7 100644 --- a/hw/qdev.h +++ b/hw/qdev.h @@ -83,6 +83,7 @@ st

Re: [Qemu-devel] [PATCH 00/20] usb-ccid (v17)

2011-02-03 Thread Alon Levy
self NACK, I'll resend this merging vscard_common which I missed, and hopefully a correct subject too. On Thu, Feb 03, 2011 at 11:06:57PM +0200, Alon Levy wrote: > This patchset adds three new devices, usb-ccid, ccid-card-passthru and > ccid-card-emulated, providing a CCID bus, a simple passthru p

Re: [Qemu-devel] [PATCH 03/20] qdev-properties: add PROP_TYPE_ENUM

2011-02-03 Thread Alon Levy
On Thu, Feb 03, 2011 at 10:44:13AM -0600, Anthony Liguori wrote: > On 02/02/2011 02:28 PM, Alon Levy wrote: > >Example usage: > > > >EnumTable foo_enum_table[] = { > > {"bar", 1}, > > {"buz", 2}, > > {NULL, 0}, > >}; > > > >DEFINE_PROP_ENUM("foo", State, foo, 1, foo_enum_table) > > > >W

[Qemu-devel] [PATCH 14/17] smartcard, configure: add --enable-smartcard-nss, report only nss

2011-02-03 Thread Alon Levy
Signed-off-by: Alon Levy --- configure | 28 1 files changed, 20 insertions(+), 8 deletions(-) diff --git a/configure b/configure index 8b86c9a..27e5488 100755 --- a/configure +++ b/configure @@ -174,8 +174,8 @@ trace_backend="nop" trace_file="trace" spice="" rb

Re: [Qemu-devel] [PATCH 00/20] usb-ccid (v17)

2011-02-03 Thread Alon Levy
The copy should say 00/17, copy paste error. On Thu, Feb 03, 2011 at 11:06:57PM +0200, Alon Levy wrote: > 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 stan

[Qemu-devel] [0.14?][PATCH v3 3/4] ioapic: Add support for qemu-kvm's vmstate v2

2011-02-03 Thread Jan Kiszka
From: Jan Kiszka qemu-kvm carries the IOAPIC base address in its v2 vmstate. We only support the default base address so far, and saving even that in the device state was rejected. Add a padding field to be able to read qemu-kvm's old state, but increase our version to 3, indicating that we are

[Qemu-devel] [0.14?][PATCH v3 2/4] ioapic: Save/restore irr

2011-02-03 Thread Jan Kiszka
From: Jan Kiszka This is a guest modifiable state that must be saved/restored properly. Signed-off-by: Jan Kiszka --- hw/ioapic.c | 15 ++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/hw/ioapic.c b/hw/ioapic.c index 8bc31f7..8c46c1d 100644 --- a/hw/ioapic.c ++

[Qemu-devel] [0.14?][PATCH v3 1/4] ioapic: Implement EOI handling for level-triggered IRQs

2011-02-03 Thread Jan Kiszka
From: Jan Kiszka Add the missing EOI broadcast from local APIC to the IOAPICs on completion of level-triggered IRQs. This ensures that a still asserted IRQ source properly re-triggers an APIC IRQ. Signed-off-by: Jan Kiszka --- hw/apic.c |9 ++--- hw/ioapic.c | 43 ++

[Qemu-devel] [0.14?][PATCH v3 4/4] ioapic: Style & magics cleanup

2011-02-03 Thread Jan Kiszka
From: Jan Kiszka Fix a few style issues and convert magic numbers into prober symbolic constants, also fixing the wrong but unused IOAPIC_DM_SIPI value. Signed-off-by: Jan Kiszka --- hw/ioapic.c | 177 +++--- 1 files changed, 107 insertions(

[Qemu-devel] Re: [PATCH] checkpatch.pl: don't complain about old lines with tabs

2011-02-03 Thread Jan Kiszka
On 2011-02-03 18:55, Blue Swirl wrote: > Don't complain when the patch includes lines with tabs > only in the hunk's untouched context. > > Signed-off-by: Blue Swirl > --- > scripts/checkpatch.pl |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/scripts/checkpatch.p

[Qemu-devel] [0.14?][PATCH v3 0/4] IOAPIC fixes

2011-02-03 Thread Jan Kiszka
Third round, primarily dropping IOAPIC relocation support: - replace IOAPIC relocation with a qemu-kvm compat patch - fix ioapic_eoi_broadcast name Note that, even if we do not include the base address explicitly in the IOAPIC state, we will still need to read it out for KVM in-kernel support as

[Qemu-devel] [PATCH 16/17] ccid-card-emulated: don't link with NSS if --disable-smartcard-nss

2011-02-03 Thread Alon Levy
--- configure |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 2cd73b4..4189814 100755 --- a/configure +++ b/configure @@ -2256,13 +2256,14 @@ fi # check for libcacard for smartcard support if test "$smartcard" != "no" ; then smartca

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

2011-02-03 Thread Alon Levy
This devices uses libcacard (internal) to emulate a smartcard conforming to the CAC standard. It attaches to the usb-ccid bus. Usage instructions (example command lines) are in the following patch in docs/ccid.txt. It uses libcacard which uses nss, so it can work with both hw cards and certificates

[Qemu-devel] [PATCH 0.14] ui/sdl: Fix handling of caps lock and num lock keys

2011-02-03 Thread Stefan Weil
Starting with SDL version 1.2.14, caps lock and num lock keys will send a SDL_KEYUP when SDL_DISABLE_LOCK_KEYS=1 is set in the environment. The new code sets the environment unconditionally (it won't harm old versions which do not know it). The workaround for SDL_KEYUP is only compiled with old S

[Qemu-devel] [PATCH 08/17] ccid: add passthru card device

2011-02-03 Thread Alon Levy
The passthru ccid card is a device sitting on the usb-ccid bus and using a chardevice to communicate with a remote device using the VSCard protocol defined in libcacard/vscard_common.h Usage docs available in following patch in docs/ccid.txt Signed-off-by: Alon Levy --- Changes from v16->v17:

[Qemu-devel] [PATCH 13/17] ccid: add qdev description strings

2011-02-03 Thread Alon Levy
Signed-off-by: Alon Levy --- hw/ccid-card-emulated.c |1 + hw/ccid-card-passthru.c |1 + hw/usb-ccid.c |1 + 3 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/ccid-card-emulated.c b/hw/ccid-card-emulated.c index 09ce770..2e25daa 100644 --- a/hw/ccid-card-emul

[Qemu-devel] [PATCH 17/17] ccid.h: add copyright, fix define and remove non C89 comments

2011-02-03 Thread Alon Levy
--- hw/ccid.h | 17 + 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/hw/ccid.h b/hw/ccid.h index f5dcfae..df9af29 100644 --- a/hw/ccid.h +++ b/hw/ccid.h @@ -1,5 +1,14 @@ -#ifndef __CCID_H__ -#define __CCID_H__ +/* + * CCID Passthru Card Device emulation + * + * C

[Qemu-devel] [PATCH 07/17] libcacard/vscard_common.h update (v15->v16)

2011-02-03 Thread Alon Levy
Protocol change: * VSCMsgInit capabilities and magic * removed ReaderResponse, will use Error instead with code==VSC_SUCCESS. * adaded Flush and FlushComplete, remove Reconnect. * define VSCARD_MAGIC * added error code VSC_SUCCESS. Fixes: * update VSCMsgInit comment * fix message type enum

[Qemu-devel] [PATCH 05/17] usb-ccid: add CCID bus

2011-02-03 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] http://www.usb.org/developers/devclass_docs/DWG_Smart-Card_CCID_R

[Qemu-devel] [PATCH 15/17] smartcard,configure: report only nss

2011-02-03 Thread Alon Levy
Signed-off-by: Alon Levy --- configure |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 27e5488..2cd73b4 100755 --- a/configure +++ b/configure @@ -2510,8 +2510,7 @@ echo "Trace output file $trace_file-" echo "spice support $spice" echo

[Qemu-devel] [PATCH 02/17] qdev: add data pointer to Property

2011-02-03 Thread Alon Levy
For later use by PROP_TYPE_ENUM, will store enumeration name/value table there. Signed-off-by: Alon Levy --- hw/qdev.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/qdev.h b/hw/qdev.h index fa3221b..3d9acd7 100644 --- a/hw/qdev.h +++ b/hw/qdev.h @@ -83,6 +83,7 @@ st

[Qemu-devel] [PATCH 03/17] qdev-properties: add PROP_TYPE_ENUM

2011-02-03 Thread Alon Levy
Example usage: EnumTable foo_enum_table[] = { {"bar", 1}, {"buz", 2}, {NULL, 0}, }; DEFINE_PROP_ENUM("foo", State, foo, 1, foo_enum_table) When using qemu -device foodev,? it will appear as: foodev.foo=bar/buz Signed-off-by: Alon Levy --- hw/qdev-properties.c | 60 +

[Qemu-devel] [PATCH 08/10] x86: make vmmouse optional

2011-02-03 Thread Blue Swirl
Compile vmmouse in hwlib. Ignore failure if vmmouse device can't be created. Signed-off-by: Blue Swirl --- Makefile.objs |1 + Makefile.target|2 +- default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 + hw/pc.c

[Qemu-devel] [PATCH 06/10] vmmouse: convert to qdev

2011-02-03 Thread Blue Swirl
Convert to qdev, also add a proper reset function. Signed-off-by: Blue Swirl --- hw/pc.c |5 +++-- hw/pc.h |3 --- hw/vmmouse.c | 37 + 3 files changed, 32 insertions(+), 13 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index fcee09a..f66ac5

[Qemu-devel] [PATCH 06/17] introduce libcacard/vscard_common.h

2011-02-03 Thread Alon Levy
Signed-off-by: Alon Levy --- libcacard/vscard_common.h | 130 + 1 files changed, 130 insertions(+), 0 deletions(-) create mode 100644 libcacard/vscard_common.h diff --git a/libcacard/vscard_common.h b/libcacard/vscard_common.h new file mode 100644 in

[Qemu-devel] [PATCH 01/17] qdev: add print_options callback

2011-02-03 Thread Alon Levy
another callback added to PropertyInfo, for later use by PROP_TYPE_ENUM. Allows printing of runtime computed options when doing: qemu -device foo,? Signed-off-by: Alon Levy --- hw/qdev.c | 10 +- hw/qdev.h |1 + 2 files changed, 10 insertions(+), 1 deletions(-) diff --git a/hw/qd

[Qemu-devel] [PATCH 00/20] usb-ccid (v17)

2011-02-03 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 09/10] sysbus: add creation function that may fail

2011-02-03 Thread Blue Swirl
Signed-off-by: Blue Swirl --- hw/sysbus.c | 31 +++ hw/sysbus.h |9 + 2 files changed, 40 insertions(+), 0 deletions(-) diff --git a/hw/sysbus.c b/hw/sysbus.c index 1583bd8..8980f34 100644 --- a/hw/sysbus.c +++ b/hw/sysbus.c @@ -173,6 +173,37 @@ DeviceSt

[Qemu-devel] [PATCH 10/10] hpet: make optional

2011-02-03 Thread Blue Swirl
Ignore failure with hpet device creation. Signed-off-by: Blue Swirl --- Makefile.objs |1 + Makefile.target|2 +- default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 + hw/hpet.c |2 -

[Qemu-devel] [PATCH 07/10] isa: add creation function that may fail

2011-02-03 Thread Blue Swirl
Signed-off-by: Blue Swirl --- hw/isa-bus.c | 12 hw/isa.h |1 + 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c index 0cb1afb..6f349a5 100644 --- a/hw/isa-bus.c +++ b/hw/isa-bus.c @@ -146,6 +146,18 @@ ISADevice *isa_create(const c

[Qemu-devel] [PATCH 04/10] x86,MIPS: make vmware_vga optional

2011-02-03 Thread Blue Swirl
Allow failure with vmware_vga device creation and use standard VGA instead. Signed-off-by: Blue Swirl --- hw/mips_malta.c |6 +- hw/pc.c | 11 --- hw/vmware_vga.h | 11 +-- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/hw/mips_malta.c b/hw/mi

[Qemu-devel] [PATCH 03/10] pci: add creation functions that may fail

2011-02-03 Thread Blue Swirl
Signed-off-by: Blue Swirl --- hw/pci.c | 20 hw/pci.h |4 2 files changed, 24 insertions(+), 0 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index d5bbba9..5e6e216 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -1708,6 +1708,21 @@ PCIDevice *pci_create_multifunction(PCIB

[Qemu-devel] [PATCH 05/10] vmport: convert to qdev

2011-02-03 Thread Blue Swirl
Signed-off-by: Blue Swirl --- hw/pc.h |1 - hw/pc_piix.c |2 -- hw/vmport.c | 24 +--- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/hw/pc.h b/hw/pc.h index a048768..603a2a3 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -65,7 +65,6 @@ void hpet_pit_di

[Qemu-devel] [PATCH 01/10] vmware_vga: refactor device creation

2011-02-03 Thread Blue Swirl
Turn vmsvga_init into an inline function. Signed-off-by: Blue Swirl --- hw/vmware_vga.c |5 - hw/vmware_vga.h |5 - 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c index 6c59053..4656767 100644 --- a/hw/vmware_vga.c +++ b/hw/vmware

[Qemu-devel] [PATCH v2 00/10] Make some devices optional

2011-02-03 Thread Blue Swirl
Disabling some devices from build is a frequently requested feature. Provide means to disable vmware_vga, vmmouse and HPET. Blue Swirl (10): vmware_vga: refactor device creation qdev: add creation function that may fail pci: add creation functions that may fail x86,MIPS: make vmware_vga op

[Qemu-devel] Re: [Bug 712416] Re: kvm_intel kernel module crash with via nano vmx

2011-02-03 Thread Serge Hallyn
Quoting khetzal (712...@bugs.launchpad.net): > Confirmation: totaly crash with latest build. Nothing in logs. Thanks for testing. Are you able to get in touch with the kvm (k...@vger.kernel.org) and linux-kernel (linux-ker...@vger.kernel.org) mailing list to follow up with upstream? -- You rece

Re: [Qemu-devel] [PATCH 01/20] qdev: add print_options callback

2011-02-03 Thread Alon Levy
On Thu, Feb 03, 2011 at 10:39:40AM -0600, Anthony Liguori wrote: > On 02/02/2011 02:28 PM, Alon Levy wrote: > >another callback added to PropertyInfo, for later use by PROP_TYPE_ENUM. > >Allows printing of runtime computed options when doing: > > qemu -device foo,? > >--- > > hw/qdev.c | 10 +++

Re: [Qemu-devel] [PATCH 4/4] target-arm: Fix decoding of Thumb preload and hint space

2011-02-03 Thread Peter Maydell
On 3 February 2011 19:43, Peter Maydell wrote: > @@ -8326,9 +8362,8 @@ static int disas_thumb2_insn(CPUState *env, > DisasContext *s, uint16_t insn_hw1) >                 imm = insn & 0xfff; >                 tcg_gen_addi_i32(addr, addr, imm); >             } else { > -                op = (insn

Re: [Qemu-devel] Re: [RFC: 0/2] patch for QEMU HPET periodic timer emulation to alleviate time drift

2011-02-03 Thread Anthony Liguori
On 02/03/2011 09:28 AM, Jan Kiszka wrote: On 2011-02-03 14:43, Ulrich Obergfell wrote: Hi, I am observing severe backward time drift in a MS Windows Vista(tm) guest running on a Fedora 14 KVM host. I can reproduce the problem with the following steps: 1. Use 'vncviewer' to connect to the g

Re: [Qemu-devel] [0.14?][PATCH 3/4] ioapic: Prepare for base address relocation

2011-02-03 Thread Jan Kiszka
On 2011-02-03 20:30, Blue Swirl wrote: > On Thu, Feb 3, 2011 at 7:25 PM, Jan Kiszka wrote: >> On 2011-02-03 20:11, Blue Swirl wrote: >>> On Thu, Feb 3, 2011 at 7:06 PM, Jan Kiszka wrote: On 2011-02-03 20:01, Blue Swirl wrote: > On Thu, Feb 3, 2011 at 6:01 PM, Jan Kiszka wrote: >> On

[Qemu-devel] Re: [0.14?][PATCH 1/4] ioapic: Implement EOI handling for level-triggered IRQs

2011-02-03 Thread Anthony Liguori
On 02/03/2011 08:55 AM, Jan Kiszka wrote: Add the missing EOI broadcast from local APIC to the IOAPICs on completion of level-triggered IRQs. This ensures that a still asserted IRQ source properly re-triggers an APIC IRQ. Signed-off-by: Jan Kiszka --- hw/apic.c |9 ++--- hw/ioapic.c

[Qemu-devel] [PATCH 4/4] target-arm: Fix decoding of Thumb preload and hint space

2011-02-03 Thread Peter Maydell
Refine the decoding of the Thumb preload and hint space, so we UNDEF on the patterns that are supposed to UNDEF rather than NOP. We also move the tests for this space earlier, so we don't emit harmless but unnecessary address generation code for preload hints (which by their nature are likely to be

Re: [Qemu-devel] [PATCH 05/20] usb-ccid: add CCID bus

2011-02-03 Thread Alon Levy
On Thu, Feb 03, 2011 at 08:53:07PM +0200, Alon Levy wrote: > On Thu, Feb 03, 2011 at 10:46:59AM -0600, Anthony Liguori wrote: > > On 02/02/2011 02:28 PM, Alon Levy wrote: > > >A CCID device is a smart card reader. It is a USB device, defined at [1]. > > >This patch introduces the usb-ccid device th

[Qemu-devel] [PATCH 3/4] target-arm: Fix decoding of preload and memory hint space

2011-02-03 Thread Peter Maydell
Correct the decoding of the ARM preload and memory hint space, by adding decoding of PLI, PLDW and the v7MP unallocated hint space. This commit also corrects a slightly overexuberant decoding of PLD(register) which was not checking that bit 4 was one. Signed-off-by: Peter Maydell --- target-arm/

[Qemu-devel] [PATCH 2/4] target-arm: Clean up handling of MPIDR

2011-02-03 Thread Peter Maydell
The ARM cp15 register 0,c0,c0,5 is standardised in the v7 architecture as the MPIDR. Clean up its implementation to remove A9 specific handling. This commit includes fixing an error in the value returned for the MPIDR on A9, where we were erroneously claiming a cluster ID of 9. Signed-off-by: Pet

[Qemu-devel] [PATCH 0/4] target-arm: Fix decoding of preload and hint insns

2011-02-03 Thread Peter Maydell
The primary aim of this patch series is to fix the decoding of the preload and hint instruction space (PLD, PLDW, PLI). Some of these instructions (PLDW and some unallocated space which should NOP) are v7MP only, so we introduce a feature flag for cores with the v7MP extensions. The flag also lets

[Qemu-devel] [RFC][PATCH] apic: Fix relocation

2011-02-03 Thread Jan Kiszka
When the guest remaps an APIC by modifying MSR_IA32_APICBASE, we need to update its mmio mapping. This is a bit tricky as multiple APICs might be mapped to the same address. So walk through the full list to avoid unmapping a region that is still in use. Signed-off-by: Jan Kiszka --- RFC as I did

[Qemu-devel] Re: [RFC][PATCH] apic: Fix relocation

2011-02-03 Thread Blue Swirl
On Thu, Feb 3, 2011 at 7:32 PM, Jan Kiszka wrote: > When the guest remaps an APIC by modifying MSR_IA32_APICBASE, we need to > update its mmio mapping. This is a bit tricky as multiple APICs might be > mapped to the same address. So walk through the full list to avoid > unmapping a region that is

Re: [Qemu-devel] [0.14?][PATCH 3/4] ioapic: Prepare for base address relocation

2011-02-03 Thread Blue Swirl
On Thu, Feb 3, 2011 at 7:25 PM, Jan Kiszka wrote: > On 2011-02-03 20:11, Blue Swirl wrote: >> On Thu, Feb 3, 2011 at 7:06 PM, Jan Kiszka wrote: >>> On 2011-02-03 20:01, Blue Swirl wrote: On Thu, Feb 3, 2011 at 6:01 PM, Jan Kiszka wrote: > On 2011-02-03 18:54, Blue Swirl wrote: >> On

[Qemu-devel] [PATCH 1/4] target-arm: Add CPU feature flag for v7MP

2011-02-03 Thread Peter Maydell
Add a CPU feature flag for v7MP (the multiprocessing extensions); some instructions exist only for v7MP and not for the base v7 architecture. Signed-off-by: Peter Maydell --- target-arm/cpu.h|3 ++- target-arm/helper.c |6 ++ 2 files changed, 8 insertions(+), 1 deletions(-) diff

Re: [Qemu-devel] [0.14?][PATCH 3/4] ioapic: Prepare for base address relocation

2011-02-03 Thread Jan Kiszka
On 2011-02-03 20:11, Blue Swirl wrote: > On Thu, Feb 3, 2011 at 7:06 PM, Jan Kiszka wrote: >> On 2011-02-03 20:01, Blue Swirl wrote: >>> On Thu, Feb 3, 2011 at 6:01 PM, Jan Kiszka wrote: On 2011-02-03 18:54, Blue Swirl wrote: > On Thu, Feb 3, 2011 at 5:43 PM, Jan Kiszka wrote: >> On

[Qemu-devel] [PATCH v3] make tsc stable over migration and machine start

2011-02-03 Thread Glauber Costa
If the machine is stopped, we should not record two different tsc values upon a save operation. The same problem happens with kvmclock. But kvmclock is taking a different diretion, being now seen as a separate device. Since this is unlikely to happen with the tsc, I am taking the approach here of

Re: [Qemu-devel] [0.14?][PATCH 3/4] ioapic: Prepare for base address relocation

2011-02-03 Thread Blue Swirl
On Thu, Feb 3, 2011 at 7:06 PM, Jan Kiszka wrote: > On 2011-02-03 20:01, Blue Swirl wrote: >> On Thu, Feb 3, 2011 at 6:01 PM, Jan Kiszka wrote: >>> On 2011-02-03 18:54, Blue Swirl wrote: On Thu, Feb 3, 2011 at 5:43 PM, Jan Kiszka wrote: > On 2011-02-03 18:36, Blue Swirl wrote: >> On

Re: [Qemu-devel] [0.14?][PATCH 3/4] ioapic: Prepare for base address relocation

2011-02-03 Thread Jan Kiszka
On 2011-02-03 20:01, Blue Swirl wrote: > On Thu, Feb 3, 2011 at 6:01 PM, Jan Kiszka wrote: >> On 2011-02-03 18:54, Blue Swirl wrote: >>> On Thu, Feb 3, 2011 at 5:43 PM, Jan Kiszka wrote: On 2011-02-03 18:36, Blue Swirl wrote: > On Thu, Feb 3, 2011 at 5:18 PM, Jan Kiszka wrote: >> On

Re: [Qemu-devel] [0.14?][PATCH 3/4] ioapic: Prepare for base address relocation

2011-02-03 Thread Blue Swirl
On Thu, Feb 3, 2011 at 6:01 PM, Jan Kiszka wrote: > On 2011-02-03 18:54, Blue Swirl wrote: >> On Thu, Feb 3, 2011 at 5:43 PM, Jan Kiszka wrote: >>> On 2011-02-03 18:36, Blue Swirl wrote: On Thu, Feb 3, 2011 at 5:18 PM, Jan Kiszka wrote: > On 2011-02-03 18:03, Blue Swirl wrote: >> On

Re: [Qemu-devel] [PATCH 05/20] usb-ccid: add CCID bus

2011-02-03 Thread Alon Levy
On Thu, Feb 03, 2011 at 10:46:59AM -0600, Anthony Liguori wrote: > On 02/02/2011 02:28 PM, Alon Levy wrote: > >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

[Qemu-devel] [Bug 712416] Re: kvm_intel kernel module crash with via nano vmx

2011-02-03 Thread khetzal
Confirmation: totaly crash with latest build. Nothing in logs. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/712416 Title: kvm_intel kernel module crash with via nano vmx Status in QEMU: New Sta

Re: [Qemu-devel] [PATCH 06/20] usb-ccid: review fixes (v15-v16)

2011-02-03 Thread Alon Levy
On Thu, Feb 03, 2011 at 10:48:03AM -0600, Anthony Liguori wrote: > On 02/02/2011 02:28 PM, Alon Levy wrote: > >I'll fold it before submitting the version to be applied, but > >I hope keeping it as a separate patch will make reviewing easier. > > Hrm, can you just send out the new patches? It's a

[Qemu-devel] Re: [PATCHv2] e1000: multi-buffer packet support

2011-02-03 Thread Alex Williamson
On Thu, 2011-02-03 at 18:49 +0200, Michael S. Tsirkin wrote: > e1000 supports multi-buffer packets larger than rxbuf_size. > > This fixes the following (on linux): > - in guest: ifconfig eth1 mtu 16110 > - in host: ifconfig tap0 mtu 16110 >ping -s 16082 > > Red Hat bugzilla: https://

[Qemu-devel] [0.14?][PATCH v2 2/4] ioapic: Save/restore irr

2011-02-03 Thread Jan Kiszka
This is a guest modifiable state that must be saved/restored properly. Signed-off-by: Jan Kiszka --- hw/ioapic.c | 15 ++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/hw/ioapic.c b/hw/ioapic.c index 443c579..edf99cc 100644 --- a/hw/ioapic.c +++ b/hw/ioapic.c @@

[Qemu-devel] [0.14?][PATCH v2 3/4] ioapic: Prepare for base address relocation

2011-02-03 Thread Jan Kiszka
The registers of real IOAPICs can be relocated during runtime (via chipset registers). We don't support this yet, but qemu-kvm carries the current base address in its version 2 vmstate. To align both implementations for migratability, add the proper infrastructure to accept initial as well as upda

Re: [Qemu-devel] [0.14?][PATCH 3/4] ioapic: Prepare for base address relocation

2011-02-03 Thread Blue Swirl
On Thu, Feb 3, 2011 at 5:43 PM, Jan Kiszka wrote: > On 2011-02-03 18:36, Blue Swirl wrote: >> On Thu, Feb 3, 2011 at 5:18 PM, Jan Kiszka wrote: >>> On 2011-02-03 18:03, Blue Swirl wrote: On Thu, Feb 3, 2011 at 2:55 PM, Jan Kiszka wrote: > The registers of real IOAPICs can be relocated d

Re: [Qemu-devel] [0.14?][PATCH 3/4] ioapic: Prepare for base address relocation

2011-02-03 Thread Blue Swirl
On Thu, Feb 3, 2011 at 5:18 PM, Jan Kiszka wrote: > On 2011-02-03 18:03, Blue Swirl wrote: >> On Thu, Feb 3, 2011 at 2:55 PM, Jan Kiszka wrote: >>> The registers of real IOAPICs can be relocated during runtime (via >>> chipset registers). We don't support this yet, but qemu-kvm carries the >>> cu

  1   2   >