QEMU With E2K User Support
Go to file
Paolo Bonzini ef5bc96268 virtio-blk: do not relay a previous driver's WCE configuration to the current
The following sequence happens:
- the SeaBIOS virtio-blk driver does not support the WCE feature, which
causes QEMU to disable writeback caching

- the Linux virtio-blk driver resets the device, finds WCE is available
but writeback caching is disabled; tells block layer to not send cache
flush commands

- the Linux virtio-blk driver sets the DRIVER_OK bit, which causes
writeback caching to be re-enabled, but the Linux virtio-blk driver does
not know of this side effect and cache flushes remain disabled

The bug is at the third step.  If the guest does know about CONFIG_WCE,
QEMU should ignore the WCE feature's state.  The guest will control the
cache mode solely using configuration space.  This change makes Linux
do flushes correctly, but Linux will keep SeaBIOS's writethrough mode.

Hence, whenever the guest is reset, the cache mode of the disk should
be reset to whatever was specified in the "-drive" option.  With this
change, the Linux virtio-blk driver finds that writeback caching is
enabled, and tells the block layer to send cache flush commands
appropriately.

Reported-by: Rusty Russell <rusty@au1.ibm.com
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2013-09-20 19:27:48 +02:00
audio aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
backends aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
block qcow2: Correct snapshots size for overlap check 2013-09-20 12:48:03 +02:00
bsd-user
default-configs default-configs: Fix A9MP and A15MP config names 2013-08-20 14:54:32 +01:00
disas disas/ppc.c: Fix little endian disassembly 2013-09-02 10:06:41 +02:00
docs qcow2: Add corrupt bit 2013-08-30 15:48:43 +02:00
dtc@bc895d6d09
fpu
fsdev
gdb-xml target-arm: Add AArch64 gdbstub support 2013-09-10 19:11:28 +01:00
hw virtio-blk: do not relay a previous driver's WCE configuration to the current 2013-09-20 19:27:48 +02:00
include virtio-blk: do not relay a previous driver's WCE configuration to the current 2013-09-20 19:27:48 +02:00
libcacard libcacard: link against qemu-error.o for error_report() 2013-09-18 15:34:51 +02:00
linux-headers misc: Fix some typos in names and comments 2013-09-01 18:59:24 +04:00
linux-user linux-user: Add AArch64 support 2013-09-10 19:11:29 +01:00
net net: Rename send_queue to incoming_queue 2013-09-06 17:01:26 +02:00
pc-bios Update OpenBIOS images 2013-07-30 23:11:07 +01:00
pixman@97336fad32
po po: Update all *.po files 2013-08-07 12:48:00 -05:00
qapi OptsVisitor: don't try to flatten overlong integer ranges 2013-08-20 11:52:00 -04:00
qga qemu-ga: Install Windows VSS provider on `qemu-ga -s install' 2013-09-09 14:17:57 -05:00
QMP qemu-iotests: add infrastructure of fd passing via SCM 2013-09-12 10:12:46 +02:00
qobject
qom QOM CPUState refactorings / X86CPU 2013-09-03 12:33:32 -05:00
roms Update OpenBIOS images 2013-07-30 23:11:07 +01:00
scripts Merge remote-tracking branch 'luiz/queue/qmp' into staging 2013-09-11 14:46:44 -05:00
slirp slirp: clean up slirp_update_timeout 2013-09-17 12:26:05 +02:00
stubs Merge remote-tracking branch 'kiszka/queues/slirp' into staging 2013-09-17 10:01:24 -05:00
sysconfigs/target
target-alpha tcg: Change tcg_gen_exit_tb argument to uintptr_t 2013-09-02 09:08:30 -07:00
target-arm target-arm: Add AArch64 gdbstub support 2013-09-10 19:11:28 +01:00
target-cris tcg: Change tcg_gen_exit_tb argument to uintptr_t 2013-09-02 09:08:30 -07:00
target-i386 target-i386: Only provide CMOV and friends if feature bit set 2013-09-12 11:24:48 -07:00
target-lm32 target: Include softmmu_exec.h where forgotten 2013-09-02 09:08:30 -07:00
target-m68k tcg: Change tcg_gen_exit_tb argument to uintptr_t 2013-09-02 09:08:30 -07:00
target-microblaze tcg: Change tcg_gen_exit_tb argument to uintptr_t 2013-09-02 09:08:30 -07:00
target-mips cpu: Use QTAILQ for CPU list 2013-09-03 12:25:55 +02:00
target-moxie target: Include softmmu_exec.h where forgotten 2013-09-02 09:08:30 -07:00
target-openrisc tcg: Change tcg_gen_exit_tb argument to uintptr_t 2013-09-02 09:08:30 -07:00
target-ppc cpu: Use QTAILQ for CPU list 2013-09-03 12:25:55 +02:00
target-s390x exec: Don't abort when we can't allocate guest memory 2013-09-12 11:45:32 -05:00
target-sh4 tcg: Change tcg_gen_exit_tb argument to uintptr_t 2013-09-02 09:08:30 -07:00
target-sparc tcg: Change tcg_gen_exit_tb argument to uintptr_t 2013-09-02 09:08:30 -07:00
target-unicore32 target: Include softmmu_exec.h where forgotten 2013-09-02 09:08:30 -07:00
target-xtensa target: Include softmmu_exec.h where forgotten 2013-09-02 09:08:30 -07:00
tcg Merge remote-tracking branch 'mjt/trivial-patches' into staging 2013-09-03 12:31:44 -05:00
tests coroutine: fix /perf/nesting coroutine benchmark 2013-09-19 13:21:41 +02:00
trace
ui spice-core: Use g_strdup_printf instead of snprintf 2013-09-10 11:14:08 +02:00
util osdep: warn if open(O_DIRECT) on fails with EINVAL 2013-09-18 15:34:51 +02:00
.exrc
.gitignore qemu-ga: Add configure options to specify path to Windows/VSS SDK 2013-09-09 14:17:56 -05:00
.gitmodules
.mailmap Update mailmap 2013-09-05 09:40:31 -05:00
aio-posix.c aio / timers: Convert aio_poll to use AioContext timers' deadline 2013-08-22 19:10:28 +02:00
aio-win32.c aio-win32: replace incorrect AioHandler->opaque usage with ->e 2013-08-22 22:04:54 +02:00
arch_init.c cpu: Replace qemu_for_each_cpu() 2013-09-03 12:25:55 +02:00
async.c aio / timers: aio_ctx_prepare sets timeout from AioContext timers 2013-08-22 19:10:28 +02:00
balloon.c
block-migration.c migration: omit drive ref as we have bdrv_ref now 2013-09-06 15:25:08 +02:00
block.c block: don't lose data from last incomplete sector 2013-09-20 19:27:26 +02:00
blockdev-nbd.c nbd: use BlockDriverState refcnt 2013-09-06 15:25:08 +02:00
blockdev.c blockdev: do not default cache.no-flush to true 2013-09-20 19:27:44 +02:00
blockjob.c block: use BDS ref for block jobs 2013-09-06 15:25:08 +02:00
bt-host.c
bt-vhci.c
Changelog
CODING_STYLE
configure coroutine: add ./configure --disable-coroutine-pool 2013-09-12 10:12:48 +02:00
COPYING
COPYING.LIB
coroutine-gthread.c
coroutine-sigaltstack.c
coroutine-ucontext.c
coroutine-win32.c
cpu-exec.c tcg: Fix next_tb type in cpu_exec 2013-09-02 09:08:29 -07:00
cpus.c cpu: Replace qemu_for_each_cpu() 2013-09-03 12:25:55 +02:00
cputlb.c cpu: Use QTAILQ for CPU list 2013-09-03 12:25:55 +02:00
device_tree.c
device-hotplug.c
disas.c disas: Implement fallback to dump object code as hex 2013-08-24 07:26:45 +02:00
dma-helpers.c aio / timers: Untangle include files 2013-08-22 19:10:27 +02:00
dump.c cpu: Use QTAILQ for CPU list 2013-09-03 12:25:55 +02:00
exec.c exec: Don't abort when we can't allocate guest memory 2013-09-12 11:45:32 -05:00
gdbstub.c cpu: Use QTAILQ for CPU list 2013-09-03 12:25:55 +02:00
HACKING
hmp-commands.hx hmp: add interface hmp_snapshot_delete_blkdev_internal 2013-09-12 10:12:47 +02:00
hmp.c hmp: add interface hmp_snapshot_delete_blkdev_internal 2013-09-12 10:12:47 +02:00
hmp.h hmp: add interface hmp_snapshot_delete_blkdev_internal 2013-09-12 10:12:47 +02:00
iohandler.c
ioport.c memory: Provide separate handling of unassigned io ports accesses 2013-09-05 18:11:43 +02:00
kvm-all.c exec: Simplify the guest physical memory allocation hook 2013-09-12 11:45:31 -05:00
kvm-stub.c Merge remote-tracking branch 'qemu-kvm/uq/master' into stable-1.5 2013-08-29 17:21:51 -05:00
LICENSE LICENSE: clarify 2013-08-12 09:15:12 -05:00
main-loop.c slirp: set mainloop timeout with more precise value 2013-09-17 12:26:05 +02:00
MAINTAINERS MAINTAINERS: Take over 0.15 maintenance 2013-08-22 17:27:43 +02:00
Makefile qemu-ga: Add Windows VSS provider and requester as DLL 2013-09-09 14:17:57 -05:00
Makefile.objs qemu-ga: Add Windows VSS provider and requester as DLL 2013-09-09 14:17:57 -05:00
Makefile.target
memory_mapping.c cpu: Use QTAILQ for CPU list 2013-09-03 12:25:55 +02:00
memory.c Revert "memory: Return -1 again on reads from unsigned regions" 2013-09-05 18:11:48 +02:00
migration-exec.c aio / timers: Untangle include files 2013-08-22 19:10:27 +02:00
migration-fd.c aio / timers: Untangle include files 2013-08-22 19:10:27 +02:00
migration-rdma.c rdma: silly ipv6 bugfix 2013-09-01 19:03:43 +04:00
migration-tcp.c aio / timers: Untangle include files 2013-08-22 19:10:27 +02:00
migration-unix.c aio / timers: Untangle include files 2013-08-22 19:10:27 +02:00
migration.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
monitor.c QOM CPUState refactorings / X86CPU 2013-09-03 12:33:32 -05:00
nbd.c nbd: use BlockDriverState refcnt 2013-09-06 15:25:08 +02:00
os-posix.c
os-win32.c
page_cache.c
qapi-schema.json qmp: add interface blockdev-snapshot-delete-internal-sync 2013-09-12 10:12:47 +02:00
qdev-monitor.c qemu-help: Sort devices by logical functionality 2013-07-29 10:37:09 -05:00
qdict-test-data.txt
qemu-bridge-helper.c
qemu-char.c chardev: fix pty_chr_timer 2013-09-12 09:58:18 +02:00
qemu-coroutine-io.c aio / timers: Untangle include files 2013-08-22 19:10:27 +02:00
qemu-coroutine-lock.c block: Repair the throttling code. 2013-07-29 17:07:37 +02:00
qemu-coroutine-sleep.c aio / timers: convert block_job_sleep_ns and co_sleep_ns to new API 2013-08-22 19:14:24 +02:00
qemu-coroutine.c coroutine: add ./configure --disable-coroutine-pool 2013-09-12 10:12:48 +02:00
qemu-doc.texi
qemu-img-cmds.hx block: Image file option amendment 2013-09-12 10:12:46 +02:00
qemu-img.c qemu-img: fix invalid JSON 2013-09-12 13:49:50 +02:00
qemu-img.texi block: Image file option amendment 2013-09-12 10:12:46 +02:00
qemu-io-cmds.c block: expect errors from bdrv_co_is_allocated 2013-09-06 15:25:09 +02:00
qemu-io.c block: Error parameter for open functions 2013-09-12 10:12:48 +02:00
qemu-log.c
qemu-nbd.c block: Error parameter for open functions 2013-09-12 10:12:48 +02:00
qemu-nbd.texi
qemu-options-wrapper.h
qemu-options.h
qemu-options.hx block: Add iops_size to do the iops accounting for a given io size. 2013-09-06 15:25:07 +02:00
qemu-seccomp.c seccomp: add arch_prctl() to the syscall whitelist 2013-07-29 19:56:52 -05:00
qemu-tech.texi
qemu-timer.c qemu-timer: do not take the lock in timer_pending 2013-09-18 15:48:33 +02:00
qemu.nsi w32, w64: Add build rule for installer 2013-07-29 11:43:37 +02:00
qemu.sasl
qmp-commands.hx qmp: add interface blockdev-snapshot-delete-internal-sync 2013-09-12 10:12:47 +02:00
qmp.c
qtest.c qtest: Fix FMT_timeval vs time_t 2013-09-02 09:08:29 -07:00
readline.c monitor: avoid use of global *cur_mon in readline_completion() 2013-08-30 07:41:14 -04:00
README
rules.mak configure: Support configuring C++ compiler 2013-09-09 14:17:56 -05:00
savevm.c snapshot: distinguish id and name in snapshot delete 2013-09-12 10:12:47 +02:00
spice-qemu-char.c
tcg-runtime.c
tci.c tcg: Change tcg_qemu_tb_exec return to uintptr_t 2013-09-02 09:08:29 -07:00
thread-pool.c aio / timers: Untangle include files 2013-08-22 19:10:27 +02:00
thunk.c
tpm.c tpm.c: Don't try to put -1 in a variable of type TpmModel 2013-07-29 10:37:10 -05:00
trace-events qxl: trace io port name 2013-09-10 11:14:08 +02:00
translate-all.c cpu: Use QTAILQ for CPU list 2013-09-03 12:25:55 +02:00
translate-all.h
user-exec.c
VERSION Open up 1.7 development branch 2013-08-15 15:41:13 -05:00
version.rc w32: Add an icon resource 2013-08-27 14:21:16 +02:00
vl.c Remove dev-bluetooth.c dependency from vl.c 2013-09-10 11:14:42 +02:00
xbzrle.c
xen-all.c pc: Initializing ram_memory under Xen. 2013-09-09 16:22:19 +00:00
xen-mapcache.c
xen-stub.c pc: Initializing ram_memory under Xen. 2013-09-09 16:22:19 +00:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team