[virtio-9p] open should not return EBADF
When 9P server fails to create a file due to permission problems it shouldreturn EPERM. However the current 9P2000.L code returns EBADF. EBADF is NOTa valid return value from open() call.
The problem is because we do not preserve the errno variable properly. If the...
apic: convert debug printf statements to tracepoints
Replace debug printf statements with tracepoints.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Delete write only variables
Compiling with GCC 4.6.0 20100925 produced warnings like:/src/qemu/net/tap-win32.c: In function 'tap_win32_open':/src/qemu/net/tap-win32.c:582:12: error: variable 'hThread' set but not used [-Werror=unused-but-set-variable]...
cirrus: avoid write only variables
Compiling with GCC 4.6.0 20100925 produced a lot of warnings like:In file included from /src/qemu/hw/cirrus_vga_rop.h:174:0, from /src/qemu/hw/cirrus_vga.c:284:/src/qemu/hw/cirrus_vga_rop2.h: In function 'cirrus_patternfill_0_8':...
eepro100: initialize a variable in all cases
Compiling with GCC 4.6.0 20100925 produced warnings:/src/qemu/hw/eepro100.c: In function 'eepro100_read4':/src/qemu/hw/eepro100.c:1351:14: error: 'val' may be used uninitialized in this function [-Werror=uninitialized]...
lsi53c895a: avoid a write only variable
Compiling with GCC 4.6.0 20100925 produced a warning:/src/qemu/hw/lsi53c895a.c: In function 'lsi_do_msgout':/src/qemu/hw/lsi53c895a.c:848:9: error: variable 'len' set but not used [-Werror=unused-but-set-variable]...
ppc: remove video.x
Only Mac-on-Linux stuff used video.x, OpenBIOS does not need it.
Remove video.x MoL hacks.
Signed-off-by: Alexander Graf <agraf@suse.de>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Merge remote branch 'mst/for_anthony' into staging
acpi: Fix an infinite loop in acpi_table_add
Commit d729bb9a7700e364b1c5f9893d61f07a9e002bce has a typo, causing aninfinite loop in acpi_table_add.
Signed-off-by: Vincent Minet <vincent@vincent-minet.net>Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com>...
vhost: error code
fix up errors returned to include errno, not just -1
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
View revisions
Also available in: Atom