Statistics
| Branch: | Revision:

root @ 7ed208c4

# Date Author Comment
356c7ff4 07/17/2009 01:28 am Naphtali Sprei

fix for bad macaddr of e1000 in Windows 2003 server with original MS driver

The sequence of reading from eeprom is "offset by one" moved because of a false
detection of a clock cycle after an eeprom reset. Keeping the last clock value
after a reset keeps it in sync....

7ed208c4 07/17/2009 01:28 am Juan Quintela

fix XEN Build

I miss s/yes/y/ in one place

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

ccb63de3 07/17/2009 01:28 am Gerd Hoffmann

qdev: add user-specified identifier to devices.

Add id field to DeviceState. Make "info qtree" print it.

This helps users and management apps identifying devices in monitor
output, which is especially useful with otherwise identical devices
such as two virtio disks....

ab73ff29 07/17/2009 01:28 am Gerd Hoffmann

qdev/compat: virtio-blk-pci 0.10 compatibility.

Add class property to virtio-blk-pci allowing to specify the PCI class.
Add compat property to pc-0.10 to set the old PCI class.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

eb54b6dc 07/17/2009 01:28 am Gerd Hoffmann

qdev: add id= support for pci nics.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

d6beee99 07/17/2009 01:28 am Gerd Hoffmann

qdev/compat: virtio-console-pci 0.10 compatibility.

Add class property to virtio-console-pci allowing to specify the PCI class.
Add compat property to pc-0.10 to set the old PCI class.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

8ad12514 07/17/2009 01:28 am Gerd Hoffmann

qdev: print device id in "info pci".

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

a1e0fea5 07/17/2009 01:28 am Gerd Hoffmann

qdev/compat: virtio-net-pci 0.10 compatibility.

Add vectors property, allowing to turn off msi by setting vectors=0.
Add compat property to pc-0.10 disabling msi.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

f3519986 07/17/2009 01:28 am Gerd Hoffmann

qdev: es1370+ac97 description

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

81ebb98b 07/17/2009 01:28 am Gerd Hoffmann

qdev: factor out driver search to qdev_find_info()

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

b6b61144 07/17/2009 01:28 am Gerd Hoffmann

qdev/compat: compat property infrastructure.

This add support for switching devices into a compatibility mode
using device properties. Machine types can have a list of properties
for specific devices attached to allow the easy creation of machine
types compatible to older qemu versions....

3320e56e 07/17/2009 01:28 am Gerd Hoffmann

qdev: add no_user, alias and desc

no_user: prevent users from adding certain devices.
desc: description of the device.
alias: to allow user friendly shortcuts on the command line, i.e.
-device usbmouse instead of -device "QEMU USB Mouse" or
-device lsi instead of -device lsi53c895a...

96cc1810 07/17/2009 01:28 am Gerd Hoffmann

qdev/compat: add pc-0.10 machine type.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

0bb05eaf 07/17/2009 01:28 am Glauber Costa

fix segfault in setting migration speed

Hi,

Whoever wrote this migrate_set_speed function is totally stupid.

Any failed or completed migration keeps its state to allow probing of
migration data, but has no associated file anymore. It is, thus,
possible to crash qemu by calling migrate_set_speed after a migration...

ef74679a 07/17/2009 01:28 am Dinesh Subhraveti

Initialize PS2 keyboard / mouse state on reset

Currently only common PS2 state is initialized, leaving keyboard and
mouse specific state to contain stale values.

Signed-off-by: Dinesh Subhraveti <>
Signed-off-by: Anthony Liguori <>

f114784f 07/17/2009 01:28 am Jan Kiszka

monitor: Add port write command

Useful for testing hardware emulations or manipulating its state to
stress guest drivers.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

ee6847d1 07/17/2009 01:28 am Gerd Hoffmann

qdev: rework device properties.

This patch is a major overhaul of the device properties. The properties
are saved directly in the device state struct now, the linked list of
property values is gone.

Advantages: * We don't have to maintain the list with the property values....

15239b2e 07/17/2009 01:28 am Gerd Hoffmann

cleanup: drop unused struct elements from VirtIOPCIProxy.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>

07323531 07/17/2009 01:28 am Isaku Yamahata

ioport: use uint{32, 16, 8}_t for ioport value and pio_addr_t for ioport address.

