Statistics
| Branch: | Revision:

root / hw @ 21635e12

# Date Author Comment
21635e12 08/10/2011 03:14 pm Gerd Hoffmann

usb/hid: add hid_pointer_activate, use it

HID reorganziation broke the usb tablet in windows xp. The reason is
that xp activates idle before it starts polling, which creates a
chicken-and-egg issue: We don't call hid_pointer_poll because there are
no pending events. We don't get any events because the activation code...

1da005b3 08/09/2011 02:42 pm Edgar E. Iglesias

etrax: Allocate DMA connections at board level.

Signed-off-by: Edgar E. Iglesias <>

bbea04df 08/09/2011 01:22 pm Edgar E. Iglesias

etrax: Remove hw/etraxfs.c.

The Bare ETRAX FS board was a fictive machine that I used when
developing the CRIS system emulation. Since we support the
real AXIS-dev88 developer boards, there is no reason to
keep the fictive one around.

This commit also removes the double registration of the axis-dev88...

032a7c4e 08/09/2011 09:57 am Avi Kivity

lance: unbreak after memory API conversion

The conversion passed the wrong opaque pointer, causing a crash on first use.
Pass the correct opaque.

Signed-off-by: Avi Kivity <>
Signed-off-by: Edgar E. Iglesias <>

986563b1 08/08/2011 10:38 pm Anthony Liguori

Merge remote-tracking branch 'qemu-kvm/uq/master' into staging

03952339 08/08/2011 06:22 pm Avi Kivity

pci: remove support for pre memory API BARs

Not used anymore.

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

af956cad 08/08/2011 06:22 pm Avi Kivity

isa-mmio: convert to memory API

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

c5e6fb7e 08/08/2011 06:22 pm Avi Kivity

sun4u: convert to memory API

fixes memory leak on repeated BAR map/unmap

Reviewed-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

e57964f5 08/08/2011 06:22 pm Avi Kivity

ehci: convert to memory API

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

a03f66e4 08/08/2011 06:22 pm Avi Kivity

uhci: convert to memory API

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

de00982e 08/08/2011 06:22 pm Avi Kivity

xen-platform: convert to memory API

Since this device bypasses PCI and registers I/O ports directly with
the system bus, it needs further attention.

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>...

95524ae8 08/08/2011 06:22 pm Avi Kivity

msix: convert to memory API

The msix table is defined as a subregion, to allow for a BAR that
mixes device specific regions with the msix table.

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>...

fa6c6065 08/08/2011 06:22 pm Avi Kivity

pci: remove pci_register_bar_simple()

Superceded by pci_register_bar_region().

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

14caaf7f 08/08/2011 06:22 pm Avi Kivity

pci: convert pci rom to memory API

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

cfc0be25 08/08/2011 06:22 pm Avi Kivity

pci: remove pci_register_bar()

Superceded by pci_register_bar_region(). The implementations
are folded together.

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>...

50181f10 08/08/2011 06:22 pm Avi Kivity

pci: fold BAR mapping function into its caller

There is only one function, so no need for a function pointer.

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

e824b2cc 08/08/2011 06:22 pm Avi Kivity

pci: rename pci_register_bar_region() to pci_register_bar()

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

67e576c2 08/08/2011 06:22 pm Avi Kivity

ahci: convert to memory API

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

234bbdf1 08/08/2011 06:22 pm Avi Kivity

intel-hda: convert to memory API

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

b0ce84e5 08/08/2011 06:22 pm Avi Kivity

lsi53c895a: convert to memory API

An optimization that fast-pathed DMA reads from the SCRIPTS memory
was removed int the process. Likely it breaks with iommus anyway.

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>...

23c5e4ca 08/08/2011 06:22 pm Avi Kivity

ppc: convert to memory API

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

1ec4e1dd 08/08/2011 06:22 pm Avi Kivity

ne2000: convert to memory API

Reviewed-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

bd8d6f7c 08/08/2011 06:22 pm Avi Kivity

pcnet: convert to memory API

Also related chips.

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

d9c6ebd1 08/08/2011 06:22 pm Avi Kivity

