Statistics
| Branch: | Revision:

root @ b4566776

# Date Author Comment
b4566776 07/12/2012 04:25 pm Gerd Hoffmann

Add vgabios build rules to roms/Makefile

This patch adds some glue to roms/Makefile to build vgabios binaries for
qemu. It covers both the lgpl'ed vgabios implementation used by qemu
traditionally and the new seabios implementation.

The purpose of this patch is to (a) document the vgabios build process...

92336855 07/10/2012 02:16 am Anthony Liguori

megasas: disable due to build breakage

The Buildbot has detected a new failure on builder default_i386_rhel61 while
building qemu.

Full details are available at:
http://buildbot.b1-systems.de/qemu/builders/default_i386_rhel61/builds/304

The proper fix is non-trivial so let's disable the build by default until it's...

23797df3 07/09/2012 08:35 pm Anthony Liguori

Merge remote-tracking branch 'mjt/mjt-iov2' into staging

  • mjt/mjt-iov2:
    rewrite iov_send_recv() and move it to iov.c
    cleanup qemu_co_sendv(), qemu_co_recvv() and friends
    export iov_send_recv() and use it in iov_send() and iov_recv()
    rename qemu_sendv to iov_send, change proto and move declarations to iov.h...
3f6e9a5f 07/09/2012 07:57 pm Anthony Liguori

Merge remote-tracking branch 'quintela/migration-anthony-v2' into staging

  • quintela/migration-anthony-v2:
    Maintain the number of dirty pages
    dirty bitmap: abstract its use
    Exit loop if we have been there too long
    Only calculate expected_time for stage 2...
537cf409 07/09/2012 07:56 pm Anthony Liguori

Merge remote-tracking branch 'kiszka/queues/slirp' into staging

  • kiszka/queues/slirp:
    slirp: Improve error reporting of inaccessible smb directories
    slirp: Ensure smbd and shared directory exist when enable smb
    slirp: add 'cmd:' target for guestfwd...
22a61f36 07/09/2012 06:39 pm Jan Kiszka

slirp: Improve error reporting of inaccessible smb directories

Instead of guessing, print the error code returned by access.

Signed-off-by: Jan Kiszka <>

1cb1c5d1 07/09/2012 06:38 pm Jan Kiszka

slirp: Enforce host-side user of smb share

Windows 7 (and possibly other versions) cannot connect to the samba
share if the exported host directory is not world-readable. This can be
resolved by forcing the username used for access checks to the one
under which QEMU and smbd are running....

b412eb61 07/09/2012 06:38 pm Alexander Graf

slirp: add 'cmd:' target for guestfwd

When using guestfwd=, Qemu only connects the virtual server's TCP port
to a single chardev. This is useless in most cases, as we usually want
to have more than a single connection from the guest to the outside world....

927d811b 07/09/2012 06:38 pm Dunrong Huang

slirp: Ensure smbd and shared directory exist when enable smb

Users may pass the following parameters to qemu:
$ qemu-kvm -net nic -net user,smb= ...
$ qemu-kvm -net nic -net user,smb ...
$ qemu-kvm -net nic -net user,smb=bad_directory ...

In these cases, qemu started successfully while samba server...

715cc00c 07/09/2012 06:29 pm Anthony Liguori

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

  • kwolf/for-anthony: (24 commits)
    block: Factor bdrv_read_unthrottled() out of guess_disk_lchs()
    qtest: Tidy up temporary files properly
    fdc: Drop broken code for user-defined floppy geometry...
bb494a50 07/09/2012 06:21 pm Markus Armbruster

qtest: Tidy up temporary files properly

Each test litters /tmp with several files: a pid file and two
sockets. Tidy up.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

07d27a44 07/09/2012 06:21 pm Markus Armbruster

block: Factor bdrv_read_unthrottled() out of guess_disk_lchs()

To prepare move of guess_disk_lchs() into hw/, where it poking
BlockDriverState member io_limits_enabled directly would be unclean.

Signed-off-by: Markus Armbruster <>
Signed-off-by: Kevin Wolf <>

fe0cb8ef 07/09/2012 05:51 pm Anthony Liguori

