Statistics
| Branch: | Revision:

root @ c4c38c8c

# Date Author Comment
e5cc6429 10/05/2009 05:32 pm Juan Quintela

x86: mcg_cap is never 0

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

acc68836 10/05/2009 05:32 pm Juan Quintela

x86: split FPReg union

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

c1a54d57 10/05/2009 05:32 pm Juan Quintela

x86: split MTRRVar union

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

f89a8e4e 10/05/2009 05:32 pm Juan Quintela

Add *TL functions to vmstate

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

66e6d55b 10/05/2009 05:32 pm Juan Quintela

x86: port segments to vmstate

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

c4c38c8c 10/05/2009 05:32 pm Juan Quintela

x86: factor out cpu_pre_save()

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

60a902f1 10/05/2009 05:32 pm Juan Quintela

x86: add fpregs_format_vmstate

Don't even ask, being able to load/save between 64<->80bit floats should be forbidden

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

ac74d0f1 10/05/2009 05:32 pm Juan Quintela

x86: mce_banks always have the same size

mce_banks is always MCE_BANKS_DEF * 4 in size, value never change

CC: Huang Ying <>
Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

496eb021 10/05/2009 05:32 pm Juan Quintela

x86: send mce_banks as an array

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

eb831623 10/05/2009 05:32 pm Juan Quintela

x86: fpuc is uint16_t not unsigned int

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

67b8f419 10/05/2009 05:32 pm Juan Quintela

x86: fpus is uint16_t not unsigned int

We save more that fpus on that 16 bits (fpstt), we need an additional field

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

cdc0c58f 10/05/2009 05:32 pm Juan Quintela

x86: add fptag_vmstate to the state

It is needed to store fptags

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

bfc179b6 10/05/2009 05:32 pm Juan Quintela

x86: add pending_irq_vmstate to the state

It is needed to save the interrupt_bitmap

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

f0495f56 10/05/2009 05:32 pm Juan Quintela

vmstate: port twl92230 device

Just don't look. struct tm members are ints' and they are sent as uint16_t.
VMState code complains as it should. Have to create hacky int32_as_uint16
type. Don't ever think about copying it

Signed-off-by: Juan Quintela <>...

19df438b 10/05/2009 05:32 pm Juan Quintela

vmstate: add support for arrays of pointers

We need this to send arrays of timers

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

e69f0602 10/05/2009 05:32 pm Juan Quintela

lm832x: make fields to have the same types that they are saved/loaded

They were saved as uint8_t already. To make things simpler, I just
reg == -1 used to indicate an error, I create LM832x_GENERAL_ERROR
with vale 0xff to represet it

Signed-off-by: Juan Quintela <>...

aa1e3b28 10/05/2009 05:32 pm Juan Quintela

vmstate: port lm832x device

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

6b0e766f 10/05/2009 05:32 pm Juan Quintela

vmstate: remove i2c_slave_load/save

All its users moved to vmstate

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

1f76b9b9 10/05/2009 05:32 pm Juan Quintela

x86: hflags is not modified at all, just save it directly

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

5ee0ffaa 10/05/2009 05:32 pm Juan Quintela

x86: make a20_mask int32_t