Using int for cpu_{in, out}[bwl] is inconsistent with other part
because for address or value, uintN_t is used by other qemu part.
At least, softmmu, CPU{Read, Write}MemoryFunc, pci, target_phys_addr_t...

bf4e5d92 07/17/2009 01:28 am Pascal Terjan

Handle vga= in -append

Here is a patch I had sent twice to the list 2 years ago.
Hopefuly this time someone will be interested

It adds support for passing vga mode to linux kernel through
vga= option in -append

Signed-off-by: Pascal Terjan <>...

ca94dbc7 07/17/2009 01:28 am Kevin Wolf

qemu-io: Implement bdrv_load_vmstate/bdrv_save_vmstate

The load_vmstate and save_vmstate functions are implemented as a
variation of the normal read/write operation, enabled by the -b option.
This is the same mechanism as is used to switch from read/write to...

7d93b1fa 07/17/2009 01:28 am Beth Kon

Reset HPET config register on hpet_reset

Without this, after system reset, hpet does not detect transition from
non-legacy to legacy mode.

Signed-off-by: Beth Kon <>
Signed-off-by: Anthony Liguori <>

08738984 07/17/2009 01:28 am Igor Kovalenko

tlb flush cleanup

Use static empty variable s_cputlb_empty_entry to clear entries,
also reset addend member when clearing entries.
This helps running with valgrind/memcheck

Signed-off-by:

--
Kind regards,
Igor V. Kovalenko
Signed-off-by: Anthony Liguori <>

1db6947d 07/17/2009 01:28 am Christoph Hellwig

qemu-io: use BDRV_O_FILE to implement the growable open option

Instead of doing our own check for protocols which fails because raw isn't
formally a protocol but special cased in find_protocol specify the BDRV_O_FILE
option to use the same code as bdrv_file_open does....

9f6839d4 07/17/2009 01:28 am Stuart Brady

Remove dead i386 assembly code from softmmu_header.h

This patch removes dead i386 assembly code from softmmu_header.h.

The code is conditional on ASM_SOFTMMU, which is never defined.
Optimisation for the fast path is already handled by tcg_out_qemu_ld()...

89befdd1 07/17/2009 01:28 am Paolo Bonzini

honor -S on incoming migration

-S is not honored by qemu on incoming migration. If a domain is migrated
while paused, thus, it will start running on the remote machine; this
is wrong.

Given the trivial patch to fix this, it looks more like a thinko
than anything else, probably dating back to the qemu-kvm merge....

09ac35ac 07/17/2009 01:28 am Andre Przywara

omit 3DNOW! CPUID bits from qemu64 CPU model

Since we recently do not disable 3DNOW! support anymore, we should
avoid setting the bits in the default qemu64 CPU model to ease
migration. TCG does not support it anyway and even AMD deprecates
it's usage nowadays....

1e37d059 07/17/2009 01:28 am Stefan Weil

raw-posix: Handle errors in raw_create

In qemu-iotests, some large images are created using qemu-img.

Without checks for errors, qemu-img will just create an
empty image, and later read / write tests will fail.

With the patch, failures during image creation are detected...

fc7083b5 07/17/2009 01:28 am Isaku Yamahata

ioport: remove some #ifdef DEBUG_UNUSED_IOPORT.

remove some #ifdef DEBUG_UNUSED_IOPORT in ioport.c
and use PRIx32 where appropriate

Signed-off-by: Isaku Yamahata <>
Cc: Anthony Liguori <>
Cc: Paolo Bonzini <>...

8167ee88 07/16/2009 11:47 pm Blue Swirl

Update to a hopefully more future proof FSF address

Signed-off-by: Blue Swirl <>

a1961a4b 07/16/2009 05:15 pm Blue Swirl

Sparc32: convert slavio interrupt controller to qdev

Also increase QDEV_MAX_IRQ.

Signed-off-by: Blue Swirl <>

666713c0 07/16/2009 04:48 pm Blue Swirl

Sparc32: refactor CPU init

Signed-off-by: Blue Swirl <>

a350db85 07/16/2009 04:48 pm Blue Swirl

Sparc32: convert memory to qdev

Signed-off-by: Blue Swirl <>

f48f6569 07/16/2009 04:48 pm Blue Swirl

Sparc32: convert boot prom to qdev

