[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...
[virto-9p] Implement TLOCK
Synopsis
size[4] TLock tag[2] fid[4] flock[n] size[4] RLock tag[2] status[1]
Description
Tlock is used to acquire/release byte range posix locks on a fileidentified by given fid. The reply contains status of the lock request...
qemu-virtio9p: Implement TGETLOCK
size[4] TGetlock tag[2] fid[4] getlock[n] size[4] RGetlock tag[2] getlock[n]
TGetlock is used to test for the existence of byte range posix locks ona file identified by given fid. The reply contains getlock structure. If...
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
View revisions
Also available in: Atom