i6300esb: convert to memory API

Also add missing destructor.

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

da146d0a 08/08/2011 06:22 pm Avi Kivity

virtio-pci: convert to memory API

except msix.

[jan: fix build]
[aliguori: fix build]

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

83c406d9 08/08/2011 06:15 pm Avi Kivity

ac97: convert to memory API

fixes BAR sizing as well.

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

ad00a9b9 08/08/2011 06:15 pm Avi Kivity

e1000: convert to memory API

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

5e6ffdde 08/08/2011 06:15 pm Avi Kivity

eepro100: convert to memory API

Note: the existing code aliases the flash BAR into the MMIO bar. This is
probably a bug. This patch does not correct the problem.

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>...

e1a99dbd 08/08/2011 06:15 pm Avi Kivity

es1370: convert to memory API

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

a9deb8c6 08/08/2011 06:15 pm Avi Kivity

ide: convert to memory API

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

cb06608e 08/08/2011 06:15 pm Avi Kivity

ivshmem: convert to memory API

excluding msix.

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

1e04d4d6 08/08/2011 06:15 pm Avi Kivity

cirrus: simplify mmio BAR access functions

Make use of the memory API's ability to satisfy multi-byte accesses via
multiple single-byte accesses.

Reviewed-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

4e56f089 08/08/2011 06:15 pm Avi Kivity

cirrus: simplify bitblt BAR access functions

Make use of the memory API's ability to satisfy multi-byte accesses via
multiple single-byte accesses.

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>...

a815b166 08/08/2011 06:15 pm Avi Kivity

cirrus: simplify vga window mmio access functions

Make use of the memory API's ability to satisfy multi-byte accesses via
multiple single-byte accesses.

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>...

b2a5e761 08/08/2011 06:15 pm Avi Kivity

vga: simplify vga window mmio access functions

Make use of the memory API's ability to satisfy multi-byte accesses via
multiple single-byte accesses.

We have to keep vga_mem_{read,write}b() since they're used by cirrus.

Reviewed-by: Richard Henderson <>...

899adf81 08/08/2011 06:15 pm Avi Kivity

cirrus: simplify linear framebuffer access functions

Make use of the memory API's ability to satisfy multi-byte accesses via
multiple single-byte accesses.

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>...

aee97b84 08/08/2011 06:15 pm Avi Kivity

pci: pass I/O address space to new PCI bus

This lets us register BARs in the I/O address space.

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

5968eca3 08/08/2011 06:15 pm Avi Kivity

pci: allow I/O BARs to be registered with pci_register_bar_region()

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

bd80f3fc 08/08/2011 06:15 pm Avi Kivity

rtl8139: convert to memory API

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>
Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

16a96f28 08/08/2011 06:15 pm Avi Kivity

pci: add API to get a BAR's mapped address

Some (hacky) devices that have a back-channel to read this
address back outside the normal configuration mechanisms, such
as VMware svga.

Reviewed-by: Richard Henderson <>
Signed-off-by: Avi Kivity <>...

7b619b9a 08/08/2011 06:15 pm Avi Kivity

vmsvga: don't remember pci BAR address in callback any more

We're going to remove the callback, so we can't use it to save the
address. Use the pci API instead.

Reviewed-by: Richard Henderson <>
Reviewed-by: Anthony Liguori <>...

b1950430 08/08/2011 06:15 pm Avi Kivity

vga: convert vga and its derivatives to the memory API

Convert all vga memory to the memory API. Note we need to fall back to
get_system_memory(), since the various buses don't pass the vga window
as a memory region.

We no longer need to sync the dirty bitmap of the cirrus mapped memory...

2da8bb92 08/05/2011 06:57 pm Isaku Yamahata

qdev: Eliminate duplicate reset

qbus_reset_all_fn was registered twice, so a lot of device reset
functions were also called twice when QEMU started.
Which was introduced by 80376c3fc2c38fdd45354e4b0eb45031f35587ed
This patch fixes it by making the main_system_bus creation not register...

257a7375 08/05/2011 06:57 pm David Gibson