Merge remote-tracking branch 'kraxel/usb.55' into staging

  • kraxel/usb.55:
    usb-host: add trace events for iso xfers
    usb: fix interface initialization
    usb: split endpoint init and reset
    usb-redir: Correctly handle the usb_redir_babble usbredir status...
ffd6e7a0 07/09/2012 05:51 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/scsi-next' into staging

  • bonzini/scsi-next:
    scsi: Fix transfer length for READ POSITION commands.
    scsi: Add basic support for SCSI media changer commands.
    scsi: Ensure command and transfer lengths are set for all SCSI devices...
8665817e 07/09/2012 05:51 pm Anthony Liguori

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

  • stefanha/trivial-patches:
    configure: Remove help for --disable-vnc-thread, --enable-vnc-thread
    cpu-common.h: Remove a pointless ifndef CONFIG_USER_ONLY
    cpu-common.h: Remove unnecessary guard on including targphys.h
6be01b1e 07/09/2012 04:53 pm Pavel Hrdina

fdc: rewrite seek and DSKCHG bit handling

This bit is cleared on every successful seek to a different track (cylinder).
The seek is also called on revalidate or on read/write/format commands which
also clear the DSKCHG bit.

Signed-off-by: Pavel Hrdina <>...

2fee0088 07/09/2012 04:53 pm Pavel Hrdina

fdc: fix interrupt handling

If you call the SENSE INTERRUPT STATUS command while there is no interrupt
waiting you get as result unknown command.

Fixed status0 register handling for read/write/format commands.

Signed-off-by: Pavel Hrdina <>...

59240c34 07/09/2012 04:53 pm Pavel Hrdina

fdc_test: update media_change test

After rewrite DSKCHG bit handling the test has to be updated. Now
is needed to seek to different track to clear DSKCHG bit.

Signed-off-by: Pavel Hrdina <>
Signed-off-by: Kevin Wolf <>

b3ce604e 07/09/2012 04:53 pm Pavel Hrdina

fdc_test: introduce test_sense_interrupt

Calling sense interrupt status while there is no interrupt should
return invalid command (0x80).

Read command should always returns in st0 seek_end bit set to 1.

Signed-off-by: Pavel Hrdina <>
Signed-off-by: Kevin Wolf <>

1f69c2b0 07/09/2012 04:53 pm Markus Armbruster

fdc: Drop broken code for user-defined floppy geometry

bdrv_get_floppy_geometry_hint() fails to store through its parameter
drive when bs has a geometry hint. Makes fd_revalidate() assign
random crap to drv->drive.

Has been broken that way for ages. Harmless, because:...

c292ee6a 07/09/2012 04:53 pm MORITA Kazutaka

sheepdog: split outstanding list into inflight and pending

outstanding_list_head is used for both pending and inflight requests.
This patch splits it and improves readability.

Signed-off-by: MORITA Kazutaka <>
Signed-off-by: Kevin Wolf <>

7dc1cde0 07/09/2012 04:53 pm MORITA Kazutaka

sheepdog: traverse pending_list from the first for each time

The pending list can be modified in other coroutine context
sd_co_rw_vector, so we need to traverse the list from the first again
after we send the pending request.

Signed-off-by: MORITA Kazutaka <>...

820100fd 07/09/2012 04:53 pm Paolo Bonzini

blkdebug: remove sync i/o events

These are unused, except (by mistake more or less) in QED.

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

368e8dd1 07/09/2012 04:53 pm Paolo Bonzini

blkdebug: tiny cleanup

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

e1302255 07/09/2012 04:53 pm Paolo Bonzini

blkdebug: pass getlength to underlying file

This is required when using blkdebug with raw format. Unlike qcow2/QED,
raw asks blkdebug for the length of the file, it doesn't get it from
a header.

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

571cd43e 07/09/2012 04:53 pm Paolo Bonzini

blkdebug: store list of active rules

This prepares for the next patch, where some active rules may actually
not trigger depending on input to readv/writev. Store the active rules
in a SIMPLEQ (so that it can be emptied easily with QSIMPLEQ_INIT), and
fetch the errno/once/immediately arguments from there....

e4780db4 07/09/2012 04:53 pm Paolo Bonzini

blkdebug: optionally tie errors to a specific sector

This makes blkdebug scripts more powerful, and independent of the
exact sequence of operations performed by streaming.

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

5c171afa 07/09/2012 04:53 pm Paolo Bonzini

