Statistics
| Branch: | Revision:

root @ 182735ef

# Date Author Comment
182735ef 07/09/2013 10:32 pm Andreas Färber

cpu: Make first_cpu and next_cpu CPUState

Move next_cpu from CPU_COMMON to CPUState.
Move first_cpu variable to qom/cpu.h.

gdbstub needs to use CPUState::env_ptr for now.
cpu_copy() no longer needs to save and restore cpu_next.

Acked-by: Paolo Bonzini <>...

6291ad77 07/09/2013 10:20 pm Peter Maydell

linux-user: Move cpu_clone_regs() and cpu_set_tls() into linux-user

The functions cpu_clone_regs() and cpu_set_tls() are not purely CPU
related -- they are specific to the TLS ABI for a a particular OS.
Move them into the linux-user/ tree where they belong....

6e42be7c 07/09/2013 10:20 pm Andreas Färber

cpu: Drop unnecessary dynamic casts in *_env_get_cpu()

A transition from CPUFooState to FooCPU can be considered safe,
just like FooCPU::env access in the opposite direction.
The only benefit of the FOO_CPU() casts would be protection against
bogus CPUFooState pointers, but then surrounding code would likely...

80b7cd73 07/09/2013 10:20 pm Andreas Färber

kvm: Free current_cpu identifier

Since CPU loops are done as last step in kvm_{insert,remove}_breakpoint()
and kvm_remove_all_breakpoints(), we do not need to distinguish between
invoking CPU and iterated CPUs and can thereby free the identifier for
use as a global variable....

4917cf44 07/09/2013 10:20 pm Andreas Färber

cpu: Replace cpu_single_env with CPUState current_cpu

Move it to qom/cpu.h.

Signed-off-by: Andreas Färber <>

1d5791f4 07/09/2013 10:20 pm Andreas Färber

kvm: Change kvm_remove_all_breakpoints() argument to CPUState

Acked-by: Paolo Bonzini <>
Reviewed-by: Richard Henderson <>
Signed-off-by: Andreas Färber <>

9b056fcc 07/09/2013 10:20 pm Andreas Färber

linux-user: Clean up do_syscall() Coding Style for TARGET_NR_exit

In particular fix 6-/10-char indentation.

Signed-off-by: Andreas Färber <>

aa48dd93 07/09/2013 09:50 pm Andreas Färber

Revert "gdbstub: Simplify find_cpu()"

This reverts commit c52a6b67c1d7c6fc9fb2e3ba988d7b978e1487d3, which
replaced cpu_index() with cpu_index field, leading to deviation from
thread ID for NTPL and off-by-one otherwise.

Reported-by: Max Filippov <>...

071b3364 07/09/2013 08:09 pm Dongxue Zhang

target-openrisc: Fix typename in openrisc_cpu_class_by_name()

Commit 478032a93d908e59085c1ac56f10979942e7dc4f (target-openrisc:
Rename CPU subtypes) suffixed CPU sub-types with "-or32-cpu" but forgot
to update openrisc_cpu_class_by_name(), so that it was still looking for...

dc11549e 07/08/2013 04:00 pm Anthony Liguori

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

pci,misc enhancements

This includes some pci enhancements:

Better support for systems with multiple PCI root buses
FW cfg interface for more robust pci programming in BIOS
Minor fixes/cleanups for fw cfg and cross-version migration -...

c473d18d 07/07/2013 11:10 pm David Gibson

pci: Use helper to find device's root bus in pci_find_domain()

Currently pci_find_domain() performs two functions - it locates the PCI
root bus above the given bus, then looks up that root bus's domain number.
This patch adds a helper function to perform the first task, finding the...

568f0690 07/07/2013 11:10 pm David Gibson

pci: Replace pci_find_domain() with more general pci_root_bus_path()

pci_find_domain() is used in a number of places where we want an id for a
whole PCI domain (i.e. the subtree under a PCI root bus). The trouble is
that many platforms may support multiple independent host bridges with no...

85c6e4fa 07/07/2013 11:10 pm David Gibson

pci: Add root bus argument to pci_get_bus_devfn()

pci_get_bus_devfn() interprets a full PCI address string to give a PCIBus *
and device/function number within that bus. Currently it assumes it is
working on an address under the primary PCI root bus. This patch extends...