Signed-off-by: Blue Swirl <>

5f750b2e 07/16/2009 04:47 pm Blue Swirl

Sparc32: convert iommu to qdev

Signed-off-by: Blue Swirl <>

fa28ec52 07/16/2009 04:47 pm Blue Swirl

Sparc32: convert cs4231 to qdev

Signed-off-by: Blue Swirl <>

d3ffcafe 07/16/2009 04:45 pm Blue Swirl

Sparc32: fix SDL zooming with TCX

Signed-off-by: Blue Swirl <>

b8c0e7d7 07/16/2009 04:28 pm Anthony Liguori

Fix non-ACPI Timer Interrupt Routing - v3

v1 -> v2 adds comment suggested by Ryan.
v2 -> v3 clarifies comment and corrects entry count

Signed-off-by: Beth Kon <>
Signed-off-by: Anthony Liguori <>

7aa486fe 07/16/2009 04:28 pm Anthony Liguori

Fix multiboot.bin build on mingw32

This combination of ld/object was suggested by Bartlomiej Celary

Signed-off-by: Anthony Liguori <>

24d904ea 07/16/2009 04:28 pm Anthony Liguori

Don't copy multiboot.bin into pc-bios after built

That dirties the working directory of the tree.

Signed-off-by: Anthony Liguori <>

dd32aa10 07/16/2009 04:28 pm Jan Kiszka

gdbstub: Add vCont support

This patch adds support for the vCont remote gdb command. It is used by
gdb 6.8 or better to switch the debugging focus for single-stepping
multi-threaded targets, ie. multi-threaded application in user mode
emulation or VCPUs in system emulation....

b1631e7a 07/16/2009 04:28 pm Jan Kiszka

gdbstub: x86: Refactor register access

Clarify gdb's register set layout by using constants for
cpu_gdb_read/write_register.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

84273177 07/16/2009 04:28 pm Jan Kiszka

gdbstub: x86: Support for setting segment registers

This allows to set segment registers via gdb also in system emulation
mode. Basic sanity checks are applied and nothing is changed if they
fail. But screwing up the target via this interface will never be...

e1e8f35a 07/16/2009 04:28 pm Anthony Liguori

bios: Fix multiple calls into smbios_load_ex

We're marking the used entry bitmap in smbios_load_external() for each
type we check, regardless of whether we loaded anything. This makes
subsequent calls behave as if we've already loaded the tables from qemu...

45566e9c 07/16/2009 04:28 pm Christoph Hellwig

replace bdrv_{get, put}_buffer with bdrv_{load, save}_vmstate

The VM state offset is a concept internal to the image format. Replace
the old bdrv_{get,put}_buffer method that require an index into the
image file that is constructed from the VM state offset and an offset...

d8d2e079 07/16/2009 04:28 pm Isaku Yamahata

pci.c: remove unnecessary #ifdef DEBUG_PCI.

remove unnecessary #ifdef DEBUG_PCI.

Signed-off-by: Isaku Yamahata <>
Signed-off-by: Anthony Liguori <>

76e30d0f 07/16/2009 04:28 pm Jan Kiszka

Move boot_set callback backend

Move registration function for the boot_set callback handler and provide
qemu_boot_set so that it can also be used outside the monitor code.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

55ddfe8e 07/16/2009 04:28 pm Jan Kiszka

Rework reset handler management

Convert the reset handler maintenance code to TAILQ services.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

dda9b29f 07/16/2009 04:28 pm Jan Kiszka

Add qemu_unregister_reset

Will be used by '-boot once=...', and should also help in other use
cases.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

e0f084bf 07/16/2009 04:28 pm Jan Kiszka

Add boot-once support

This allows to specify an exceptional boot order only for the first
startup of the guest. After reboot, qemu will switch back to the default
order (or what was specified via 'order='). Makes installing from CD
images and then booting the freshly set up harddisk more handy....

95387491 07/16/2009 04:28 pm Jan Kiszka

Add boot menu control via command line switch

Disable the lengthy BIOS prompt for selecting a boot device by default,
but let the user reenable it via '-boot menu=on'.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

2221dde5 07/16/2009 04:28 pm Jan Kiszka

Update boot option documentation

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

ef2039f1 07/16/2009 04:28 pm Anthony Liguori

Regenerate BIOS and add patches for -boot option