This makes the savevm code correct, and sign extensins gives us exactly
what we need (namely, sign extend to 64 bits when used with 64bit addresess.

Once there, change 0x100000 for 1 << 20, that maks all a20 use the same syntax....

b6bd0bdc 10/05/2009 05:32 pm Juan Quintela

vmstate: add uint8 array

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

1894839f 10/05/2009 05:32 pm Juan Quintela

vmstate: create VMSTATE_I2C_SLAVE

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

c1d803b3 10/05/2009 05:32 pm Juan Quintela

vmstate: port wm8750 device

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

7cb45faa 10/05/2009 05:32 pm Juan Quintela

vmstate: port max7310 device

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

840e9cef 10/05/2009 05:32 pm Juan Quintela

vmstate: create VMSTATE_STRUCT_POINTER

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

0211364d 10/05/2009 05:32 pm Juan Quintela

vmstate: port pxa2xx_i2c device

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

aed7278d 10/05/2009 05:32 pm Juan Quintela

vmstate: port ssd0303 device

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

289070c7 10/05/2009 05:32 pm Juan Quintela

vmstate: create VMSTATE_INT16_ARRAY

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

6f3a7798 10/05/2009 05:32 pm Juan Quintela

tmp105: change len and alorm to uint8_t

They were using only with very small integers, and they are sent/read as
bytes. They can't become negative as far as I can see

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

371a4468 10/05/2009 05:32 pm Juan Quintela

vmstate: port tmp105 device

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

b53d44e5 10/05/2009 05:32 pm Juan Quintela

twl92230: change pwrbtn_state to uint8_t

its value is always the level of an interrupt, 0 or 1

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

d4bfa4d7 10/05/2009 05:32 pm Juan Quintela

vmstate: remove const from pre_save() functions

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

db596c53 10/05/2009 05:32 pm Juan Quintela

vmstate: remove ps2_kbd_load_old()

Now that we have version_id on post_load() we don't need the old load
function

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

6680f01c 10/05/2009 05:32 pm Juan Quintela

vmstate: Add support for sending partial arrays

This one is needed for changees happening on fdc. It allows you to send
arrays of structs whose size we want to send it is another field with type
uint8_t. (If you have been able to read the whole sentence without...

c7cc172d 10/05/2009 05:32 pm Juan Quintela

qdev: Add support for uint8_t

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

5b7f5327 10/05/2009 05:32 pm Juan Quintela

i2c: addresses are load/save as uint8_t values, change types to reflect this

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

8d0eb050 10/05/2009 05:32 pm Juan Quintela

vmstate: port i2c_bus device

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

bcbe8068 10/05/2009 05:32 pm Juan Quintela

vmstate: port i2c_slave device

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

f22f5b07 10/05/2009 05:32 pm Juan Quintela

cirrus_vga: also assign gr0/1 when writting shadow_gr0/1

This is a regression/bug caused by previous vga_cleanup. This fixes
Ubuntu installer reported by:
Pierre Riteau

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

50af3246 10/05/2009 05:32 pm Juan Quintela

vga: move back dirty_log functions to vga.c

They are needed there on qemu-kvm.

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

84e2e3eb 10/05/2009 05:32 pm Juan Quintela

vmstate: remove const for put operations

In a later patch, we introduce pre_save() and post_save() functions.
The whole point of that operation is to change things in the state.
Without this patch, we have to remove the const qualifier in each
use with a cast...

e59fb374 10/05/2009 05:32 pm Juan Quintela

vmstate: add version_id argument to post_load

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

4e3db917 10/05/2009 05:29 pm Aurelien Jarno

Revert "eepro100: Remove unused device status entries"

This reverts commit 3031efabd0bb744126a53f32c5426580b5d394d5.

09d85fb8 10/05/2009 12:10 am Kevin Wolf

target-i386: Fix exceptions for fxsave/fxrstor

This patch corrects the following aspects of exception generation in
fxsave/fxrstor:

  • Generate #GP if the operand is not aligned to a 16 byte boundary
  • Generate #UD if the LOCK prefix is used
  • For CR0.EM = 1 #NM is generated, not #UD...
94f4af02 10/04/2009 04:30 pm Aurelien Jarno

tcg: allocate s->op_dead_iargs dynamically

Similarly to what is already done in tcg_liveness_analysis() when
USE_LIVENESS_ANALYSIS is not set.

Signed-off-by: Aurelien Jarno <>

8389c67b 10/04/2009 04:16 pm Aurelien Jarno

tcg: remove dead code

Signed-off-by: Aurelien Jarno <>

b7d43d03 10/04/2009 04:02 pm Paul Bolle

bsd-user: fix "#if 0"'d printf()

Make an "#if 0"'d printf() in load_elf_binary() reflect what the actual
code does (see commit 3bc0bdcaadef1100ce2413af818d9c8e2f6319fc).

Signed-off-by: Paul Bolle <>
Signed-off-by: Aurelien Jarno <>

c4c270e2 10/04/2009 03:59 pm Stefan Weil

eepro100: Add more i825xx devices

The new devices added here are still not functional -
partially because some patches are still missing,
partially because I cannot test them. Nevertheless
they belong to the same family and will be supported
by this driver some day....

3031efab 10/04/2009 03:54 pm Stefan Weil

eepro100: Remove unused device status entries

A lot of entries are unused (they were added by copy + paste
from other drivers during development of eepro100.c).

Removing them from nic_save, nic_load makes any
old saved status incompatible, so a new version...

1b050077 10/04/2009 03:46 pm Andre Przywara

target-i386: add RDTSCP support

RDTSCP reads the time stamp counter and atomically also the content
of a 32-bit MSR, which can be freely set by the OS. This allows CPU
local data to be queried by userspace.
Linux uses this to allow a fast implementation of the getcpu()...

d9f4bb27 10/04/2009 03:09 pm Andre Przywara

target-i386: add SSE4a instruction support

This adds support for the AMD Phenom/Barcelona's SSE4a instructions.
Those include insertq and extrq, which are doing shift and mask on
XMM registers, in two versions (immediate shift/length values and
stored in another XMM register)....

ccd59d09 10/04/2009 03:04 pm Andre Przywara

target-i386: add lock mov cr0 = cr8

AMD CPUs featuring a shortcut to access CR8 even from 32-bit mode.
If you use the LOCK prefix with "mov CR0", it accesses CR8 instead.
This behavior is guarded by the CR8_LEGACY CPUID bit
(Fn8000_0001:ECX1).

Signed-off-by: Andre Przywara <>...

317b7e67 10/04/2009 02:24 pm Michael S. Tsirkin

hw/omap_dma: add matching {} in if 0

MULTI_REQ is never defined, so it doesn't matter much, but since
we have an if statement there, let's add {} to clarify what it
should do if it's uncommented, and indent the code properly.

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

ee682d27 10/04/2009 02:24 pm Stefan Weil

Check availability of uuid header / library

If available, the Universally Unique Identifier library
is used by the vdi block driver.

Other parts of QEMU (vl.c) could also use it.

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

3bc0bdca 10/04/2009 02:24 pm Paul Bolle

linux-user: fix "#if 0"'d printf()

Make an "#if 0"'d printf() in load_elf_binary(), probably left to aid in
debugging, reflect what the actual code does. The current printf() will
only confuse those who "#if 1" it (it certainly confused me enough to
write this trivial patch)....

cfc86988 10/04/2009 02:24 pm Aurelien Jarno

tcg: add ext{8,16,32}u_i{32,64} TCG ops

Currently zero extensions ops are implemented by a and op with a
constant. This is then catched in some backend, and replaced by
a zero extension instruction. While this works well on RISC
machines, this adds a useless register move on non-RISC machines....

64584218 10/04/2009 02:24 pm Aurelien Jarno

tcg/x86_64: add support for ext{8,16,32}u_i{32,64} TCG ops

Signed-off-by: Aurelien Jarno <>

5f0ce17f 10/04/2009 02:24 pm Aurelien Jarno

tcg/i386: add support for ext{8,16}u_i32 TCG ops

Signed-off-by: Aurelien Jarno <>

a628b869 10/03/2009 02:30 am malc

oss/alsa: Do not invoke UB described in 7.15.1.1 (this time for ADC)

Signed-off-by: malc <>

cbc18261 10/02/2009 10:46 pm Juan Quintela

libuser is a generated directory

Signed-off-by: Juan Quintela <>
Signed-off-by: Blue Swirl <>

fa58948d 10/02/2009 10:38 pm Blue Swirl

Use GNU ld to link roms on OpenSolaris

OpenSolaris ld seems to miss the equivalent of GNU ld's "-Ttext 0".

Signed-off-by: Blue Swirl <>

8d32cf0e 10/02/2009 10:32 pm Blue Swirl

Fix warning about undefined madvise() on OpenSolaris

OpenSolaris headers can't export madvise() with a sane set of #defines.
For background, see MySQL bug #7156 (http://bugs.mysql.com/bug.php?id=7156)
for discussion about Solaris header problems.

Signed-off-by: Blue Swirl <>

22e41040 10/02/2009 08:59 pm Michael S. Tsirkin

linux-user: fix up oversealous nitpicking

Looks like linux-user code was correct, just unreadable: what it wanted
to do with "-=" was really assign a negative number, not decrement. Fix
up accordingly.

Reported-by: Laurent Desnogues <>...

58458bb4 10/02/2009 08:59 pm Michael S. Tsirkin

tests: missing ; in if 0

Fix missing ; in commented out code

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

de2ca4fb 10/02/2009 02:19 am malc

alsa: Change default buffer/period size

Increase buffer size but do not rely on ALSA picking up default period
size.

Signed-off-by: malc <>

301901b5 10/02/2009 01:37 am malc

oss/alsa: Do not invoke UB described in 7.15.1.1

Additional argument (whether to try poll mode) is only passed with
VOICE_ENABLE command.

Thanks to Markus Armbruster for noticing the potential breakage.

c227f099 10/02/2009 12:12 am Anthony Liguori

Revert "Get rid of _t suffix"

In the very least, a change like this requires discussion on the list.

The naming convention is goofy and it causes a massive merge problem. Something
like this must be presented on the list first so people can provide input...

99a0949b 10/01/2009 09:45 pm malc

Get rid of _t suffix

Some not so obvious bits, slirp and Xen were left alone for the time
being.

Signed-off-by: malc <>

bc6291a1 10/01/2009 04:18 pm Edgar E. Iglesias

Include microblaze binaries in tarbin.

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

941694d0 10/01/2009 12:12 am Aurelien Jarno

target-mips: make sure constants are in the second argument

Signed-off-by: Aurelien Jarno <>

cc739bb0 09/30/2009 11:53 pm Laurent Desnogues

x86: use globals for CPU registers

Use globals for the 8 or 16 CPU registers on i386 and x86_64.

Signed-off-by: Aurelien Jarno <>

a0d700e4 09/30/2009 10:07 pm Stefan Weil

mips: Fix spelling in comment

inofficial -> unofficial

Thanks to Blue Swirl.

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

e8bbe36c 09/30/2009 09:56 pm Michael S. Tsirkin

linux-user: fix coding style nit

Put space between = and & when taking a pointer,
to avoid confusion with old-style "&=".

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

acedcfbf 09/30/2009 09:56 pm Michael S. Tsirkin

net: fix coding style nit

Put space between = and - assigning a negative number
to avoid confusion with old-style "-="
(which we also have, and need to be fixed).

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

65528b19 09/30/2009 09:56 pm Michael S. Tsirkin

slirp: fix unmatched bracket in if 0

Fix unmatched bracket in commented out code

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

084bd071 09/30/2009 09:56 pm Michael S. Tsirkin

escc: fix another coding style nit

Fix another place with =- to be "= ".
to avoid confusion with old-style "
="
(which we also have, and needs to be fixed).

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

6ab00cee 09/30/2009 09:45 pm Michael S. Tsirkin

vvfat: fix coding style nit

Put space between = and & when taking a pointer,
to avoid confusion with old-style "&=".

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

6ece4df6 09/30/2009 09:45 pm Michael S. Tsirkin

elfload: fix coding style nit

Put space between = and * when dereferencing a pointer,
to avoid confusion with old-style "*="

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

8f4bee23 09/30/2009 09:45 pm Michael S. Tsirkin

gdbstub: fix coding style nit

Put space between = and * when dereferencing a pointer,
to avoid confusion with old-style "*="

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

a0d98a71 09/30/2009 09:45 pm Michael S. Tsirkin

escc: fix coding style nit

Put space between = and - assigning a negative number
to avoid confusion with old-style "-="
(which we also have, and needs to be fixed).

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

f90554ad 09/30/2009 09:45 pm Michael S. Tsirkin

omap_dma: fix unbalanced { in commented out code

Fix unbalanced {} in commented out code.

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

bdd7e1bc 09/30/2009 09:45 pm Michael S. Tsirkin

twl92230: fix old style increment/decrement usage

Modern compilers do not parse "=-" as decrement:
you must use "-=" for that. Same for "=+"/"+=".

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

5d024825 09/30/2009 09:45 pm Michael S. Tsirkin

linux-user: fix old style decrement usage

Modern compilers do not parse "=-" as decrement:
you must use "-=" for that.

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

58caed6d 09/30/2009 09:45 pm Michael S. Tsirkin

target-mips: unmatched brackets in if 0

Fix unmatched braket in commented out code

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

4839abe7 09/30/2009 03:34 pm malc

sdlaudio: make it suck less

Signed-off-by: malc <>

d6859202 09/30/2009 03:16 pm Aurelien Jarno

Revert part of 6692b043198d58a12317009edb98654c6839f043

Committed by accident.

Signed-off-by: Aurelien Jarno <>

e9a6625e 09/30/2009 03:11 pm Aurelien Jarno

Fix build with profiler enabled

Broken by 4a1418e07bdcfaa3177739e04707ecaec75d89e1

Signed-off-by: Aurelien Jarno <>

6692b043 09/30/2009 03:10 pm Aurelien Jarno

TCG: fix DEF2 macro

Signed-off-by: Aurelien Jarno <>

731c54f8 09/28/2009 02:40 pm Aurelien Jarno

target-ppc: log instructions start in TCG code

Signed-off-by: Aurelien Jarno <>

618b0fe9 09/28/2009 02:03 pm Aurelien Jarno

target-mips: log instructions start in TCG code

Signed-off-by: Aurelien Jarno <>

20889d4e 09/27/2009 11:03 pm Blue Swirl

Win32: avoid a warning

GetLastError() returns a DWORD.

Signed-off-by: Blue Swirl <>

032e51d7 09/27/2009 10:30 pm Blue Swirl

BSD user: suppress a warning

Signed-off-by: Blue Swirl <>

2fa5d9ba 09/27/2009 10:30 pm Blue Swirl

BSD user: implement GUEST_BASE

Based on 379f6698d73f476de38682b3ff96ecb226728c43.

Signed-off-by: Blue Swirl <>

17cf428f 09/27/2009 09:00 pm Aurelien Jarno

tcg/i386: generates dec/inc instead of sub/add when possible

We must take care that dec/inc do not compute CF, which is needed by
add2/sub2.

Signed-off-by: Aurelien Jarno <>

b70650cb 09/27/2009 09:00 pm Aurelien Jarno

tcg/i386: optimize and $0xff(ff), reg

Signed-off-by: Aurelien Jarno <>

add16157 09/27/2009 07:26 pm Blue Swirl

Compile some user files only once for all targets

Signed-off-by: Blue Swirl <>

a4b18c6d 09/27/2009 07:08 pm Aurelien Jarno

tcg/x86_64: generated dec/inc instead of sub/add when possible

Signed-off-by: Aurelien Jarno <>

b461cdc9 09/27/2009 05:35 pm Blue Swirl

Don't compile roms if not building system targets

Signed-off-by: Blue Swirl <>

05d00df4 09/27/2009 04:56 pm Blue Swirl

Fix user emulator breakage

Fix breakage in the following conditions:
- use in-tree building
- build user targets after system targets

Signed-off-by: Blue Swirl <>

d9370327 09/27/2009 01:41 pm malc

tcg/ppc: always use tcg_out_call

Signed-off-by: malc <>