Check fread() results to avoid gcc 4.6 warnings

When compiling with gcc 4.6, some code in fw_cfg.c complains that fop_ret
is assigned but not used (which is true). However, it looks like the
meaningless assignments to fop_ret were done to suppress other gcc warnings...

cf7d3e64 08/05/2011 06:04 pm Jan Kiszka

kvmclock: Fix feature detection

Bit-wise or the feature flags and drop the obsolete #ifdef.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Marcelo Tosatti <>

81e34a24 08/05/2011 01:15 am Anthony Liguori

Merge remote-tracking branch 'mst/for_anthony' into staging

dfa79e8a 08/05/2011 01:13 am Anthony Liguori

Merge remote-tracking branch 'spice/spice.v40' into staging

5df0a2a5 08/05/2011 01:10 am Anthony Liguori

Merge remote-tracking branch 'kraxel/usb.22' into staging

47bf05d7 08/05/2011 12:45 am Anthony Liguori

Merge remote-tracking branch 'kwolf/for-anthony' into staging

855d7e25 08/05/2011 12:43 am Amit Shah

virtio-balloon: Add exit handler, fix memleaks

Add an exit handler that will free up RAM after a virtio-balloon device
is unplugged.

Signed-off-by: Amit Shah <>
Reviewed-by: Markus Armbruster <>
Acked-by: Michael S. Tsirkin <>

ac720400 08/05/2011 12:43 am Amit Shah

virtio-balloon: Unregister savevm section on device unplug

Migrating after unplugging a virtio-balloon device resulted in an error
message on the destination:

Unknown savevm section or instance '0000:00:04.0/virtio-balloon' 0
load of migration failed

Fix this by unregistering the section on device unplug....

dce911c7 08/05/2011 12:43 am Amit Shah

virtio-balloon: Separate status handling into separate function

Separate out the code to retrieve balloon info from the code that sets
balloon values.

This will be used to separate the two callbacks from balloon.c and help
cope with 'balloon 0' on the monitor. Currently, 'balloon 0' causes a...

30fb2ca6 08/05/2011 12:43 am Amit Shah

balloon: Separate out stat and balloon handling

Passing on '0' as ballooning target to indicate retrieval of stats is
bad API. It also makes 'balloon 0' in the monitor cause a segfault.
Have two different functions handle the different functionality instead....

d4443cb6 08/05/2011 12:43 am Amit Shah

virtio-balloon: Fix header comment; add Copyright

Signed-off-by: Amit Shah <>

f76f6655 08/05/2011 12:43 am Amit Shah

virtio-balloon: Check if balloon registration failed

Multiple balloon registrations are not allowed; check if the
registration with the qemu balloon api succeeded. If not, fail the
device init.

Signed-off-by: Amit Shah <>
Reviewed-by: Markus Armbruster <>...

0d878eec 08/04/2011 04:51 pm Gerd Hoffmann

usb-hid: create & use HIDState

First step in separating out the HID emulation code from usb-hid, so it
can be reused without creating a dummy usb device like bluetooth does.

This creates a HIDState struct, moves the non-usbish fields from
USBHIDStruct there. Renames non-usbish structs, defines and functions...

8bde6805 08/04/2011 04:51 pm Gerd Hoffmann

usb-hid: add event callback

Add callback for event notification, which allows to un-usbify more
functions. Also split separate hid_* functions for reset and release.

Signed-off-by: Gerd Hoffmann <>

38931fa8 08/04/2011 04:51 pm Gerd Hoffmann

usb-hid: add hid_has_events()

Add hid_has_events function, use it to figure whenever there are pending
events instead of checking and updating USBHIDState->changed.

Setting ->changed to 1 on init is removed, that should have absolutely
no effect as the initial state of ->idle is 0 so we report hid state...

dcfda673 08/04/2011 04:51 pm Gerd Hoffmann

usb-hid: split hid code to hw/hid.[ch]

Almost pure code motion. Unstatic hid interface functions and add
them to the header file. Some renames. Some code style cleanups.