raw: hook into blkdebug

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

a9fc4408 07/09/2012 04:53 pm Paolo Bonzini

block: copy over job and dirty bitmap fields in bdrv_append

While these should not be in use at the time a transaction is started,
a command in the prepare phase of a transaction might have added them,
so they need to be brought over.

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

4ddc07ca 07/09/2012 04:53 pm Paolo Bonzini

block: introduce bdrv_swap, implement bdrv_append on top of it

The new function can be made a bit nicer than bdrv_append. It swaps the
whole contents, and then swaps back (using the usual t=a;a=b;b=t idiom)
the fields that need to stay on top. Thus, it does not need explicit...

b35278f7 07/09/2012 04:53 pm Stefan Hajnoczi

qcow2: fix #ifdef'd qcow2_check_refcounts() callers

The DEBUG_ALLOC qcow2.h macro enables additional consistency checks
throughout the code. This makes it easier to spot corruptions that are
introduced during development. Since consistency check is an expensive...

206e6d85 07/09/2012 04:53 pm Stefan Hajnoczi

qcow2: preserve free_byte_offset when qcow2_alloc_bytes() fails

When qcow2_alloc_clusters() error handling code was introduced in commit
5d757b563d59142ca81e1073a8e8396750a0ad1a, the value of free_byte_offset
was clobbered in the error case. This patch keeps free_byte_offset at 0...

04d4abe9 07/09/2012 04:53 pm Stefan Hajnoczi

blockdev: warn when copy_on_read=on and readonly=on

If the image is read-only then it's not possible to copy read data into
it. Therefore copy-on-read is automatically disabled for read-only
images.

Up until now this behavior was silent, add a warning so the user knows...

1b6ac998 07/09/2012 04:53 pm MORITA Kazutaka

sheepdog: fix dprintf format strings

This fixes warnings about dprintf format in debug mode.

Signed-off-by: MORITA Kazutaka <>
Signed-off-by: Kevin Wolf <>

2dfcca3b 07/09/2012 04:53 pm MORITA Kazutaka

sheepdog: restart I/O when socket becomes ready in do_co_req()

Currently, no one reenters the yielded coroutine. This fixes it.

Signed-off-by: MORITA Kazutaka <>
Signed-off-by: Kevin Wolf <>

b97564f4 07/09/2012 04:53 pm MORITA Kazutaka

sheepdog: use coroutine based socket functions in coroutine context

This removes blocking network I/Os in coroutine context.

Signed-off-by: MORITA Kazutaka <>
Signed-off-by: Kevin Wolf <>

1d732d7d 07/09/2012 04:53 pm MORITA Kazutaka

sheepdog: make sure we don't free aiocb before sending all requests

This patch increments the pending counter before sending requests, and
make sures that aiocb is not freed while sending them.

Signed-off-by: MORITA Kazutaka <>...

7c37e6a4 07/09/2012 12:59 pm Gerd Hoffmann

usb: fix interface initialization

zero is a valid interface number, so don't use it when resetting the
endpoints.

Signed-off-by: Gerd Hoffmann <>

c32da151 07/09/2012 12:59 pm Gerd Hoffmann

usb-host: add trace events for iso xfers

Replace iso transfer fprintf's with trace points. Also rename existing
tracepoints so they all match usb_host_iso_*.

Signed-off-by: Gerd Hoffmann <>

7341ea07 07/09/2012 12:59 pm Hans de Goede

usb-ehci: Fix an assert whenever isoc transfers are used

hcd-ehci.c is missing an usb_packet_init() call for the ipacket UsbPacket
it uses for isoc transfers, triggering an assert (taking the entire vm down)
in usb_packet_setup as soon as any isoc transfers are done by a high speed...

37952117 07/09/2012 12:59 pm Hans de Goede

ehci: Kick async schedule on wakeup in the non companion case

Commit 0f588df8b3688b00e77aabaa32e26ece5f19bd39, added code
to ehci_wakeup to kick the async schedule on wakeup, but the else
was positioned wrong making it trigger for devices which are routed...

adae502c 07/09/2012 12:59 pm Hans de Goede

usb-redir: Correctly handle the usb_redir_babble usbredir status

Signed-off-by: Hans de Goede <>
Signed-off-by: Gerd Hoffmann <>

