Statistics
| Branch: | Revision:

root / hw @ 2a424990

# Date Author Comment
2a424990 11/16/2009 07:06 pm Paul Brook

LAN9118 emulation

Add SMSC LAN9118 ethernet emulation.

Signed-off-by: Paul Brook <>

e90e795e 11/16/2009 12:04 am Aurelien Jarno

mips_r4k: fix reset

(broken by 45a50b1668822c23afc2a89f724654e176518bc4)

Signed-off-by: Aurelien Jarno <>

d27d06f2 11/15/2009 07:42 pm Blue Swirl

PPC64: map Uni-North AGP bus aka fix Linux boot

Uni-North AGP device mapping was accidentally dropped in
2e29bd04786003561303dcad940b38afe790fb9b.

Map the device.

Signed-off-by: Blue Swirl <>

60398748 11/15/2009 04:30 pm Blue Swirl

PPC64: Partial fix to Linux crash: revert to old devfn

Before 2e29bd04786003561303dcad940b38afe790fb9b, Uni-North host and AGP
bridge were using the same devfn, 11 << 3. The net effect was that only
AGP bridge was visible. This was changed in the commit to 13 << 3 for AGP....

c364c974 11/15/2009 04:30 pm Blue Swirl

PCI: make duplicate devfn allocation fatal

Only two callers of pci_create_simple/pci_register_device bothered
to check the return value. Other cases were prone to crashing with
spurious NULL pointer dereferences.

Make QEMU exit with an error message when devfn is attempted to...

593c0d10 11/14/2009 02:10 pm Aurelien Jarno

mips malta: fix indentation

Signed-off-by: Aurelien Jarno <>

c938ada2 11/14/2009 02:04 pm Aurelien Jarno

mips-malta: fix reset

(broken by 45a50b1668822c23afc2a89f724654e176518bc4)

Signed-off-by: Aurelien Jarno <>

91011d4f 11/14/2009 02:14 am Stefan Weil

pci: Fix function pci_default_write_config

Change 260c0cd3d985e51b15870ff47e17b7b930efbda1
(pci: use range helper functions) introduced a
bug which made pci cirrus vga on mips malta
(and maybe other pci devices) fail.

Don't change addr - its original value is needed...

e16ad5b0 11/14/2009 02:11 am Aurelien Jarno

mips: fix CPU reset

Don't load the kernel twice during reset.
See f2d74978764f62d832d61ac17bb5d934ade58816.

Signed-off-by: Blue Swirl <>
Signed-off-by: Stefan Weil <>
Signed-off-by: Aurelien Jarno <>

bc90ff77 11/13/2009 09:00 pm Blue Swirl

Fix PPC crash

Because of a typo, structure field vga_bios_size was not initialized
properly and a bogus BAR6 for the nonexistent VGA BIOS appeared.

The bug was uncovered by c169998802505c244b8bcad562633f29de7d74a4.

Signed-off-by: Blue Swirl <>

c988bfad 11/13/2009 06:31 am Paul Brook

ARM MPCore tweaks

Allow the user to specify the number of cores present on the
RealView EB + ARM11MPCore board. Also split into its own config
rather than guessing from the CPU name.

Signed-off-by: Paul Brook <>

26e92f65 11/13/2009 06:04 am Paul Brook

Realview/EB procid hacks

Guess core tile ID based on CPU type.

Signed-off-by: Paul Brook <>

dbe73d7f 11/12/2009 07:23 pm Juan Quintela

pci: fix the conversion of config field from array to pointer

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

a00b2335 11/12/2009 07:23 pm Kay Ackermann

e1000 fix: read access to some registers is missing.

While writing working on an e1000 driver for my university's OS I
noticed that some registers aren't readable in QEMU, but they should
be readable as stated in Intels Driver Developer Manual (and also
verified on real hardware)....

2966b390 11/12/2009 07:23 pm Juan Quintela

fdc: fix vmstate variable passed

When code was transformed to use qdev_reset/vmstate registration, vmstate
was passed a variable of the wrong type

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

49c3c8dc 11/12/2009 07:23 pm Kevin Wolf

virtio-blk: Pass read errors to the guest

We need to signal not only write errors, but also read errors to the guest
driver. This fixes a regression introduced by 869a5c6d.

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

4e9df06a 11/12/2009 07:23 pm Stefan Weil