Signed-off-by: Gerd Hoffmann <>

b069d348 08/04/2011 04:51 pm Gerd Hoffmann

hid: move idle+protocol from usb-hid to hid too.

Signed-off-by: Gerd Hoffmann <>

fb8f4cee 08/04/2011 04:51 pm Gerd Hoffmann

bluetooth: kill dummy usb device, use hid code directly.

Signed-off-by: Gerd Hoffmann <>

29c74f76 08/04/2011 04:51 pm Gerd Hoffmann

usb-storage: iovec support

Add full iovec support to usb-storage.

Signed-off-by: Gerd Hoffmann <>

df5e66ee 08/04/2011 04:51 pm Gerd Hoffmann

uhci: remove buffer

Map guest memory and pass on a direct pointer instead of copying
the bits to a indirect buffer.

Signed-off-by: Gerd Hoffmann <>

0ce668bc 08/04/2011 04:51 pm Gerd Hoffmann

ehci: iovec support, remove buffer

Map guest memory and pass on a direct pointer instead of copying
the bits to a indirect buffer. EHCI transfer descriptors can
reference multiple (physical guest) pages so we'll actually start
seeing usb packets wich carry iovec with more than one element....

9440b7e5 08/04/2011 04:51 pm Gerd Hoffmann

usb-serial: iovec support

Add full support for iovecs to usb-serial.

Signed-off-by: Gerd Hoffmann <>

4f4321c1 08/04/2011 04:51 pm Gerd Hoffmann

usb: use iovecs in USBPacket

Zap data pointer from USBPacket, add a QEMUIOVector instead.
Add a bunch of helper functions to manage USBPacket data.
Switch over users to the new interface.

Note that USBPacket->len was used for two purposes: First to
pass in the buffer size and second to return the number of...

a6f4e09d 08/04/2011 02:14 am Michael Walle

lm32: softusb: claim to support full speed

The QEMU keyboard and mouse reports themselves as full speed devices,
though they are actually low speed devices. Until this is fixed, claim that
we are supporting full speed devices.

Acked-by: Gerd Hoffmann <>...

cb4b4fde 08/03/2011 06:00 pm Michael S. Tsirkin

vhost: remove an incorrect assert

The 'to' can go negative when the first region gets removed
(it gets incremented by to 0 immediately afterward), which
makes the assertion fail. Nothing breaks if
to < 0 here so just remove the assert.

Tested-by: David Ahern <>...

3e16b9c5 08/03/2011 01:03 pm Alon Levy

qxl: add QXL_IO_FLUSH_{SURFACES,RELEASE} for guest S3&S4 support

Add two new IOs.
QXL_IO_FLUSH_SURFACES - equivalent to update area for all surfaces, used
to reduce vmexits from NumSurfaces to 1 on guest S3, S4 and resolution change (windows
driver implementation is such that this is done on each of those occasions)....

9197a7c8 08/03/2011 01:03 pm Gerd Hoffmann

qxl: bump pci rev

Inform guest drivers about the new features I/O commands we have
now (async commands, S3 support) if building with newer spice, i.e.
if SPICE_INTERFACE_QXL_MINOR >= 1.

sneaked in some 81+ column line spliting.

Signed-off-by: Gerd Hoffmann <>...

5ff4e36c 08/03/2011 01:03 pm Alon Levy

qxl: async io support using new spice api

Some of the QXL port i/o commands are waiting for the spice server to
complete certain actions. Add async versions for these commands, so we
don't block the vcpu while the spice server processses the command.
Instead the qxl device will raise an IRQ when done....

5c59d118 08/01/2011 01:43 pm Gerd Hoffmann

spice: add worker wrapper functions.

Add wrapper functions for all spice worker calls.

Signed-off-by: Gerd Hoffmann <>

a963f876 08/01/2011 01:43 pm Gerd Hoffmann

spice: add qemu_spice_display_init_common

Factor out SimpleSpiceDisplay initialization into
qemu_spice_display_init_common() and call it from
both qxl.c (for vga mode) and spice-display.c

Signed-off-by: Gerd Hoffmann <>