29b358f9 07/07/2013 11:10 pm David Gibson

pci: Add root bus parameter to pci_nic_init()

At present, pci_nic_init() and pci_nic_init_nofail() assume that they will
only create a NIC under the primary PCI root. As we add support for
multiple PCI roots, that may no longer be the case. This patch adds a root...

9bc47305 07/07/2013 11:10 pm David Gibson

pci: Simpler implementation of primary PCI bus

Currently pci_find_primary_bus() searches the list of root buses for one
with domain 0. But since host buses are always registered with domain 0,
this just amounts to finding the only PCI host bus. The only remaining...

2b8cc89a 07/07/2013 11:10 pm David Gibson

pci: Remove domain from PCIHostBus

There are now no users of the domain field of PCIHostBus, so remove it
from the structure, and as a parameter from the pci_host_bus_register()
function which sets it.

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

7588e2b0 07/07/2013 11:10 pm David Gibson

pci: Fold host_buses list into PCIHostState functionality

The host_buses list is an odd structure - a list of pointers to PCI root
buses existing in parallel to the normal qdev tree structure. This patch
removes it, instead putting the link pointers into the PCIHostState...

1ef7a2a2 07/07/2013 11:10 pm David Gibson

pci: Abolish pci_find_root_bus()

pci_find_root_bus() takes a domain parameter. Currently PCI root buses
with domain other than 0 can't be created, so this is more or less a long
winded way of retrieving the main PCI root bus. Numbered domains don't
actually properly cover the (non x86) possibilities for multiple PCI root...

945dad6d 07/07/2013 08:20 pm Jia Liu

MAINTAINERS: Add myself into MAINTAINERS file

Add myself into MAINTAINERS file, I'll looking at target-openrisc
and hw/openrisc.

Signed-off-by: Jia Liu <>
Message-id:
Signed-off-by: Anthony Liguori <>

6e481d57 07/07/2013 08:20 pm Peter Maydell

MAINTAINERS: fix bad F: patterns

This patch fixes a number of incorrect F: patterns which didn't
match any files in the source tree. This was caused by a mix
of minor typos (- for _ and the like) and a few entries which
hadn't been correctly updated following the rearrangement of hw/....

9b4abb46 07/07/2013 07:28 pm Anthony Liguori

Merge remote-tracking branch 'stefanha/block' into staging

  1. By Fam Zheng (2) and Stefan Hajnoczi (1)
  2. Via Stefan Hajnoczi
    • stefanha/block:
      block: fix bdrv_flush() ordering in bdrv_close()
      curl: refuse to open URL from HTTP server without range support...
c3ab4c9c 07/07/2013 07:19 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/iommu-for-anthony' into staging

  1. By Paolo Bonzini (50) and others
  2. Via Paolo Bonzini
    • bonzini/iommu-for-anthony: (66 commits)
      exec: change some APIs to take AddressSpaceDispatch
      exec: remove cur_map
      exec: put memory map in AddressSpaceDispatch...
58fda173 07/05/2013 11:52 am Stefan Hajnoczi

block: fix bdrv_flush() ordering in bdrv_close()

Since 80ccf93b we flush the block device during close. The
bdrv_drain_all() call should come before bdrv_flush() to ensure guest
write requests have completed. Otherwise we may miss pending writes
when flushing....

da7a50f9 07/05/2013 10:40 am Fam Zheng

vmdk: Implement .bdrv_has_zero_init

Depending on the subformat, has_zero_init queries underlying storage for
flat extent. If it has a flat extent and its underlying storage doesn't
have zero init, return 0. Otherwise return 1.

Aligns the operator assignments....

3494d650 07/05/2013 10:40 am Fam Zheng

curl: refuse to open URL from HTTP server without range support

CURL driver requests partial data from server on guest IO req. For HTTP
and HTTPS, it uses "Range: ***" in requests, and this will not work if
server not accepting range. This patch does this check when open....

6092666e 07/04/2013 06:42 pm Paolo Bonzini

exec: remove cur_map

cur_map is not used anymore; instead, each AddressSpaceDispatch
has its own nodes/sections pair. The priorities of the
MemoryListeners, and in the future RCU, guarantee that the
nodes/sections are not freed while they are still in use....