19deaa08 07/09/2012 12:59 pm Gerd Hoffmann

usb: split endpoint init and reset

Create a new usb_ep_reset() function to reset endpoint state, without
re-initialiting the queues, so we don't unlink in-flight packets just
because usb-host has to re-parse the descriptor tables.

Signed-off-by: Gerd Hoffmann <>

9bc3a3a2 07/09/2012 12:59 pm Gerd Hoffmann

ehci: don't flush cache on doorbell rings.

Commit 4be23939ab0d7019c7e59a37485b416fbbf0f073 makes ehci instantly
zap any unlinked queue heads when the guest rings the doorbell.

While hacking up uas support this turned out to be a problem. The linux
kernel can unlink and instantly relink the very same queue head, thereby...

a5e0139a 07/09/2012 10:57 am Gerd Hoffmann

ehci: fix ehci_qh_do_overlay

Use ehci_flush_qh to make sure we touch inly the fields the hc is
allowed to touch.

Signed-off-by: Gerd Hoffmann <>

4ed1c57a 07/09/2012 10:57 am Gerd Hoffmann

ehci: fix td writeback

Only write back the dwords the hc is supposed to update. Should not
make a difference in theory as the guest must not touch the td while
it is active to avoid races. But it is still more correct.

Signed-off-by: Gerd Hoffmann <>

84988cf9 07/07/2012 12:07 pm Peter Maydell

bitops.h: Add functions to extract and deposit bitfields

Add functions deposit32(), deposit64(), extract32() and extract64()
to extract and deposit bitfields in 32 and 64 bit words. Based on
ideas by Jia Liu and Avi Kivity.

Suggested-by: Jia Liu <>...

bedc2ac1 07/07/2012 12:06 pm Peter Maydell

target-i386: make it clearer that op table accesses don't overrun

Rephrase some of the expressions used to select an entry
in the SSE op table arrays so that it's clearer that they
don't overrun the op table array size.

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

96d7073f 07/07/2012 12:05 pm Peter Maydell

target-i386: Remove confusing X86_64_DEF macro

The X86_64_DEF macro is a confusing way of making some terms
in a conditional only appear if TARGET_X86_64 is defined. We
only use it in two places, and in both cases this is for making
the same test, so abstract that check out into a function...

a87dacc8 07/07/2012 12:05 pm Peter Maydell

target-i386: Remove unused macros

Commit 11f8cdb removed all the uses of the X86_64_ONLY
macro. The BUGGY_64() macro has been unused for a long time:
it originally marked some ops which couldn't be enabled
because of issues with the pre-TCG code generation scheme....

eeae63a7 07/07/2012 12:04 pm Eduardo Habkost

.gitignore update

Makes sure the following files are ignored:

libcacard/.libs/
libcacard/libcacard.la
libcacard/libcacard.pc
libcacard/libcacard/
libcacard/osdep.lo
libcacard/oslib-posix.lo
libcacard/qemu-thread-posix.lo
libcacard/qemu-timer-common.lo...
fa73f991 07/07/2012 12:00 pm Blue Swirl

Merge branch 'arm-devs.for-upstream' of git://git.linaro.org/people/pmaydell/qemu-arm

  • 'arm-devs.for-upstream' of git://git.linaro.org/people/pmaydell/qemu-arm:
    hw/cadence_gem: Make rx_desc_addr and tx_desc_addr uint32_t
    i.MX31: KZM-ARM11-01 evaluation board...
11f8cdbc 07/05/2012 09:55 pm Stefan Weil

target-i386: Fix compilation with --enable-debug

commit c4baa0503d9623f1ce891f525ccd140c598bc29a improved SSE table
type safety which now raises compiler errors when latest QEMU was
configured with --enable-debug.

Fix this by splitting the SSE tables even further to separate...

8279e042 07/04/2012 01:50 pm Peter Maydell

hw/cadence_gem: Make rx_desc_addr and tx_desc_addr uint32_t

Make the state fields rx_desc_addr and tx_desc_addr uint32_t;
this matches the VMStateDescription, and also conforms to how
hardware works: the registers don't magically become larger
if the device is attached to a CPU with a larger physical...

ff53d4c6 07/04/2012 01:43 pm Peter Chubb