eepro100: Fix boot ROM support

  • Rename pxe-eepro100.bin to pxe-i82559er.bin.
    The other devices supported by eepro100.c need
    additional pxe boot ROM images.
  • Call rom_add_option during initialisation.
    The code won't work with two or more different...
6a90e308 11/12/2009 07:23 pm Stefan Weil

eepro100: Add missing .exit initialisation

Some devices did not have an initialisation value
for entry ".exit". This is fixed here.

Signed-off-by: Stefan Weil <>
Signed-off-by: Anthony Liguori <>

593831de 11/12/2009 07:23 pm Amit Shah

qdev: Check if unplug handler exists before calling it

A bus may have hotplugging enabled but not have the 'unplug'
callback defined, which would lead to a crash on trying to
unplug a device on the bus.

Fix by introducing an assert to check if the callback is valid....

038eaf82 11/12/2009 07:23 pm Stefan Weil

serial: Add interface to set reference oscillator frequency

Many (most?) serial interfaces have a programmable
clock which provides the reference frequency ("baudbase").
So a fixed baudbase which is only set once can be wrong.

omap1.c is an example which could use the new interface...

ba6d048a 11/12/2009 03:15 am Edgar E. Iglesias

microblaze: Move the kcmdline out of the way.

Avoids rom overlap conflicts.

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

be0f204a 11/11/2009 09:59 pm Paul Brook

Fix ARM MCore secondary cpu boot

Make MPCore secondary cpu initialization work with the new reset
handling. Also change the inital FLAG value from 3 to zero to match
recent kenrels.

Signed-off-by: Paul Brook <>

97fe84f5 11/11/2009 08:21 pm Paul Brook

Reject late rom loading

rom_+add_file/rom_add_blob only work correctly if called before
load_all_roms. Enforce this rather than silently accepting and putting
the rom in the wrong place at reset.

Signed-off-by: Paul Brook <>

f2d74978 11/11/2009 08:07 pm Paul Brook

Fix ARM system emulation

Since 45a50b1 load_image_targphys should only be called once.
ARM boards incorrectly call it every time the system is reset.

Signed-off-by: Paul Brook <>

ba42b646 11/09/2009 04:43 pm Stefan Weil

eepro100: Improve support for different devices

  • Add device properties (size of statistical data,
    extended tcb support) to EEPRO100State and set
    these values for the different devices.
  • Fix PCI configuration for existing devices.
  • Add initialisation code for missing devices....
260c0cd3 11/09/2009 04:43 pm Isaku Yamahata

pci: use range helper functions.

clean up pci_default_write_config() by the range helper functions.

Suggested by Michael S. Tsirkin <>
Cc: Michael S. Tsirkin <>
Signed-off-by: Isaku Yamahata <>
Signed-off-by: Anthony Liguori <>

edb00035 11/09/2009 04:43 pm Isaku Yamahata

pci: teach pci_default_config_write() ROM bar for normal/bridge device .

When updated ROM expantion address of header type 0, it missed
to update mappings.
Add PCI_ROM_ADDRESS check whether to call pci_update_mappings()
Also update pci mapping when PCI_ROM_ADDRESS1 is written for header type 1....

fb231628 11/09/2009 04:43 pm Isaku Yamahata

pci: initialize pci config headers depending it pci header type.

- Only sets default subsystem id for header type 00.(normal header type)
because header type 01 doesn't have subsystem id, and uses the register
for other purpose. So setting default subsystem id doesn't make sense....

a9688570 11/09/2009 04:43 pm Isaku Yamahata

pci: cosmetic on pci_upadte_mappings()

Remove one indentation of pci_update_mappings.
Just for cosmetics, no logic change.

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

1074df4f 11/09/2009 04:43 pm Isaku Yamahata

pci: factor out pci_for_each_device().

split out device iteration logic from pci_for_each_device().
factored out function, pci_for_each_device_under_bus() will be used later.

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

a0c7a97e 11/09/2009 04:43 pm Isaku Yamahata

pci: implement pci bridge filtering.

This patch implements pci bridge filtering.

TODO: currently almost all the map funcions assumes
filtered_size size and addr & ~(size - 1) addr.
However with bridge filtering, they aren't always true.
Teach them such cases, such that filtered_size < size and...

b4dccd8d 11/09/2009 04:43 pm Isaku Yamahata

pci/monitor: print out bridge's filtering values and so on.

make pci_info_device() print out bridge's filtering value like
io base/limit, subbus and subordinate bus.