c7086b4a 07/04/2013 06:42 pm Paolo Bonzini

exec: change some APIs to take AddressSpaceDispatch

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

5444e768 07/04/2013 06:42 pm Paolo Bonzini

add a header file for atomic operations

We're already using them in several places, but __sync builtins are just
too ugly to type, and do not provide seqcst load/store operations.

Reviewed-by: Richard Henderson <>
Signed-off-by: Paolo Bonzini <>

99e86347 07/04/2013 06:42 pm Paolo Bonzini

memory: access FlatView from a local variable

We will soon require accesses to as->current_map to be placed under
a lock (with reference counting so as to keep the critical section
small). To simplify this change, always fetch as->current_map into
a local variable and access it through that variable....

a9a0c06d 07/04/2013 06:42 pm Paolo Bonzini

memory: use a new FlatView pointer on every topology update

This is the first step towards converting as->current_map to
RCU-style updates, where the FlatView updates run concurrently
with uses of an old FlatView.

Reviewed-by: Anthony Liguori <>...

856d7245 07/04/2013 06:42 pm Paolo Bonzini

memory: add reference counting to FlatView

With this change, a FlatView can be used even after a concurrent
update has replaced it. Because we do not yet have RCU, we use a
mutex to protect the small critical sections that read/write the
as->current_map pointer. Accesses to the FlatView can be done...

f08c03f3 07/04/2013 06:42 pm Jan Kiszka

qom: Use atomics for object refcounting

Object reference counts will soon be changed outside the BQL. So we need
to use atomics in object_ref/unref.

Based on a patch by Liu Ping Fan.

Signed-off-by: Liu Ping Fan <>
Signed-off-by: Jan Kiszka <>...

b41aac4f 07/04/2013 06:42 pm Liu Ping Fan

exec: change well-known physical sections to macros

Sections like phys_section_unassigned always have fixed address
in phys_sections. Declared as macro, so we can use them
when having more than one phys_sections array.

Signed-off-by: Liu Ping Fan <>...

9affd6fc 07/04/2013 06:42 pm Paolo Bonzini

exec: separate current memory map from the one being built

Currently, phys_node_map and phys_sections are shared by all
of the AddressSpaceDispatch. When updating mem topology, all
AddressSpaceDispatch will rebuild dispatch tables sequentially
on them. In order to prepare for RCU access, leave the old...

c2fc83e8 07/04/2013 06:42 pm Paolo Bonzini

memory: move MemoryListener declaration earlier

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

89ae337a 07/04/2013 06:42 pm Paolo Bonzini

exec: move listener from AddressSpaceDispatch to AddressSpace

This will help having two copies of AddressSpaceDispatch during the
recreation of the radix tree (one being built, and one that is complete
and will be protected by RCU). We do not want to have to unregister and...

00752703 07/04/2013 06:42 pm Paolo Bonzini

exec: separate current radix tree from the one being built

This same treatment previously done to phys_node_map and phys_sections
is now applied to the dispatch field of AddressSpace. Topology updates
use as->next_dispatch while accesses use as->dispatch....

0475d94f 07/04/2013 06:42 pm Paolo Bonzini

exec: put memory map in AddressSpaceDispatch

After this patch, AddressSpaceDispatch holds a constistent tuple of
(phys_map, nodes, sections). This will be important when updates
of the topology will run concurrently with reads.

cur_map is not used anymore except for freeing it at the end of the...

1437c94b 07/04/2013 06:42 pm Paolo Bonzini

hw/i*: pass owner to memory_region_init* functions

Signed-off-by: Paolo Bonzini <>

3c161542 07/04/2013 06:42 pm Paolo Bonzini

hw/m*: pass owner to memory_region_init* functions

Signed-off-by: Paolo Bonzini <>

eedfac6f 07/04/2013 06:42 pm Paolo Bonzini

hw/n*: pass owner to memory_region_init* functions

Signed-off-by: Paolo Bonzini <>

40c5dce9 07/04/2013 06:42 pm Paolo Bonzini

hw/p*: pass owner to memory_region_init* functions

Signed-off-by: Paolo Bonzini <>

29776739 07/04/2013 06:42 pm Paolo Bonzini

hw/s*: pass owner to memory_region_init* functions

Signed-off-by: Paolo Bonzini <>

