Statistics
| Branch: | Revision:

root / hw @ c65adf9b

# Date Author Comment
c65adf9b 12/20/2011 02:14 pm Avi Kivity

xen, vga: add API for registering the framebuffer

Xen currently uses the name of a memory region to determine whether it
is the framebuffer. Replace with an explicit API.

Signed-off-by: Avi Kivity <>

75c9d6c2 12/20/2011 02:14 pm Avi Kivity

framebuffer: drop use of cpu_get_physical_page_desc()

cpu_get_physical_page_desc() is tied into the memory core's
innards, replace it with uses of the API.

Signed-off-by: Avi Kivity <>

dcc5cd33 12/20/2011 02:14 pm Avi Kivity

loader: remove calls to cpu_get_physical_page_desc()

cpu_get_physical_page_desc() is tied into the memory core's
innards, replace it with uses of the API.

Signed-off-by: Avi Kivity <>

c1cd0b2c 12/20/2011 02:14 pm Avi Kivity

framebuffer: drop use of cpu_physical_sync_dirty_bitmap()

Replace with memory API equivalent.

Signed-off-by: Avi Kivity <>

04097f7c 12/20/2011 02:14 pm Avi Kivity

vhost: convert to MemoryListener API

Drop the use of cpu_register_phys_memory_client() in favour of the new
MemoryListener API. The new API simplifies the caller, since there is no
need to deal with splitting and merging slots; however this is not exploited...

62ec4832 12/20/2011 02:14 pm Avi Kivity

sysbus: add sysbus_address_space()

Given a bus device, retrieves the memory address space for its bus.

Signed-off-by: Avi Kivity <>

8c106233 12/19/2011 09:36 pm Benoît Canet

sh_pci: remove sysbus_init_mmio_cb2 usage