Signed-off-by: Isaku Yamahata <>
Acked-by: Michael S. Tsirkin <>...

14421258 11/09/2009 04:43 pm Isaku Yamahata

pci: 64bit bar support.

implemented pci 64bit bar support.
The tricky bit is pci_update_mapping().
An OS is allowed to set the BAR such that OS can't address the area
pointed by BAR. It doesn't make sense, though.
In that case, don't map the BAR.

Signed-off-by: Isaku Yamahata <>...

e94ff650 11/09/2009 04:43 pm Isaku Yamahata

pci: remove bus_num member from struct PCIBus.

Since It can be retrieved from pci configuration space,
the member is unnecessary.

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

e822a52a 11/09/2009 04:43 pm Isaku Yamahata

pci: make pci configuration transaction more accurate.

This patch sorts out/enhances pci code to track pci bus topology
more accurately.
- Track host bus bridge with pci domain number. Although the
current qemu implementation supports only pci domian 0 yet....

74e32ac1 11/09/2009 04:43 pm Isaku Yamahata

pci: factor out the conversion logic from io port address into pci device.

factor out the logic which converts io port address into pci device
and offset in PCI configuration space.

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

766347cc 11/09/2009 04:43 pm Isaku Yamahata

pci: move pci host stuff from pci.c to pci_host.c

Move pci host stuff from pci.c to pci_host.c.
And add some comments.
Later pcie host bridge functions will be defined in pcie_host.c
not to bloat pci.c.

Signed-off-by: Isaku Yamahata <>...

ce195fb5 11/09/2009 04:43 pm Isaku Yamahata

pci_host: change the signature of pci_data_{read, write}.

change the first argument, void opaque to PCIBus *s
of the pci_data_{read, write}.
They aren't used as direct callback so the argument type
don't have to be void
. So change it to the right type....

9cae69bd 11/09/2009 04:43 pm Isaku Yamahata

vmstate: introduce VMSTATE_BUFFER_UNSAFE_INFO.

VMSTATE_BUFFER_UNSAFE_INFO for as a buffer with specified VMStateInfo.
It will be used later.

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

a9f49946 11/09/2009 04:43 pm Isaku Yamahata

pci: pcie host and mmcfg support.

This patch adds common routines for pcie host bridge and pcie mmcfg.
This will be used by q35 based chipset emulation.

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

f49db805 11/09/2009 04:43 pm Isaku Yamahata

pci: add helper functions to check ranges overlap.

add helper function to check ranges overlap suggested by
Michael S. Tsirkin <>.
His original suggestion was to use [first, last], however I chosen
to use offset, length pair, i.e. [offset, offset + length)...

a455783b 11/09/2009 04:43 pm Isaku Yamahata

pci_host: consolidate pci config address access.

consolidate pci_config address access into pci_host.c

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

6e355d90 11/09/2009 04:43 pm Isaku Yamahata

pci: introduce pcibus_t to represent pci bus address/size instead of uint32_t

This patch is preliminary for 64 bit BAR support.
Introduce dedicated type, pcibus_t, to represent pci bus address/size
instead of uint32_t.
Later this type will be changed to uint64_t....

89e8b13c 11/09/2009 04:43 pm Isaku Yamahata

pci: introduce FMT_PCIBUS for printf format for pcibus_t.

This patch is preliminary for 64bit BAR.
Later pcibus_t will be changed from uint32_t to uint64_t.
Introduce FMT_PCIBUS for printf format for pcibus_t.

Signed-off-by: Isaku Yamahata <>...

4f8589e1 11/09/2009 04:43 pm Isaku Yamahata

pci: typedef pcibus_t as uint64_t instead of uint32_t.

This patch is preliminary for 64bit bar.
For 64bit bar support, change pcibus_t which represents
pci bus addr/size from uint32_t to uint64_t.
And also change FMT_pcibus for printf.

In pci_update_mapping() checks 32bit overflow....

0392a017 11/09/2009 04:43 pm Isaku Yamahata

pci: s/PCI_ADDRESS_SPACE_/PCI_BASE_ADDRESS_SPACE_/ to match pci_regs.h

make constants for pci base address match pci_regs.h by
renaming PCI_ADDRESS_SPACE_xxx to PCI_BASE_ADDRESS_SPACE_xxx.

Signed-off-by: Isaku Yamahata <>
Acked-by: Michael S. Tsirkin <>...