i.MX31: Interrupt Controller

Implement the Freescale i.MX31 advanced vectored interrupt controller, at least
to the extent it is used by Linux 3.x

Vectors are not implemented.

Signed-off-by: Philip O'Sullivan <>
Signed-off-by: Peter Chubb <>...

0325559d 07/04/2012 01:43 pm Peter Chubb

i.MX31: KZM-ARM11-01 evaluation board

Board support for Kyoto Micro's KZM-ARM11-01, an evaluation board built
around the Freescale i.MX31.

Signed-off-by: Philip O'Sullivan <>
Signed-off-by: Peter Chubb <>
Signed-off-by: Peter Maydell <>

40b6f911 07/04/2012 01:43 pm Peter Chubb

i.MX: UART support

Implement the Freescale i.MX UART. This uart is used in a variety of
SoCs, including some by Motorola, as well as in the Freescale i.MX
series.

This patch gives only a `bare-bones' implementation, enough to run Linux
or OKL4, but that's about it....

bcc181b0 07/04/2012 01:43 pm Peter Chubb

i.MX31: Clock Control Module

For Linux to be able to work out how fast its clocks are going, so
that timer ticks come approximately at the right time, it needs to
be able to query the clock control module (CCM).

This is the start of a CCM implementation. It currently knows only about...

78d1404d 07/04/2012 01:43 pm Peter Chubb

i.MX31: Timers

Implement the timers on the Freescale i.MX31 SoC.
This is not a complete implementation, but gives enough for
Linux to boot and run. In particular external triggers, which are
not useful under QEMU, are not implemented.

Signed-off-by: Philip O'Sullivan <>...

7892df06 07/04/2012 01:43 pm Evgeny Voevodin

hw/exynos4210.c: Fix misleading initialization of IROM mirror

We want to mirror whole IROM and should pass zero instead of
EXYNOS4210_IROM_BASE_ADDR (though it equals to zero too) since
memory_region_init_alias takes an offset within an original
region as an argument....

7bdf43a7 07/04/2012 01:43 pm Oleg Ogurtsov

Exynos4: add RTC device

Signed-off-by: Oleg Ogurtsov <>
Signed-off-by: Peter Maydell <>

b631bc37 07/04/2012 01:43 pm Evgeny Voevodin

hw/exynos4210_pwm.c: Fix STOP status in tick handler.

START/STOP bit was not cleaned correctly.

Signed-off-by: Evgeny Voevodin <>
Reviewed-by: Peter Maydell <>
Signed-off-by: Peter Maydell <>

2e2aafc0 07/04/2012 01:43 pm Stanislav Vorobiov

ARM: hw/exynos4210_mct.c: Fix a bug which hangs Linux kernel.

After some long period of time Linux kernel hanged due to
ptimer_get_count may return 0 before timer interrupt occurs,
thus, causing FRC to jump back in time

Signed-off-by: Evgeny Voevodin <>...

619d7ae9 07/02/2012 12:27 pm Paolo Bonzini

virtio-scsi: do not crash on adding buffers to the event queue

The event queue is not supported yet and the handler does not
have to do much anyway when buffers are added. However, the
handler is called unconditionally by the virtio layer, and this
results in a crash as soon as buffers are added to the event...

335f560f 07/02/2012 12:27 pm Christian Hoff

scsi: Fix data length == SCSI_SENSE_BUF_SIZE

Fix the edge case where the sense data length is exactly the same
as SCSI_SENSE_BUF_SIZE.
This makes SCSI requests work that use all of the available 95 byte
sense data.

Signed-off-by: Christian Hoff <>...

15e58a21 07/02/2012 12:27 pm Christian Hoff

scsi: Fix LOAD_UNLOAD

Change operation code of LOAD_UNLOAD command to 0x1b as described in
section 7.3 of the SCSI Stream Commands spec.

Signed-off-by: Christian Hoff <>
Signed-off-by: Christian Borntraeger <>...

28b70c9d 07/02/2012 12:27 pm Paolo Bonzini

scsi: Ensure command and transfer lengths are set for all SCSI devices

scsi-generic relies on those values to be correct, so it is important that
those values are initialized properly for all device types.

Reported-by: Christian Hoff <>...

40723a99 07/02/2012 12:27 pm Christian Hoff

scsi: Add basic support for SCSI media changer commands.

This adds basic support for SCSI media changer commands.
Not all commands are supported as of now, but enough to cover
basic functionality.

Signed-off-by: Christian Hoff <>...

9ce1bb2d 07/02/2012 12:27 pm Christian Hoff

scsi: Fix transfer length for READ POSITION commands.

The transfer length depends on the specific service action
code, as defined in the SCSI stream commands spec section 7.7.
Up to now only the extended form was supported.

Signed-off-by: Christian Hoff <>...

e8f943c3 07/02/2012 12:11 pm Hannes Reinecke

megasas: LSI Megaraid SAS HBA emulation

This patch adds an emulation for the LSI Megaraid SAS 8708EM2 HBA.
I've tested it to work with Linux, Windows Vista, and Windows7.

Signed-off-by: Hannes Reinecke <>
[ Squashed trivial changes from Andreas Faerber, rebased over IOMMU...

f595e737 07/02/2012 12:10 pm Stefan Weil

configure: Remove help for --disable-vnc-thread, --enable-vnc-thread

Commit 2624bab836662d37f08336408a99d97652fc9c4d removed these
configure arguments. Now the help text for both is removed, too.

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

e58998c6 07/02/2012 12:10 pm Peter Maydell

cpu-common.h: Remove a pointless ifndef CONFIG_USER_ONLY

Remove an ifndef CONFIG_USER_ONLY guard that was pointless
because it is already inside an if !defined(CONFIG_USER_ONLY).

Signed-off-by: Peter Maydell <>
Acked-by: Andreas Färber <>...

72aaa6ce 07/02/2012 12:09 pm Peter Maydell

cpu-common.h: Remove unnecessary guard on including targphys.h

There's no need to make the include of targphys.h conditional
on whether TARGET_PHYS_ADDR_BITS is defined, because targphys.h
itself checks that and does nothing if it isn't.

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

27395add 07/02/2012 11:18 am Paolo Bonzini

scsi: add a qdev property for the disk's WWN

Signed-off-by: Paolo Bonzini <>

55042b95 07/02/2012 11:18 am Paolo Bonzini

atapi: implement READ DISC INFORMATION

This command is not necessary for CD-ROM and DVD-ROM, but some versions of
udev trip on its absence.

Cc: Kevin Wolf <>
Cc: Markus Armbruster <>
Signed-off-by: Paolo Bonzini <>

1a4f0c3a 07/02/2012 11:18 am Paolo Bonzini

scsi-disk: implement READ DISC INFORMATION

This command is not necessary for CD-ROM and DVD-ROM, but some versions of
udev trip on its absence.

Cc: Kevin Wolf <>
Cc: Markus Armbruster <>
Signed-off-by: Paolo Bonzini <>

98392453 07/02/2012 11:18 am Ronnie Sahlberg

ISCSI: Add SCSI passthrough via scsi-generic to libiscsi

Update iscsi to allow passthrough of SG_IO scsi commands when the iscsi
device is forced to be scsi-generic.

Implement both bdrv_ioctl() and bdrv_aio_ioctl() in the iscsi backend,
emulate the SG_IO ioctl and pass the SCSI commands across to the...

622695a4 07/02/2012 11:18 am Ronnie Sahlberg

ISCSI: force use of sg for SMC and SSC devices

If the device we open is a SMC or SSC device, then force the use of sg. We
dont have any medium changer or tape emulation so only passthrough via
real sg or scsi-generic via iscsi would work anyway.

Forcing sg also makes qemu skip trying to read from the device to guess...

7430d0f5 07/02/2012 11:18 am Hannes Reinecke

megasas: Add header file

This patch adds the header file for megasas.

Signed-off-by: Hannes Reinecke <>
Signed-off-by: Paolo Bonzini <>

82579390 07/02/2012 11:18 am Paolo Bonzini

scsi: simplify handling of the VPD page length field

The last four bytes of the thin provisioning page were cut out.

Signed-off-by: Paolo Bonzini <>

1720aeee 06/29/2012 02:31 pm Juan Quintela

dirty bitmap: abstract its use

Always use accessors to read/set the dirty bitmap.

Signed-off-by: Juan Quintela <>

45f33f01 06/29/2012 02:31 pm Juan Quintela

Maintain the number of dirty pages

Calculate the number of dirty pages takes a lot on hosts with lots
of memory. Just maintain how many pages are dirty.

Signed-off-by: Juan Quintela <>

4508bd9e 06/29/2012 02:31 pm Juan Quintela

Exit loop if we have been there too long

Checking each 64 pages is a random magic number as good as any other.
We don't want to test too many times, but on the other hand,
qemu_get_clock_ns() is not so expensive either. We want to be sure
that we spent less than 50ms (half of buffered_file timer), if we...

5b3c9638 06/29/2012 02:28 pm Juan Quintela

Only calculate expected_time for stage 2

ram_save_remaining() is an expensive operation when there is a lot of memory.
So we only call the function when we need it.

Signed-off-by: Juan Quintela <>

8e21cd32 06/29/2012 02:27 pm Orit Wasserman

Add migration_end function

Signed-off-by: Orit Wasserman <>

d5f8a570 06/29/2012 02:27 pm Juan Quintela

Add spent time for migration

We add time spent for migration to the output of "info migrate"
command. 'total_time' means time since the start fo migration if
migration is 'active', and total time of migration if migration is
completed. As we are also interested in transferred ram when...

517a13c9 06/29/2012 02:27 pm Juan Quintela

Add tracepoints for savevm section start/end

This allows to know how long each section takes to save.

An awk script like this tells us sections that takes more that 10ms

$1 ~ /savevm_state_iterate_end/ {
/* Print savevm_section_end line when > 10ms duration */...

aac844ed 06/29/2012 02:27 pm Juan Quintela

No need to iterate if we already are over the limit

If buffers are full, don't iterate, just exit.

Signed-off-by: Juan Quintela <>

d24981d3 06/29/2012 02:27 pm Juan Quintela

Only TCG needs TLB handling

Refactor the code that is only needed for tcg to an static function.
Call that only when tcg is enabled. We can't refactor to a dummy
function in the kvm case, as qemu can be compiled at the same time
with tcg and kvm.

Signed-off-by: Juan Quintela <>

3a697f69 06/29/2012 02:27 pm Orit Wasserman

Add debugging infrastructure

Signed-off-by: Orit Wasserman <>

0c51f43d 06/29/2012 02:18 pm Orit Wasserman

Add save_block_hdr function

Signed-off-by: Benoit Hudzia <>
Signed-off-by: Petter Svard <>
Signed-off-by: Aidan Shribman <>
Signed-off-by: Orit Wasserman <>

6607ae23 06/29/2012 02:18 pm Isaku Yamahata

Add MigrationParams structure

Signed-off-by: Isaku Yamahata <>

0ff1f9f5 06/29/2012 11:38 am Orit Wasserman

Add missing check for host_from_stream_offset return value for RAM_SAVE_FLAG_PAGE

Signed-off-by: Orit Wasserman <>

71ea2e01 06/28/2012 11:28 pm Blue Swirl

bsd-user: fix build

Link in oslib objects also for BSD user, but avoid using the version of
qemu_vmalloc() defined in oslib-posix.c.

Signed-off-by: Blue Swirl <>

6bada5e8 06/28/2012 11:28 pm Blue Swirl

x86: split off SVM helpers

Move SVM helpers to svm_helper.c.

Signed-off-by: Blue Swirl <>

ab109e59 06/28/2012 11:28 pm Blue Swirl

x86: split off SMM helpers

Move SMM helpers to smm_helper.c.

Signed-off-by: Blue Swirl <>

f7b2429f 06/28/2012 11:28 pm Blue Swirl

x86: split off misc helpers

Move various functions to misc_helper.c.

Signed-off-by: Blue Swirl <>

10774999 06/28/2012 11:28 pm Blue Swirl

x86: split off memory access helpers

Move memory access helpers to mem_helper.c.

Signed-off-by: Blue Swirl <>

9cc85c28 06/28/2012 11:28 pm Blue Swirl

x86: rename op_helper.c to seg_helper.c

Rename what is remaining of op_helper.c to seg_helper.c.

Signed-off-by: Blue Swirl <>

d7582078 06/28/2012 11:28 pm Blue Swirl

x86: split off integer helpers

Move integer and bit field helpers to int_helper.c.

Signed-off-by: Blue Swirl <>