The isa region is not exposed as a sysbus region because the iobr
register contains its address and use it to remap dynamically
the region. (Peter Maydell's idea)

Reviewed-by: Peter Maydell <>...

cb4e15c7 12/19/2011 09:36 pm Benoît Canet

ppce500_pci: remove sysbus_init_mmio_cb2 usage

Expose only one container MemoryRegion to sysbus.
(Peter Maydell's idea)

Reviewed-by: Peter Maydell <>
Signed-off-by: Benoît Canet <>
Signed-off-by: Anthony Liguori <>

ab0115e1 12/19/2011 09:36 pm Benoît Canet

sysbus: remove sysbus_init_mmio_cb2

This function is not longer in use so remove it.

Signed-off-by: Benoît Canet <>
Signed-off-by: Anthony Liguori <>

80e555c2 12/19/2011 06:27 pm Paolo Bonzini

qom: introduce get/set methods for Property

This patch adds a visitor interface to Property. This way, QOM will be
able to expose Properties that access a fixed field in a struct without
exposing also the everything-is-a-string "feature" of qdev properties....

cafe5bdb 12/19/2011 06:27 pm Paolo Bonzini

qom: distinguish "legacy" property type name from QOM type name

Reviewed-by: Anthony Liguori <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>

ca2cc788 12/19/2011 06:27 pm Paolo Bonzini

qom: register qdev properties also as non-legacy properties

Push legacy properties into a "legacy-..." namespace, and make them
available with correct types too.

For now, all properties come in both variants. This need not be the
case for string properties. We will revisit this after -device is...

0d41d9aa 12/19/2011 06:27 pm Paolo Bonzini

qom: fix swapped parameters

Reviewed-by: Anthony Liguori <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>

e3cb6ba6 12/19/2011 06:27 pm Paolo Bonzini

qom: push permission checks up into qdev_property_add_legacy

qdev_property_get and qdev_property_set can generate permission
denied errors themselves. Do not duplicate this functionality in
qdev_get/set_legacy_property, and clean up excessive indentation....

7db4c4e8 12/19/2011 06:27 pm Paolo Bonzini

qom: interpret the return value when setting legacy properties

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>

f76d27b6 12/19/2011 05:45 pm Anthony Liguori

Merge remote-tracking branch 'qemu-kvm/memory/exec-obsolete' into staging

4a1cc680 12/19/2011 05:45 pm Anthony Liguori

Merge remote-tracking branch 'qemu-kvm/memory/xen' into staging

0eeb06b0 12/19/2011 05:23 pm Avi Kivity

etraxfs_eth: drop bogus cpu_unregister_io_memory()

Leftover call to cpu_unregister_io_memory() can segfault on cleanup. Remove.

Signed-off-by: Avi Kivity <>

fce537d4 12/19/2011 05:23 pm Avi Kivity

memory, xen: pass MemoryRegion to xen_ram_alloc()

Currently xen_ram_alloc() relies on ram_addr, which is going away.
Give it something else to use as a cookie.

Signed-off-by: Avi Kivity <>

cde7fc31 12/19/2011 05:12 pm Anthony Liguori

Merge remote-tracking branch 'qemu-kvm/memory/mutators' into staging

Conflicts:
memory.h

3cfdd0da 12/19/2011 05:10 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/trivial-patches' into staging

ddf83d01 12/19/2011 04:50 pm Anthony Liguori

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

ea830ebb 12/19/2011 04:45 pm Anthony Liguori

pc: fix event_idx compatibility for virtio devices

event_idx was introduced in 0.15 and must be disabled for all virtio-pci devices
(including virtio-balloon-pci).

Signed-off-by: Anthony Liguori <>

8ceb49fe 12/19/2011 12:52 pm Julian Pidancet

Also create piix3 property when Xen is enabled

This recently added line in hw/pc_piix.c is causing a SEGV on a Xen
setup because the piix3 property is never created:

qdev_property_add_child(qdev_resolve_path("/i440fx/piix3", NULL),
"rtc", (DeviceState *)rtc_state, NULL);...

ce01a508 12/18/2011 08:59 pm Anthony Liguori

pc: add pc-0.15

Signed-off-by: Anthony Liguori <>

bfc213af 12/16/2011 12:04 pm Peter Maydell

stellaris: Calculate system clock period on reset

Calculate the system clock period on reset; otherwise it remains
set to the default value of zero and attempting to use it provokes
a hang. This is one of the issues noted in LP:696094.

Signed-off-by: Peter Maydell <>...

b61744b3 12/16/2011 11:53 am Paolo Bonzini

ide: drop argument to dma_buf_commit

The argument is unused and even wrong when the function is called
by ide_handle_rw_error. Drop it.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Stefan Hajnoczi <>

db3a5ed7 12/15/2011 05:27 pm Stefan Hajnoczi

usb: fix usb_qdev_init() error handling again

Commit f462141f18ffdd75847f6459ef83d90b831d12c0 introduced clean up code
when usb_qdev_init() fails. Unfortunately it calls .handle_destroy()
when .init() was never invoked or failed. This can lead to crashes when...

d0c5be58 12/15/2011 05:20 pm Anthony Liguori

rtc: make piix3 set the rtc as a child (v2)

Signed-off-by: Anthony Liguori <>

18297050 12/15/2011 05:20 pm Anthony Liguori

rtc: add a dynamic property for retrieving the date

This really shows the power of dynamic object properties compared to qdev
static properties.

This property represents a complex structure who's format is preserved over the
wire. This is enabled by visitors....

b2b6c39a 12/15/2011 05:20 pm Anthony Liguori

qom: optimize qdev_get_canonical_path using a parent link

The full tree search was a bit unreasonable.

Signed-off-by: Anthony Liguori <>

ad6d45fa 12/15/2011 05:20 pm Anthony Liguori

qom: add vga node to the pc composition tree

Signed-off-by: Anthony Liguori <>

6a146eba 12/15/2011 05:20 pm Anthony Liguori

qom: add string property type

Signed-off-by: Anthony Liguori <>

cd34d667 12/15/2011 05:20 pm Anthony Liguori

qdev: add a qdev_get_type() function and expose as a 'type' property

Signed-off-by: Anthony Liguori <>

dc45c21f 12/15/2011 05:20 pm Anthony Liguori

qdev: provide a path resolution (v2)

There are two types of supported paths--absolute paths and partial paths.

Absolute paths are derived from the root device and can follow child<> or
link<> properties. Since they can follow link<> properties, they can be...

3de1c3e8 12/15/2011 05:20 pm Anthony Liguori

qom: add child properties (composition) (v3)

Child properties express a relationship of composition.

Signed-off-by: Anthony Liguori <>

83e94fb8 12/15/2011 05:20 pm Anthony Liguori

qom: add link properties (v2)

Links represent an ephemeral relationship between devices. They are meant to
replace the qdev concept of busses by allowing more informal relationships
between devices.

Links are fairly limited in their usefulness without implementing QOM-style...

1bdaacb1 12/15/2011 05:20 pm Anthony Liguori

qdev: add explicitly named devices to the root complex

We first add a 'peripheral' container to the root device that we add user
created devices to. This provides all user created devices with a unique and
isolated namespace.

Signed-off-by: Anthony Liguori <>

8eb02831 12/15/2011 05:20 pm Anthony Liguori

dev: add an anonymous peripheral container

Signed-off-by: Anthony Liguori <>

85ed303b 12/15/2011 05:20 pm Anthony Liguori

qom: add a reference count to qdev objects

To ensure that a device isn't removed from the graph until all of its links are
broken.

Signed-off-by: Anthony Liguori <>

44677ded 12/15/2011 05:20 pm Anthony Liguori

qom: add new dynamic property infrastructure based on Visitors (v2)

qdev properties are settable only during construction and static to classes.
This isn't flexible enough for QOM.

This patch introduces a property interface for qdev that provides dynamic...

a5296ca9 12/15/2011 05:20 pm Anthony Liguori

qom: register legacy properties as new style properties (v2)

Expose all legacy properties through the new QOM property mechanism. The qdev
property types are exposed through the 'legacy<>' namespace. They are always
visited as strings since they do their own string parsing....

a10f07a7 12/15/2011 05:20 pm Anthony Liguori

qom: introduce root device

This is based on Jan's suggestion for how to do unique naming. The root device
is the root of composition. All devices are reachable via child<> links from
this device.

Signed-off-by: Anthony Liguori <>

f9fbd2fd 12/15/2011 05:20 pm Anthony Liguori

qdev: provide an interface to return canonical path from root (v2)

The canonical path is the path in the composition tree from the root to the
device. This is effectively the name of the device.

This is an incredibly unefficient implementation that will be optimized in...

b9b2008b 12/15/2011 01:40 pm Paolo Bonzini

block: dma_bdrv_* does not return NULL

Initially attempted with the following semantic patch:

rule1
expression E;
statement S;
@@
E =
(
dma_bdrv_io | dma_bdrv_read | dma_bdrv_write
)
(...);
(
- if (E == NULL) { ... } |
- if (E) { <... S ...> }...

ad54ae80 12/15/2011 01:40 pm Paolo Bonzini

block: bdrv_aio_* do not return NULL

Initially done with the following semantic patch:

rule1
expression E;
statement S;
@@
E =
(
bdrv_aio_readv | bdrv_aio_writev | bdrv_aio_flush | bdrv_aio_discard | bdrv_aio_ioctl
)
(...);
(
- if (E == NULL) { ... }...

9423a2e8 12/14/2011 03:59 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/trivial-patches-next' into staging

a1b6abe7 12/14/2011 01:09 pm Stefan Weil

hw: Fix spelling in comments and code

compatiblity->compatibility
transfered->transferred
transfering->transferring

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

26404edc 12/14/2011 01:09 pm Stefan Weil

hw: Fix spelling in comments

adress->address
advertisment->advertisement
begining->beginning
bondary->boundary
controler->controller
controll->control
convertion->conversion
doesnt->doesn't
existant->existent
instuction->instruction
loosing->losing
managment->management...

4d8db4e4 12/14/2011 01:08 pm Stefan Weil

hw: Fix spelling (licenced->licensed)

New code introduced old misspellings.

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

c11e80e2 12/14/2011 01:08 pm Stefan Weil

fmopl: Fix spelling in code and comments

algorythm->algorithm
rythm->rhythm

I did not try to fix the coding standard, so checkpatch.pl
reports lots of violations.

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

d396a657 12/13/2011 01:06 am Stefan Hajnoczi

syborg: drop support for Symbian Virtual Platform

The Symbian Virtual Platform was an ARM-based development and debugging
board. Since Symbian has been disbanded and the code is no longer being
used it can now be removed.

Signed-off-by: Stefan Hajnoczi <>...

cf218714 12/13/2011 01:06 am Jan Kiszka

qemu-thread: add API for joinable threads

Split from Jan's original qemu-thread-posix.c patch. No semantic change,
just introduce the new API that POSIX and Win32 implementations will
conform to.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Paolo Bonzini <>...

da5361cc 12/13/2011 01:06 am Paolo Bonzini

ccid: make threads joinable

Destroying a mutex that another thread might have just unlocked
is racy. It usually works, but you cannot do that in general and
can lead to deadlocks or segfaults. Change ccid to use joinable
threads instead.

(Also, qemu_mutex_init/qemu_cond_init were missing)....

90d8454e 12/12/2011 07:47 pm Eduardo Habkost

QEMUFileCloseFunc: add return value documentation (v2)

qemu_fclose() and QEMUFile->close will return -errno on error, and any
positive value on success.

We need the positive non-zero success values because
migration-exec.c:exec_close() relies on non-zero return values to get...

98d23704 12/12/2011 07:16 pm Peter Maydell

hw/usb-net.c: Fix precedence bug when checking rndis_state

"!X == 2" is always false (spotted by Coverity), so the checks
for whether rndis is in the correct state would never fire.

Signed-off-by: Peter Maydell <>
Signed-off-by: Anthony Liguori <>

859e538d 12/12/2011 07:16 pm David Gibson

Remove unnecessary casts from PCI DMA code in PCI IDE

This patch removes some unnecessary casts in the PCI IDE device,
introduced by commit 552908fef5b67ad9d96b76d7cb8371ebc26c9bc8
'PCI IDE: Use PCI DMA stub functions'.

Signed-off-by: David Gibson <>...

9e486d67 12/12/2011 07:16 pm David Gibson

Remove unnecessary casts from PCI DMA code in lsi53c895a

This patch removes some unnecessary casts in the lsi53c895a device,
introduced by commit 9ba4524cda1348cbe741535f77815dca6a57da05
'lsi53c895a: Use PCI DMA stub functions'.

Signed-off-by: David Gibson <>...

a6a29eea 12/12/2011 07:16 pm David Gibson

Remove unnecessary casts from PCI DMA code in rtl8139

This patch removes some unnecessary casts in the rtl8139 device,
introduced by commit 3ada003aee2004d24f23b9cd6f4eda87d9601ddb
'rtl8139: Use PCI DMA stub functions'.

Signed-off-by: David Gibson <>...

4bf80119 12/12/2011 07:16 pm David Gibson

Remove unnecessary casts from PCI DMA code in usb-ehci

This patch removes some unnecessary casts in the usb-ehci device,
introduced by commit 68d553587c0aa271c3eb2902921b503740d775b6
'usb-ehci: Use PCI DMA stub functions'.

Signed-off-by: David Gibson <>...

9fe2fd67 12/12/2011 07:16 pm David Gibson

Remove unnecessary casts from PCI DMA code in usb-uhci

This patch removes some unnecessary casts in the usb-uhci device,
introduced by commit fff23ee9a5de74ab111b3cea9eec56782e7d7c50
'usb-uhci: Use PCI DMA stub functions'.

Signed-off-by: David Gibson <>...

e965d4bc 12/12/2011 07:16 pm David Gibson

Remove unnecessary casts from PCI DMA code in eepro100

This patch removes some unnecessary casts in the eepro100 device,
introduced by commit 16ef60c9a8eeee269f7cbc95219a431b1d7cbf29
'eepro100: Use PCI DMA stub functions'.

Signed-off-by: David Gibson <>...

00c3a05b 12/12/2011 07:16 pm David Gibson

Remove unnecessary casts from PCI DMA code in e1000

This patch removes some unnecessary casts in the e1000 device,
introduced by commit 62ecbd353d25e62c4a6c327ea88ba5404e13507a 'e1000:
Use PCI DMA stub functions'.

Signed-off-by: David Gibson <>...

b9dc07d4 12/12/2011 12:26 pm Peter Maydell

hw/arm_mptimer.c: Turn ARM MPcore private timers into qdev devices

Turn the ARM MPcore private timer/watchdog blocks into separate
qdev devices. This will allow us to share them neatly between
11MPCore and A9MPcore.

Signed-off-by: Peter Maydell <>

e2c56465 12/12/2011 12:26 pm Peter Maydell

hw/arm_gic: Expose GIC CPU interfaces as sysbus memory regions

Expose the ARM GIC CPU interfaces as memory regions, rather than
just providing read and write functions for them.

Signed-off-by: Peter Maydell <>

2206d2a6 12/12/2011 12:26 pm Peter Maydell

hw/mpcore.c: Use the GIC memory regions for the CPU interface

Switch to using the GIC memory regions for the CPU interface
rather than hand implementing them as a subcase of mpcore_priv_read()
and mpcore_priv_write().

Signed-off-by: Peter Maydell <>

c3ffa595 12/12/2011 12:26 pm Peter Maydell

hw/realview_gic: Use GIC memory region for the CPU interface

Use the GIC provided memory region for the CPU interface rather
than implementing our own.

Signed-off-by: Peter Maydell <>

538ddf65 12/12/2011 12:26 pm Peter Maydell

hw/mpcore: Clean up mpcore_priv_read/write as they are now SCU only

The only code left in mpcore_priv_read and mpcore_priv_write is now
the implementation of the SCU registers. Clean up by renaming functions
and removing some unnecessary conditionals to make this clearer....

b12080cd 12/12/2011 12:26 pm Peter Maydell

hw/a9mpcore.c: Implement A9MP peripherals rather than 11MPcore ones

Implement the A9MP private peripheral region correctly, rather
than piggybacking on the 11MPCore code; the two CPUs are not the
same in this area.

Signed-off-by: Peter Maydell <>

2a6ab1e3 12/12/2011 12:26 pm Peter Maydell

hw/mpcore.c: Merge with hw/arm11mpcore.c

hw/mpcore.c is now implementing only ARM11MPCore specific peripherals,
and is #included only from hw/arm11mpcore.c, so just merge it into that
file.

Signed-off-by: Peter Maydell <>

7b4252e8 12/12/2011 12:25 pm Peter Chubb

Fix sp804 dual-timer

Properly implement dual-timer read/write for the sp804 dual timer module.
Based on ARM specs at
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0271d/index.html

Signed-off-by: Hans Jang <>
Signed-off-by: David Mirabito <>...

ad3d11e6 12/09/2011 01:25 pm Hui Kai Ran

virtio-pci: use pci macros

Signed-off-by: Hui Kai Ran <>
Signed-off-by: Stefan Hajnoczi <>

a30cfee5 12/06/2011 12:40 pm Chen Rui

mips_malta: resolve endless loop when loading bios

Tested-by: Stefan Weil <>
Signed-off-by: Chen Rui <>

bcc4e41f 12/06/2011 11:59 am Stefan Weil

Convert source files to UTF-8 encoding

Most QEMU files either are pure ASCII or use UTF-8.
Convert some files which still used ISO-8859-1 to UTF-8.

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

3a93113a 12/06/2011 11:56 am Dong Xu Wang

fix typo: delete redundant semicolon

Double semicolons should be single.

Signed-off-by: Dong Xu Wang <>
Signed-off-by: Stefan Hajnoczi <>

66a0a2cb 12/06/2011 11:56 am Dong Xu Wang

fix spelling in hw sub directory

Correct obvious spelling errors in qemu/hw directory.

Signed-off-by: Dong Xu Wang <>
Signed-off-by: Stefan Hajnoczi <>

1f3392b7 12/06/2011 11:56 am Zhi Yong Wu

pcie_aer: adjust do_pcie_aer_inejct_error -> do_pcie_aer_inject_error

This function name is a bit wrong. Although it doesn't impact function, it is a bit necessary that we should fixup it.

Signed-off-by: Zhi Yong Wu <>
Signed-off-by: Stefan Hajnoczi <>

217bfb44 12/05/2011 10:38 pm Peter Maydell

hw/arm_gic.c: Ignore attempts to complete nonexistent IRQs

Ignore attempts to complete non-existent IRQs; this fixes a buffer
overrun if the guest writes a bad value to the GICC_EOIR register.
(This case is UNPREDICTABLE so ignoring it is a valid choice.)...

81584fd5 12/05/2011 10:38 pm David Gibson

pseries: Fix array overrun bug in PCI code

spapr_populate_pci_devices() containd a loop with PCI_NUM_REGIONS (7)
iterations. However this overruns the 'bars' global array, which only has
6 elements. In fact we only want to run this loop for things listed in the...

4abc7ebf 12/05/2011 10:38 pm Peter Chubb

Fix hw_error messages from arm_timer.c

Two of the calls to hw_error() in arm_timer.c contain the wrong function name.

As suggested by Andreas Färber, use the C99 standard func macro to
get the correct name, instead of putting the name directly into the code....

eb5d5bea 12/05/2011 05:39 pm Anthony Liguori

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

f6480ca3 12/05/2011 05:37 pm Anthony Liguori

Merge remote-tracking branch 'aneesh/1.0-fixes' into staging

cac1e30a 12/05/2011 04:44 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/trivial-patches' into staging

01e7a53a 12/05/2011 04:43 pm Anthony Liguori

Merge remote-tracking branch 'qemu-kvm/memory/batch' into staging

922453bc 12/05/2011 03:56 pm Stefan Hajnoczi

block: convert qemu_aio_flush() calls to bdrv_drain_all()

Many places in QEMU call qemu_aio_flush() to complete all pending
asynchronous I/O. Most of these places actually want to drain all block
requests but there is no block layer API to do so.

This patch introduces the bdrv_drain_all() API to wait for requests...

4e5b184d 12/05/2011 03:51 pm Paolo Bonzini

xen_disk: remove dead code

Xen_disk.c has support for using synchronous I/O instead of asynchronous,
but it is compiled out by default. Remove it.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

b41e1ed4 12/05/2011 12:04 pm Avi Kivity

piix_pci: adapt smram mapping to use memory mutators

Eliminates fake state ->smram_enabled.

Signed-off-by: Avi Kivity <>

7969d9ed 12/05/2011 12:04 pm Avi Kivity

cirrus_vga: adapt to memory mutators API

Simplify the code by avoiding dynamic creation and destruction of
memory regions.

Signed-off-by: Avi Kivity <>

e9a0152b 12/04/2011 07:05 pm Aneesh Kumar K.V

hw/9pfs: use migration blockers to prevent live migration when virtfs export path is mounted

Now when you try to migrate with VirtFS export path mounted, you get a proper QMP error:

(qemu) migrate tcp:localhost:4444
Migration is disabled when VirtFS export path '/tmp/' is mounted in the guest using mount_tag 'v_tmp'...

b41e2992 12/04/2011 07:05 pm Deepak C Shetty

hw/9pfs: Reset server state during TVERSION

As per the 9p rfc, during TVERSION its necessary to clean all the active
fids, so that we start the session from a clean state. Its also needed in
scenarios where the guest is booting off 9p, and boot fails, and client...

8798d6c9 12/04/2011 07:05 pm Aneesh Kumar K.V

hw/9pfs: Add qdev.reset callback for virtio-9p-pci device

Add the device reset callback

Signed-off-by: Aneesh Kumar K.V <>

8b888272 12/04/2011 07:05 pm Aneesh Kumar K.V

hw/9pfs: Use the correct file descriptor in Fsdriver Callback

Fsdriver callback that operate on file descriptor need to
differentiate between directory fd and file fd.

Based on the original patch from Sassan Panahinejad <>

Signed-off-by: Aneesh Kumar K.V <>

77eec1b3 12/04/2011 07:05 pm Aneesh Kumar K.V

hw/9pfs: Improve portability to older systems

handle fs driver require a set of newly added syscalls. Don't
Compile handle FS driver if those syscalls are not available.
Instead of adding #ifdef for all those syscalls we check for
open by handle syscall. If that is available then rest of the...

d1805896 12/02/2011 12:50 pm Hervé Poussineau

sonic: fix typo

Reviewed-by: Andreas Färber <>
Signed-off-by: Hervé Poussineau <>
Signed-off-by: Stefan Hajnoczi <>

66d3f196 12/02/2011 12:50 pm Markus Armbruster

qxl: Don't convert from size_t to int and back in qxl_cursor()

Just for cleanliness; it would take a truly gigantic cursor to break.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Stefan Hajnoczi <>

7e62255a 11/29/2011 12:20 am Markus Armbruster

ccid: Fix buffer overrun in handling of VSC_ATR message

ATR size exceeding the limit is diagnosed, but then we merrily use it
anyway, overrunning card->atr[].

The message is read from a character device. Obvious security
implications unless the other end of the character device is trusted....

2507718b 11/29/2011 12:19 am Aneesh Kumar K.V

9pfs: improve portability to older systems

I guess we can also make sure we don't call local_ioc_getversion at
all.

Reported-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>

c16ada98 11/28/2011 07:36 pm Stefan Weil

eepro100: Fix alignment requirement for statistical counters

According to Intel's Open Source Software Developer Manual,
the dump counters address must be Dword aligned.

The new code enforces this alignment, so s->statsaddr may now
be used with stw_le_pci_dma() and stl_le_pci_dma()....

ad0c9332 11/28/2011 07:36 pm Paolo Bonzini

virtio: add and use virtio_set_features

vdev->guest_features is not masking features that are not supported by
the guest. Fix this by introducing a common wrapper to be used by all
virtio bus implementations.

Signed-off-by: Paolo Bonzini <>...

ae0f940e 11/28/2011 07:36 pm Paolo Bonzini

9pfs: improve portability to older systems

Small requirements on "new" features have percolated to virtio-9p-local.c.
In particular, the utimensat wrapper actually only supports dirfd = AT_FDCWD
and flags = AT_SYMLINK_NOFOLLOW in the fallback code. Remove the arguments...