5029fe12 11/09/2009 04:43 pm Isaku Yamahata

pci: clean up of pci_default_read_config.

This patch cleans up pci_default_read_config() removing
ugly length and range check.

Suggested by "Michael S. Tsirkin" <>
Signed-off-by: Isaku Yamahata <>
Acked-by: Michael S. Tsirkin <>...

b3b11697 11/09/2009 04:43 pm Isaku Yamahata

pci: make pci_bar() aware of header type 1.

make pci_bar() aware of header type 1. When PCI_ROM_SLOT
it should return PCI_ROM_ADDRESS1 (!= PCI_ROM_ADDRESS)

Signed-off-by: Isaku Yamahata <>
Acked-by: Michael S. Tsirkin <>...

4f5e19e6 11/09/2009 04:43 pm Isaku Yamahata

pci_host.h: move functions in pci_host.h into .c file.

split static functions in pci_host.h into pci_host.c and
pci_host_template.h.
Later a structures declared in pci_host.h, PCIHostState, will be used.
However pci_host.h doesn't allow to include itself easily. This patches...

b0ff8eb2 11/09/2009 04:43 pm Isaku Yamahata

pci: use helper functions to access pci config space.

use pci_[gs]et_{byte, word, long}() to access pci configuration
space.

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

74c01823 11/09/2009 04:43 pm Isaku Yamahata

pci/bridge: clean up of pci_bridge_initfn()

- use symbolic constant
- use helper function pci_set_xxx()
- removed lines which initializes to 0.
It is unnecessary because it is already zeroed.
- add some comments on command registers.

Some initial values are suspicious because they seems to...

67a51b48 11/09/2009 04:43 pm Isaku Yamahata

pci: clean up pci_init_wmask()

use pci_set_word() for pci command register.

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

2e49d64a 11/09/2009 04:43 pm Isaku Yamahata

pci: fix PCI_DPRINTF() wrt variadic macro.

add missing ## in PCI_DPRINTF() to compile.

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

e369cad7 11/09/2009 04:43 pm Isaku Yamahata

pci: introduce constant PCI_NUM_PINS for the number of interrupt pins, 4.

introduce constant PCI_NUM_PINS for the number of interrupt pins, 4.
and use it.

Signed-off-by: Isaku Yamahata <>
Acked-by: Michael S. Tsirkin <>...

2217dcff 11/09/2009 04:43 pm Isaku Yamahata

pci: use PCI_SLOT() and PCI_FUNC().

use PCI_SLOT() and PCI_FUNC() where appropriate instead of
direct use of bit operation.

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

182f9c8a 11/09/2009 04:43 pm Isaku Yamahata

pci: define a constant to represent a unmapped bar and use it.

define a constant to represent a unmapped bar instead of -1 and use it.

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

fb5ce7d2 11/09/2009 04:43 pm Isaku Yamahata

pci: helper functions to access PCIDevice::config

add helper functions to get/set PCIDevice::config
Those will be used later.

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

184bd048 11/09/2009 04:43 pm Dustin Kirkland

whitelist host virtio networking features

This patch is a followup to 8eca6b1bc770982595db2f7207c65051572436cb,
fixing crashes when guests with 2.6.25 virtio drivers have saturated
virtio network connections.

https://bugs.edge.launchpad.net/ubuntu/+source/qemu-kvm/+bug/458521...

1cd3af54 11/09/2009 04:43 pm Gerd Hoffmann

scsi: move scsi.h -> esp.h

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

43b443b6 11/09/2009 04:43 pm Gerd Hoffmann

scsi: move scsi-disk.h -> scsi.h

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

39a51dfd 11/09/2009 04:43 pm Markus Armbruster

qdev: Tag isa-fdc, PIIX3 IDE and PIIX4 IDE as no-user

These devices are created automatically, and attempting to create
another one with -device fails with "qemu: hardware error:
register_ioport_write: invalid opaque".

Signed-off-by: Markus Armbruster <>...

eb852011 11/09/2009 04:43 pm Markus Armbruster

Configurable block format whitelist

We have code for a quite a few block formats. While I trust that all
of these formats are useful at least for some people in some
circumstances, some of them are of a kind that friends don't let
friends use in production....

cdd5cc12 11/09/2009 04:43 pm Mark McLoughlin

virtio-net: split the has_buffers() logic from can_receive()