853dca12 07/04/2013 06:42 pm Paolo Bonzini

hw/t*: pass owner to memory_region_init* functions

Signed-off-by: Paolo Bonzini <>

22fc860b 07/04/2013 06:42 pm Paolo Bonzini

hw/[u-x]*: pass owner to memory_region_init* functions

Signed-off-by: Paolo Bonzini <>

5cb022a1 07/04/2013 06:42 pm Paolo Bonzini

vfio: pass device to vfio_mmap_bar and use it to set owner

Cc: Alex Williamson <>
Signed-off-by: Paolo Bonzini <>

84af6d9f 07/04/2013 06:42 pm Paolo Bonzini

spapr_iommu: pass device to spapr_tce_new_table and use it to set owner

Signed-off-by: Paolo Bonzini <>

3cd2cf43 07/04/2013 06:42 pm Paolo Bonzini

pam: pass device to init_pam and use it to set owner

Signed-off-by: Paolo Bonzini <>

db10ca90 07/04/2013 06:42 pm Paolo Bonzini

piolist: add owner argument to initialization functions and pass devices

Signed-off-by: Paolo Bonzini <>

64bde0f3 07/04/2013 06:42 pm Paolo Bonzini

hw/a*: pass owner to memory_region_init* functions

Signed-off-by: Paolo Bonzini <>

2d256e6f 07/04/2013 06:42 pm Paolo Bonzini

hw/block: pass owner to memory_region_init* functions

Signed-off-by: Paolo Bonzini <>

300b1fc6 07/04/2013 06:42 pm Paolo Bonzini

hw/c*: pass owner to memory_region_init* functions

Signed-off-by: Paolo Bonzini <>

3eadad55 07/04/2013 06:42 pm Paolo Bonzini

hw/d*: pass owner to memory_region_init* functions

Signed-off-by: Paolo Bonzini <>

b7163687 07/04/2013 06:42 pm Paolo Bonzini

hw/gpio: pass owner to memory_region_init* functions

Signed-off-by: Paolo Bonzini <>

1b5ec234 07/04/2013 06:42 pm Paolo Bonzini

memory: return MemoryRegion from qemu_ram_addr_from_host

It will be needed in the next patch.

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

e3127ae0 07/04/2013 06:42 pm Paolo Bonzini

exec: reorganize address_space_map

First of all, rename "todo" to "done".

Second, clearly separate the case of done == 0 with the case of done != 0.
This will help handling reference counting in the next patch.

Third, this test:

if (memory_region_get_ram_addr(mr) + xlat != raddr + todo) {...
d3e71559 07/04/2013 06:42 pm Paolo Bonzini

memory: ref/unref memory across address_space_map/unmap

The iothread mutex might be released between map and unmap, so the
mapped region might disappear.

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

3cf63ff2 07/04/2013 06:42 pm Paolo Bonzini

escc: rename struct to ESCCState

We are using the same struct name for two devices. 8250 is widespread
enough that this causes some confusion, rename the other instance.

Reviewed-by: Andreas Faerber <>
Signed-off-by: Paolo Bonzini <>

712f0cc7 07/04/2013 06:42 pm Paolo Bonzini

vga: pass owner to vga_init

Signed-off-by: Paolo Bonzini <>

270327fe 07/04/2013 06:42 pm Paolo Bonzini

vga: pass owner to vga_common_init

Signed-off-by: Paolo Bonzini <>

9eb58a47 07/04/2013 06:42 pm Paolo Bonzini

vga: pass owner to cirrus_init_common

Signed-off-by: Paolo Bonzini <>

83118327 07/04/2013 06:42 pm Paolo Bonzini

vga: pass owner to vga_init_vbe

Signed-off-by: Paolo Bonzini <>

c84b28ee 07/04/2013 06:42 pm Paolo Bonzini

vga: pass owner to vga_init_io

Signed-off-by: Paolo Bonzini <>

42e038fe 07/04/2013 06:42 pm Paolo Bonzini

vga: set owner in vga_update_memory_access

Signed-off-by: Paolo Bonzini <>

dcb117bf 07/04/2013 06:42 pm Paolo Bonzini

ne2000: pass device to ne2000_setup_io, use it as owner

Signed-off-by: Paolo Bonzini <>

b7e95164 07/04/2013 06:42 pm Paolo Bonzini

exec: simplify destruction of the phys map

Do not bother visiting the radix tree when an address space is destroyed.
After the previous patch, this has become a pointless exercise. When
called from address_space_destroy_dispatch, all you're doing is zeroing...

803c0816 07/04/2013 06:42 pm Paolo Bonzini

memory: add getter for owner

Whenever memory regions are accessed outside the BQL, they need to be
preserved against hot-unplug. MemoryRegions actually do not have their
own reference count; they piggyback on a QOM object, their "owner".
The owner is set at creation time, and there is a function to retrieve...

46637be2 07/04/2013 06:42 pm Paolo Bonzini

memory: add ref/unref

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

3ce10901 07/04/2013 06:42 pm Paolo Bonzini

memory: introduce memory_region_present

This new API will avoid having too many memory_region_ref/unref
in paths that currently use memory_region_find.

Signed-off-by: Paolo Bonzini <>

dfde4e6e 07/04/2013 06:42 pm Paolo Bonzini

memory: add ref/unref calls

Add ref/unref calls at the following places:

- places where memory regions are stashed by a listener and
used outside the BQL (including in Xen or KVM).

- memory_region_find callsites

- creation of aliases and containers (only the aliased/contained...

23887b79 07/04/2013 06:42 pm Paolo Bonzini

exec: check MRU in qemu_ram_addr_from_host

This function is not used outside the iothread mutex, so it
can use ram_list.mru_block.

Signed-off-by: Paolo Bonzini <>

7443b437 07/04/2013 06:42 pm Paolo Bonzini

exec: move qemu_ram_addr_from_host_nofail to cputlb.c

After the next patch it would not be used elsewhere anyway. Also,
the _nofail and the standard versions of this function return different
things, which is confusing. Removing the function from the public headers...

b40acf99 07/04/2013 06:42 pm Jan Kiszka

ioport: Switch dispatching to memory core layer

The current ioport dispatcher is a complex beast, mostly due to the
need to deal with old portio interface users. But we can overcome it
without converting all portio users by embedding the required base
address of a MemoryRegionPortio access into that data structure. That...

0659097d 07/04/2013 06:42 pm Jan Kiszka

ioport: Remove unused old dispatching services

Remove unused ioport_register and isa_unassign_ioport along with
everything that only those services used.

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

d67f679d 07/04/2013 06:42 pm Jan Kiszka

vmport: Disentangle read handler type from portio

In case the latter may vanish one day, make sure the vmport read handler
type will remain unaffected. This is also conceptually cleaner.

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

5767e4e1 07/04/2013 06:42 pm Jan Kiszka

ioport: Move portio types to ioport.h

This decouples memory.h from ioport.h, concentrating all portio related
types in a single header.

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

2c9b15ca 07/04/2013 06:42 pm Paolo Bonzini

memory: add owner argument to initialization functions

Signed-off-by: Paolo Bonzini <>

058bc4b5 07/04/2013 06:42 pm Paolo Bonzini

memory: destroy phys_sections one by one

phys_sections_clear is invoked after the dispatch tree has been
destroyed. This leaves a window where phys_sections_nb > 0 but the
subpages are not valid anymore, which is a recipe for use-after-free
bugs.

Move the destruction of subpages in phys_sections_clear. We will...

a8aec295 07/04/2013 06:42 pm Jan Kiszka

adlib: replace register_ioport*

Convert over to memory regions to obsolete register_ioport*.

CC: malc <>
Signed-off-by: Jan Kiszka <>
Signed-off-by: Paolo Bonzini <>

e3914e3a 07/04/2013 06:42 pm Jan Kiszka

applesmc: replace register_ioport*

Convert over to memory regions to obsolete register_ioport*.

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

0c6c4e28 07/04/2013 06:42 pm Jan Kiszka

wdt_ib700: replace register_ioport*

Convert over to memory regions to obsolete register_ioport*.

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

f94b64ac 07/04/2013 06:42 pm Jan Kiszka

i82374: replace register_ioport*

Convert over to memory regions to obsolete register_ioport*.

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

fd533eb5 07/04/2013 06:42 pm Jan Kiszka

prep: replace register_ioport*

Convert over to memory regions to obsolete register_ioport*.

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

bcc37e24 07/04/2013 06:42 pm Jan Kiszka

vt82c686: replace register_ioport*

Convert over to memory regions to obsolete register_ioport*.

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

8ab9b418 07/04/2013 06:42 pm Jan Kiszka

Privatize register_ioport_read/write

No more users outside of ioport.c.

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

b6f32962 07/04/2013 06:42 pm Jan Kiszka

isa: implement isa_is_ioport_assigned via memory_region_find

Open-code isa_is_ioport_assigned via a memory region lookup. As all IO
ports are now directly or indirectly registered via the memory API, this
becomes possible and will finally allow us to drop the ioport tables....

04e8cd50 07/04/2013 06:42 pm Jan Kiszka

vmware-vga: Accept unaligned I/O accesses

Before switching to the memory core dispatcher, we need to make sure
that this pv-device will continue to receive unaligned portio accesses.

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

962b03fc 07/04/2013 06:42 pm Jan Kiszka

xen: Mark fixed platform I/O as unaligned

Before switching to the memory core dispatcher, we need to make sure
that this pv-device will continue to receive unaligned portio accesses.

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

f487b677 07/04/2013 06:42 pm Paolo Bonzini

dma: keep a device alive while it has SGLists

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

cac3c384 07/04/2013 06:37 pm Paolo Bonzini

scsi: keep device alive while it has requests

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

79ca616f 07/04/2013 10:45 am David Gibson

pci: Cleanup configuration for pci-hotplug.c

pci-hotplug.c and the CONFIG_PCI_HOTPLUG variable which controls its
compilation are misnamed. They're not about PCI hotplug in general, but
rather about the pci_add/pci_del interface which are now deprecated in...

6ac363b5 07/04/2013 10:45 am David Gibson

pci: Move pci_read_devaddr to pci-hotplug-old.c

pci_read_devaddr() is only used by the legacy functions for the old PCI
hotplug interface in pci-hotplug-old.c. So we move the function there,
and make it static.

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

c6d559d9 07/04/2013 10:42 am Michael S. Tsirkin

MAINTAINERS: s/Marcelo/Paolo/

Marcelo doesn't maintain kvm anymore,
Paolo is taking over the job.
Update MAINTAINERS to stop flooding Marcelo with mail.

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

bc3e6a0d 07/04/2013 10:42 am Michael S. Tsirkin

pvpanic: initialization cleanup

Avoid use of static variables: PC systems
initialize pvpanic device through pvpanic_init,
so we can simply create the fw_cfg file at that point.
This also makes it possible to skip device
creation completely if fw_cfg is not there, e.g. for xen -...

fea7d596 07/04/2013 10:42 am Michael S. Tsirkin

pvpanic: fix fwcfg for big endian hosts

Convert port number to little endian when
exposing it in fw cfg.

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

620ac82e 07/04/2013 10:40 am Michael S. Tsirkin

range: add Range structure

Sometimes we need to pass ranges around, add a
handy structure for this purpose.

Note: memory.c defines its own concept of AddrRange structure for
working with 128 addresses. It's necessary there for doing range math.
This is not needed for most users: struct Range is...

3459a625 07/04/2013 10:40 am Michael S. Tsirkin

pci: store PCI hole ranges in guestinfo structure

Will be used to pass hole ranges to guests.

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

f8c457b8 07/04/2013 10:40 am Michael S. Tsirkin

pc: pass PCI hole ranges to Guests

Guest currently has to jump through lots of hoops to guess the PCI hole
ranges. It's fragile, and makes us change BIOS each time we add a new
chipset. Let's report the window in a ROM file, to make BIOS do exactly
what QEMU intends....

fcbe0a70 07/04/2013 10:40 am Michael S. Tsirkin

pc_piix: cleanup init compat handling

Make sure 1.4 calls 1.5, 1.3 calls 1.4 etc.
This way it's enough to add enough new compat hook
in a single place in piix.

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

a0ae17a6 07/04/2013 10:40 am Andrew Jones

e1000: cleanup process_tx_desc

Coverity complains about two overruns in process_tx_desc(). The
complaints are false positives, but we might as well eliminate
them. The problem is that "hdr" is defined as an unsigned int,
but then used to offset an array of size 65536, and another of...