aee32bf3 08/01/2011 01:43 pm Gerd Hoffmann

spice/qxl: move worker wrappers

Move the wrapper functions which are used by qxl only to qxl.c.
Rename them from qemu_spice_* to qxl_spice_*. Also pass in a
qxl state pointer instead of a SimpleSpiceDisplay pointer.

Signed-off-by: Gerd Hoffmann <>

14898cf6 08/01/2011 01:43 pm Gerd Hoffmann

qxl: fix surface tracking & locking

Surface tracking needs proper locking since it is used from vcpu and spice
worker threads, add it. Also reset the surface counter when zapping all
surfaces.

Signed-off-by: Gerd Hoffmann <>

8b92e298 08/01/2011 01:43 pm Alon Levy

qxl: add io_port_to_string

Signed-off-by: Alon Levy <>
Signed-off-by: Gerd Hoffmann <>

2bce0400 08/01/2011 01:43 pm Gerd Hoffmann

qxl: error handling fixes and cleanups.

Add qxl_guest_bug() function which is supposed to be called in case
sanity checks of guest requests fail. It raises an error IRQ and
logs a message in case guest debugging is enabled.

Make PANIC_ON() abort instead of exit. That macro should be used...

7635392c 08/01/2011 01:43 pm Alon Levy

qxl: make qxl_guest_bug take variable arguments

Signed-off-by: Alon Levy <>
Signed-off-by: Gerd Hoffmann <>

e21a298a 08/01/2011 01:43 pm Alon Levy

qxl: only disallow specific io's in vga mode

Since the driver is still in operation even after moving to UNDEFINED, i.e.
by destroying primary in any way.

Signed-off-by: Alon Levy <>
Signed-off-by: Gerd Hoffmann <>

5f71d32f 08/01/2011 01:10 pm Hannes Reinecke

scsi-disk: Codingstyle fixes

Replace tabs with spaces.

Signed-off-by: Hannes Reinecke <>
Signed-off-by: Kevin Wolf <>

3790372c 08/01/2011 01:10 pm Hannes Reinecke

scsi: Remove references to SET_WINDOW

SET_WINDOW command is vendor-specific only.
So we shouldn't try to emulate it.

Signed-off-by: Hannes Reinecke <>
Signed-off-by: Kevin Wolf <>

8bd3e139 08/01/2011 01:10 pm Hannes Reinecke

scsi: Remove REZERO_UNIT emulation

REZERO_UNIT command is obsolete. Remove support for it.

Signed-off-by: Hannes Reinecke <>
Signed-off-by: Kevin Wolf <>

5e30a07d 08/01/2011 01:10 pm Hannes Reinecke

scsi: Sanitize command definitions

Sanitize SCSI command definitions.
Add _10 suffix to READ_CAPACITY, WRITE_VERIFY, VERIFY, READ_LONG,
WRITE_LONG, and WRITE_SAME.
Add new command definitions for LOCATE_10, UNMAP, VARLENGTH_CDB,
WRITE_FILEMARKS_16, EXTENDED_COPY, ATA_PASSTHROUGH, ACCESS_CONTROL_IN,...

f37bd73b 08/01/2011 01:10 pm Hannes Reinecke

scsi-disk: Remove 'drive_kind'

Instead of using its own definitions scsi-disk should
be using the device type of the parent device.

Signed-off-by: Hannes Reinecke <>
Signed-off-by: Kevin Wolf <>

3e457172 07/30/2011 12:41 pm Blue Swirl

exec.h cleanup

Move softmmu_exec.h include directives from target-*/exec.h to
target-*/op_helper.c. Move also various other stuff only used in
op_helper.c there.

Define global env in dyngen-exec.h.

For i386, move wrappers for segment and FPU helpers from user-exec.c...

104bf02e 07/30/2011 12:33 pm Michael Tokarev

revamp acpitable parsing and allow to specify complete (headerful) table

This patch almost rewrites acpi_table_add() function
(but still leaves it using old get_param_value() interface).
The result is that it's now possible to specify whole table
(together with a header) in an external file, instead of just...