We should only return zero from receive() for a condition which we'll
get notification of when it changes. Currently, we're returning zero
if the guest driver is not ready, but we won't ever flush our queue...

c79662f7 11/09/2009 04:43 pm Naphtali Sprei

Pass the drive's readonly attribute to the guest OS

Implemented for virtio-blk and for scsi

Signed-off-by: Naphtali Sprei <>
Signed-off-by: Anthony Liguori <>

4a643563 11/07/2009 04:13 pm Blue Swirl

IDE: Fix reset handling

Problem: x86 systems could not survive a few system_resets.

Clear most of IDE state when reset. Implement the missing reset handlers.

Signed-off-by: Blue Swirl <>

d84bda46 11/07/2009 12:36 pm Blue Swirl

PPC: rename cpu_ppc_reset to cpu_reset for consistency

Signed-off-by: Blue Swirl <>

44a99354 11/07/2009 12:05 pm Blue Swirl

Sparc64/x86: remove unneeded calls to device reset

Signed-off-by: Blue Swirl <>

e4394131 11/07/2009 11:32 am Blue Swirl

PPC: remove unneeded calls to device reset

Signed-off-by: Blue Swirl <>

a01d6ef4 11/07/2009 10:55 am Blue Swirl

sparc32 (mostly): remove unneeded calls to device reset

Signed-off-by: Blue Swirl <>

c1699988 11/07/2009 10:06 am Glauber Costa

v3: don't call reset functions on cpu initialization

There is absolutely no need to call reset functions when initializing
devices. Since we are already registering them, calling qemu_system_reset()
should suffice. Actually, it is what happens when we reboot the machine,...

cae334cd 11/06/2009 03:08 pm malc

vga: fix line comparison

Line counter doesn't wrap.

Signed-off-by: malc <>

d1984194 11/06/2009 02:46 am malc

vga: Respect Line Compare Register in text modes

Unbreaks setup screen of Act1/PL

Signed-off-by: malc <>

2d7adea4 11/03/2009 04:28 pm Andrzej Zaborowski

hw/sd: Support SDHC size cards

This patch adds SHDC support (-sd sd.img, where sd.img is
larger than 1GB) to qemu.

Signed-off-by: Jason S. McMullan <>
Signed-off-by: Andrzej Zaborowski <>

04095e5f 10/30/2009 04:42 pm Anthony Liguori

Remove e1000 rom loading hack

The gPXE rom supports BEV properly.

Signed-off-by: Anthony Liguori <>

3cbe04c4 10/30/2009 04:42 pm Mark McLoughlin

virtio-net: fix macaddr config regression

This commit:

commit 97b15621
virtio: use qdev properties for configuration.
Signed-off-by: Gerd Hoffmann &lt;&gt;
Signed-off-by: Anthony Liguori &lt;&gt;

makes a guest using virtio-net see an empty macaddr because we never...

79758e95 10/30/2009 03:39 pm Michael S. Tsirkin

qemu/virtio: make wmb compiler barrier + comments

wmb must be at least a compiler barrier, even without SMP.
Further, we likely need some rmb()/mb() as well:
I have not audited the code but lguest has mb(),
add a comment for now.

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

76f5159d 10/30/2009 03:39 pm Michael S. Tsirkin

qemu/msix: fix table access issues

Fixes a couple of issues with msix table access:
- With misbehaving guests, misaligned 4 byte access could overflow
msix table and cause qemu to segfault. Since PCI spec requires
host to only issue dword-aligned accesses, as a fix,...

66a6593a 10/30/2009 03:39 pm Gerd Hoffmann

usb: print attached status in info qtree

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

718b8aec 10/30/2009 03:39 pm Stefan Weil

serial: Add missing bit

Serial frames always start with a start bit.
This bit was missing in frame size calculation.

Signed-off-by: Stefan Weil <>
Signed-off-by: Anthony Liguori <>

2b0efdc3 10/30/2009 03:39 pm Gerd Hoffmann

usb-serial and braille: use qdev for -usbdevice

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

61e094c0 10/30/2009 03:39 pm Gerd Hoffmann

usb: make attach optional.

Add a auto_attach field to USBDevice, which is enabled by default.
USB drivers can clear this field in case they do not want the device
being attached (i.e. plugged into a usb port) automatically after
successfull init().

Use cases (see next patches):...

b3e461d3 10/30/2009 03:39 pm Gerd Hoffmann

usb-storage: use qdev for -usbdevice

Hook up usb_msd_init.