Signed-off-by: Anthony Liguori <>

8389e7f4 07/16/2009 04:28 pm Anthony Liguori

slirp: Fix default netmask to 255.255.255.0

This got broken between a13a4126c8 and c92ef6a22d: old slirp code used
255.255.255.0.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

e8b2a1c6 07/16/2009 04:28 pm Mark McLoughlin

Add a pc-0-10 machine type for compatibility with 0.10.x

Add a pc-0-10 machine type to allow a pc machine to be created with
virtio block and console devices compatibility with qemu-0.10.x.

Signed-off-by: Mark McLoughlin <>
Signed-off-by: Anthony Liguori <>

ef3adf68 07/16/2009 04:28 pm Jan Kiszka

Rework -boot option

This patch changes the boot command line option to the canonical format

-boot [order=drives][,...]

where 'drives' is using the same format as the old -boot. The format
switch allows to add the 'menu' and 'once' options in later patches. The...

5c634ef3 07/16/2009 04:28 pm Mark McLoughlin

Change default PCI class of virtio-blk to PCI_CLASS_STORAGE_SCSI

Windows virtio driver cannot pass DTM (certification) tests while the
storage class is PCI_CLASS_STORAGE_UNKNOWN.

A new qdev type is introduced to allow devices using the old class
to be created for compatibility with qemu-0.10.x....

21d58b57 07/16/2009 04:28 pm Mark McLoughlin

Change default PCI class of virtio-console to PCI_CLASS_SERIAL_OTHER

We're using PCI_CLASS_DISPLAY_OTHER now, but qemu-kvm.git is using
PCI_CLASS_OTHERS because:

"As a PCI_CLASS_DISPLAY_OTHER, it reduces primary display somehow on
Windows XP (possibly Windows disables acceleration since it fails...
6f6260c7 07/15/2009 11:45 pm Blue Swirl

Sparc32: convert sparc32_dma to qdev

Signed-off-by: Blue Swirl <>

430c7ec7 07/15/2009 08:03 pm malc

Avoid SIGSEGV when dumping cpu state without enabled logging

Signed-off-by: malc <>

f64ab228 07/15/2009 05:41 pm Blue Swirl

Convert fdc to qdev

Signed-off-by: Blue Swirl <>

c70c59ee 07/15/2009 11:53 am Blue Swirl

Sparc32: convert slavio timers to qdev

Signed-off-by: Blue Swirl <>

6c319c82 07/15/2009 11:51 am Blue Swirl

Sparc32/PPC: convert escc to qdev

Signed-off-by: Blue Swirl <>

2582cfa0 07/13/2009 07:51 pm Blue Swirl

Sparc32: convert slavio_misc to qdev

Signed-off-by: Blue Swirl <>

325f2747 07/13/2009 07:11 pm Blue Swirl

Sparc32: convert idreg to qdev

Signed-off-by: Blue Swirl <>

f4078236 07/13/2009 02:58 am Baojun Wang

target-ppc: enable PPC_MFTB for 44x

According to PPC440 user manual, PPC 440 supports ``mftb'' even it's a
preserved instruction:

PPC440_UM2013.pdf, p.445, table A-3

when I compile a kernel (2.6.30, bamboo_defconfig/440EP &
canyonlands/460EX), I can see ``mftb'' by using ppc-xxx-objdump...

fbe73008 07/13/2009 02:51 am Baojun Wang

ppc tcg: fix wrong bit/mask of wrteei

Signed-off-by: Baojun Wang <>
Signed-off-by: Aurelien Jarno <>

22555301 07/13/2009 12:42 am Nathan Froyd

gdb-xml: fix hacks in powerpc register numbering

The powerpc xml files contained a hack--an empty, non-existent
register--for getting the register numbers to line up for
newer (XML-aware) and older (non-XML-aware) GDB. While this hack worked
in some cases, it didn't work in all cases, notably when the user used...

33890b3e 07/13/2009 12:36 am Nathan Froyd

target-ppc: fix evmergelo and evmergelohi

For 32-bit PPC targets, we translated:

evmergelo rX, rX, rY

as:

rX-lo = rY-lo
rX-hi = rX-lo

which is wrong, because we should be transferring rX-lo first. This
problem is fixed by swapping the order in which we write the parts of...

f55e9d9a 07/13/2009 12:32 am Tristan Gingold

target-ppc: fix typo in _cpu_ppc_load_decr

Use parameter 'next' to fix the hdecr case.
Also pass 'next' by value instead of pointer (more easy to read and no
performance issue for an always_inline function).

Signed-off-by: Tristan Gingold <>...

d27cf0ae 07/12/2009 11:07 pm Blue Swirl

Sparc32/Sparc64/PPC: convert m48txx to qdev

Signed-off-by: Blue Swirl <>

f40070c3 07/12/2009 10:28 pm Blue Swirl

Sparc32: convert tcx to qdev

Also increase QDEV_MAX_MMIO.

Signed-off-by: Blue Swirl <>

798b721e 07/12/2009 09:43 pm Blue Swirl

Sparc32: use the OpenFirmware name for ecc

Signed-off-by: Blue Swirl <>

344b983d 07/12/2009 04:09 pm Aurelien Jarno

target-mips: remove useless code in gen_st_cond()

Signed-off-by: Aurelien Jarno <>

feeb3b6a 07/12/2009 03:11 pm Paul Brook

Fix MIPS SC

Fix botched merge of op_ldst_sc calls to match actual implementation.
Thanks to Aurelien Jarno for diagnosing this.

Signed-off-by: Paul Brook <>

53e3c4f9 07/12/2009 11:54 am Blue Swirl

Sparc64: convert ebus to qdev

Signed-off-by: Blue Swirl <>

5210977a 07/12/2009 11:46 am Igor Kovalenko

sparc64: trap handling corrections

On Sun, Jul 12, 2009 at 12:09 PM, Blue Swirl<> wrote:

On 7/12/09, Igor Kovalenko <> wrote:

Good trap handling is required to process interrupts.
 This patch fixes the following:...

49e66373 07/12/2009 11:16 am Blue Swirl

Sparc32: convert eccmemctl to qdev

Signed-off-by: Blue Swirl <>

5b0f0bec 07/12/2009 10:44 am Igor Kovalenko

sparc64: fix helper_st_asi little endian case typo

On Sun, Jul 12, 2009 at 12:43 AM, Stuart Brady<> wrote:

On Sat, Jul 11, 2009 at 10:22:18PM +0400, Igor Kovalenko wrote:

It is clear that intention is to byte-swap value to be written, not...

7d55273f 07/12/2009 10:43 am Igor Kovalenko

sparc64: really initialize irq

Allocate irq just before passing it to pci bridge initialization
and actually use it to initialize pci bridge.

Signed-off-by:

--
Kind regards,
Igor V. Kovalenko

e8807b14 07/12/2009 10:41 am Igor Kovalenko

sparc64: mmu bypass mode correction

This Implement physical address truncation in mmu bypass mode.
IMMU bypass is also active when cpu enters RED_STATE

Signed-off-by:

--
Kind regards,
Igor V. Kovalenko

536ba015 07/12/2009 10:41 am Igor Kovalenko

sparc64: unify mmu tag matching code

This patch extracts common part of sparc64 tag
matching code used by IMMU and DMMU lookups.

Signed-off-by:

--
Kind regards,
Igor V. Kovalenko

616cbc78 07/12/2009 12:46 am Paul Brook

Fix PCI IRQ breakage

Zero initialize the PCI bus irq count.

Signed-off-by: Paul Brook <>

110c50fd 07/11/2009 11:38 am Blue Swirl

Revert "Fix the PCI header type of APB"

This reverts commit e8d2a88755b849bdadaf80d19e342eade3c017bc.

ac47a60b 07/11/2009 11:20 am Blue Swirl

Fix APB by reverting 16eaedf2668e9b347a59d73346fcc4c764c58348 partially

Signed-off-by: Blue Swirl <>

0c3271c5 07/10/2009 11:32 pm Anthony Liguori

Indent ac97 and es1370 according to audio formatting

For the sake of consistency. I pulled in the wrong patches from Gerd when
he did the qdev conversion.

Signed-off-by: Anthony Liguori <>

4bfd1712 07/10/2009 09:44 pm Michael S. Tsirkin

qemu/msi: clean used vectors state on load

Clean up msix vector usage state on load. Since guest might have control
over it through the device, the device will have to load this state from
file.

Signed-off-by: Michael S. Tsirkin <>
Signed-off-by: Anthony Liguori <>

72755a70 07/10/2009 09:44 pm Michael S. Tsirkin

qemu/msi: missing braces

MSIX present bit is tested incorrectly, and only happens to work because
the bit we are testing is 0x1. Add braces to fix this.

Reported-by: Blue Swirl <>
Signed-off-by: Michael S. Tsirkin <>
Signed-off-by: Anthony Liguori <>

e6da7680 07/10/2009 09:44 pm Michael S. Tsirkin

qemu/virtio: mark msi vectors used on load

Usage of msi vectors is controlled by the guest and so needs to be
restored on load. Do this for msi vectors used by the virtio device.

Signed-off-by: Michael S. Tsirkin <>
Signed-off-by: Anthony Liguori <>

d9db889f 07/10/2009 09:44 pm Jan Kiszka

kvm: Work around borken MSR_GET_INDEX_LIST

Allocate enough memory for KVM_GET_MSR_INDEX_LIST as older kernels shot
far beyond their limits, corrupting user space memory.

Signed-off-by: Jan Kiszka <>
Signed-off-by: Anthony Liguori <>

0884657b 07/10/2009 09:44 pm Glauber Costa

flush pending aio requests

When we finish migration, there may be pending async io requests
in flight. If we don't flush it before stage3 starting, it might be
the case that the guest loses it.

Signed-off-by: Glauber Costa <>
Signed-off-by: Anthony Liguori <>

36afc451 07/10/2009 09:44 pm Avi Kivity

block: Clean up after deleting BHs

Commit 6a7ad299 ("Call qemu_bh_delete at bdrv_aio_bh_cb") deletes emulated
aio bottom halves to prevent endless accumulation. However, it leaves a
stale ->bh pointer, which is then waited on when the aio is reused.

Zeroing the pointer fixes the issue, allowing vmdk format images to be used....

55496240 07/10/2009 09:44 pm Mark McLoughlin

Prefer sysfs for USB host devices

Scanning for devices via /sys/bus/usb/devices/ and using them via the
/dev/bus/usb/<bus>/<device> character devices is the prefered method
on modern kernels, so try that first.

When using SELinux and libvirt, qemu will have access to /sys/bus/usb...

c53ffce9 07/10/2009 09:44 pm Kevin Wolf

qcow1: Fix qcow_aio_writev

Pass is_write = 1 to qcow_aio_setup when writing.

Signed-off-by: Kevin Wolf <>
Signed-off-by: Anthony Liguori <>

3f6a3ee5 07/10/2009 09:44 pm Kevin Wolf

qcow2: Fix L1 table memory allocation

Contrary to what one could expect, the size of L1 tables is not cluster
aligned. So as we're writing whole sectors now instead of single entries,
we need to ensure that the L1 table in memory is large enough; otherwise...

e6a0575e 07/10/2009 09:41 pm Anthony Liguori

Make sure to mark MCE defines as ULL

Fixes build on 32-bit

Signed-off-by: Anthony Liguori <>

1fa63e43 07/10/2009 09:41 pm Michael Buesch

usb-ohci: Fix endianness issue

This fixes a possible endianness issue in the usb-ohci hw module.
hcca.frame and ohci->frame_number are 16bit, so use cpu_to_le16().

Signed-off-by: Michael Buesch <>
Signed-off-by: Anthony Liguori <>

cf57298a 07/10/2009 08:25 pm Christoph Hellwig

qemu-io: better input validation for vector-based commands

Fix up a couple of issues with validating the input of the various
length arguments for the vectored I/O commands:

- do the alignment check on each length instead the always 0 count argument
- use a long long varibale for the cvtnum return value so that we can check...
9c4bab26 07/10/2009 08:25 pm Christoph Hellwig

qemu-io: add flag to mark files growable

Add a -g flag to the open command and the main qemu-io command line to
allow opening a file growable. This is only allowed for protocols,
mirroring the limitation exposed through bdrv_file_open.

Signed-off-by: Christoph Hellwig <>...

7d8abfcb 07/10/2009 08:25 pm Kevin Wolf

qemu-io: fix memory leak

qemu-io leaks the request buffer whenever the read or write function isn't
executed completely down the "normal" code path.

[hch: also fix the aio and vectored variants the same way]

Signed-off-by: Kevin Wolf <>...