5e37141b 07/30/2011 08:26 am Vincent Palatin

sd: do not add one sector to the disk size

This leads to random off-by-one error.
When the size of the SD is exactly 1GB, the emulation was returning a
wrong SDHC CSD descriptor.

Signed-off-by: Vincent Palatin <>
Signed-off-by: Andrzej Zaborowski <>

8534b8ba 07/30/2011 08:18 am Jan Kiszka

usb-hid: Fix 0/0 position for Windows in tablet mode

For unknown reasons, Windows drivers (tested with XP and Win7) ignore
usb-tablet events that move the pointer to 0/0. So always report 0/0 as
1/0.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Andrzej Zaborowski <>

3bf11207 07/30/2011 08:08 am Vasily Khoruzhick

Add support for Zipit Z2 machine

Zipit Z2 is small PXA270 based handheld.

Signed-off-by: Vasily Khoruzhick <>
Reviewed-by: Peter Maydell <>
Signed-off-by: Andrzej Zaborowski <>

63efb1d9 07/30/2011 07:53 am Andrzej Zaborowski

onenand: Add missing brace.

Signed-off-by: Andrzej Zaborowski <>

f1588dd2 07/30/2011 07:42 am Juha Riihimäki

hw/onenand: program actions can only clear bits

The program actions onenand_prog_main() and onenand_prog_spare()
can only set bits.

This implies a rewrite of onenand_erase() to not use the program
functions, since erase does need to set bits.

Signed-off-by: Juha Riihimäki <>...

5923ba42 07/30/2011 07:42 am Juha Riihimäki

onenand: Handle various ID fields separately

Handle the manufacturer, device and version IDs separately rather than
smooshing them all together into a single uint32_t. Note that the ID
registers are actually 16 bit, even though typically the top bits are 0...

af5a75f4 07/30/2011 07:42 am Peter Maydell

onenand: Pass BlockDriverState to init function

Pass the BlockDriverState to the onenand init function so it doesn't
need to look up the drive itself.

Signed-off-by: Peter Maydell <>
Signed-off-by: Andrzej Zaborowski <>

d4220389 07/30/2011 07:21 am Juha Riihimäki

hw/nand: qdevify

Qdevify the NAND device.

Signed-off-by: Juha Riihimäki <>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <>
[Peter Maydell: More fixes and cleanups for upstream submission]...

89f640bc 07/30/2011 07:11 am Peter Maydell

hw/nand: Writing to NAND can only clear bits

Writing to a NAND device cannot set bits, it can only clear them;
implement this rather than simply copying the data.

Signed-off-by: Peter Maydell <>
Signed-off-by: Andrzej Zaborowski <>

d72245fb 07/30/2011 07:10 am Juha Riihimäki

hw/nand: Support multiple reads following READ STATUS

After receiving READ STATUS command all subsequent IO reads should return
the status register value until another command is issued.

Signed-off-by: Juha Riihimäki <>
[Riku Voipio: Fixes and restructuring patchset]...

48197dfa 07/30/2011 07:09 am Juha Riihimäki

hw/nand: Support devices wider than 8 bits

Support NAND devices which are wider than 8 bits.

Signed-off-by: Juha Riihimäki <>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <>
[Peter Maydell: More fixes and cleanups for upstream submission]...

ac2466cd 07/30/2011 07:01 am Andrzej Zaborowski

nand: Bump vmstate version after changing structure.

Signed-off-by: Andrzej Zaborowski <>

d5f2fd58 07/30/2011 07:00 am Juha Riihimäki

hw/nand: Support large NAND devices

Add support for NAND devices of over 1Gb.

Signed-off-by: Juha Riihimäki <>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <>
[Peter Maydell: More fixes and cleanups for upstream submission]...

522f253c 07/30/2011 07:00 am Peter Maydell

hw/nand: Pass block device state to init function

Pass the BlockDeviceState to the nand_init() function rather
than having it look it up via drive_get() itself.

Signed-off-by: Peter Maydell <>
Signed-off-by: Andrzej Zaborowski <>