Also rework handling of encrypted block devices,
move the code out vl.c.

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

0958b4cc 10/30/2009 03:39 pm Gerd Hoffmann

usb core: use qdev for -usbdevice

This patchs adds infrastructure to handle -usbdevice via qdev callbacks.
USBDeviceInfo gets a name field (for the -usbdevice driver name) and a
callback for -usbdevice parameter parsing.

The new usbdevice_create() function walks the qdev driver list and looks...

fa7c70c3 10/30/2009 03:39 pm Gerd Hoffmann

usb-hid: use qdev for -usbdevice

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

14a3f32d 10/30/2009 03:39 pm Gerd Hoffmann

rom loader: use qemu_strdup.

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

de2aff17 10/30/2009 03:39 pm Gerd Hoffmann

rom loader: make vga+rom loading configurable.

The rom_add_vga() and rom_add_option() macros are transformed into
functions. They look at the new rom_enable_driver_roms variable
and only do something if it is set to non-zero, making vga+option rom
loading runtime option. pc_init() sets rom_enable_driver_roms to 1....

5245d57a 10/30/2009 03:39 pm Gerd Hoffmann

vga roms: move loading from pc.c to vga drivers.

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

51edd4e6 10/30/2009 03:39 pm Gerd Hoffmann

use rom loader for pc bios.

The pc bios shows up in 'info roms' now.

Note that the BIOS is mapped to two places: The complete rom at the top
of the memory, and the first 128k at 0xe0000. Only the first place is
listed in 'info roms'.

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

a8ed73f7 10/30/2009 03:39 pm Mark McLoughlin

net: move more stuff into net/tap-win32.c, add net/tap.h

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

7200ac3c 10/30/2009 03:39 pm Mark McLoughlin

net: move net-checksum.c under net/

Also add a new net/checksum.h header

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

0ce0e8f4 10/27/2009 07:29 pm Mark McLoughlin

virtio-net: add tap_has_ufo flag to saved state

If we tell the guest we support UFO and then migrate to host which
doesn't support it, we will find ourselves in grave difficulties.

Prevent this scenario by adding a flag to virtio-net's savevm format
which indicates whether the device requires host UFO support....

1d41b0c1 10/27/2009 07:29 pm Anthony Liguori

Work around dhclient brokenness

With the latest GSO/csum offload patches, any guest using an unpatched version
of dhclient (any Ubuntu guest, for instance), will no longer be able to get
a DHCP address.

dhclient is actually at fault here. It uses AF_PACKET to receive DHCP responses...

6c9f58ba 10/27/2009 07:29 pm Sridhar Samudrala

Enable UFO on virtio-net and tap devices

Enable UFO on the host tap device if supported and allow setting UFO
on virtio-net in the guest.

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

f5436dd9 10/27/2009 07:29 pm Mark McLoughlin

virtio-net: enable tap offload if guest supports it

We query the guest's feature set to see if it supports offload and,
if so, we enable those features on the tap interface.

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

70783b9c 10/27/2009 07:29 pm Mark McLoughlin

net: add receive_raw parameter to qemu_new_vlan_client()

Trivial patch to allow supplying a receive_raw function.

A future cleanup should combine this function pointer parameters into a
table.

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

3a330134 10/27/2009 07:29 pm Mark McLoughlin

virtio-net: add vnet_hdr support

With '-netdev tap,id=foo -nic model=virtio,netdev=foo' virtio-net can
detect that its peer (i.e. the tap backend) supports vnet headers
and advertise to the guest that it can send packets with partial
checksums and/or TSO packets....

bb6e6364 10/27/2009 07:29 pm Mark McLoughlin

net: add a client type code

This is so as to allow APIs which operate on specific client types
without having to add a function table entry which is only implemented
by a single client type.

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

1ae71a77 10/27/2009 07:28 pm Juan Quintela

vmstate: Add VMSTATE_BUFFER_UNSAFE

Just sent <anything> as a buffer. We put the pointer and the size
code does the rest.

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

4a1b0f1c 10/27/2009 07:28 pm Juan Quintela

lsi_scsi: port to vmstate

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

6848d827 10/27/2009 07:28 pm Luiz Capitulino

monitor: Convert do_pci_device_hot_remove() to QObject

Errors are still directly printed, as we are only converting
regular output.

Signed-off-by: Luiz Capitulino <>
Signed-off-by: Anthony Liguori <>