Follow coding conventions
Remove explicit struct qualifiers and rename structure types.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Workaround compiler warnings at -O1
Fixe ARM NEON vrshl.
Add m68k_cpu_list()
This patch adds to m68k target the missing m68k_cpu_list():
$ ./m68k-softmmu/qemu-system-m68k -cpu ?m5206m5208cfv4eany
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Fix in file qemu-sockets.c
1) Changed usage of malloc,free,strdup to qemu_malloc,qemu_free,qemu_strdup 2) Some coding style fixes (based on CODING_STYLE document) 3) Free struct addrinfo *res after failure of listen
Signed-off-by: vibi <vibi_sreenivasan@cms.com>...
vga: Replace VGA_COMMON with a structure
All VGA devices share a common field subset; currently they do so bya macro which defines the common fields inline their state structures,relying on the the common state being placed at offset 0 in the structure....
Improve block range checks
This patch makes the range checks for block requests more strict: It fixes apotential integer overflow and checks for negative offsets. Also, it adds thecheck for compressed writes.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>...
Remove noisy printf when KVM masks CPU features
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
fix asynchronous ioctls
posix_aio_read expect aio requests to return the number of bytesrequests to be successfull, so we need to fake this up for ioctls.
Signed-off-by: Christoph Hellwig <hch@lst.de>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
kvm: Add support for querying supported cpu features
kvm does not support all cpu features; add support for dunamically queryingthe supported feature set.
Signed-off-by: Avi Kivity <avi@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Make x86 cpuid feature names available in file scope
To be used later.
Fix x86 feature modifications for features that set multiple bits
QEMU allows adding or removing cpu features by using the syntax '-cpu +feature'or '-cpu -feature'. Some cpuid features cause more than one bit to be set orcleared; but QEMU stops after just one bit has been modified, causing the...
kvm: Trim cpu features not supported by kvm
Remove cpu features that are not supported by kvm from the cpuid featuresreported to the guest.
Introduce kvm_check_extension to check if KVM extensions are supported
register reset handler for option_roms
Currently, boot options are not preserved across a system reset.option roms can modify themselves, or can for instance restore the realint 0x19 vector after they tried to boot from it.
To properly do that, we need a reset handler registered to deal with option...
reset state for load_linux
The linux loader is just an option rom like any other, just withsome special requirements. Right now, our option rom resettingmechanism is not being applied to it. As a result, users using-kernel will not be able to successfully reboot their machines...
AIO deletion race fix
When deleting an fd event there is a chance the object doesn't getdeleted, but only ->deleted set positive and deleted somewhere later.
Now, if we create a handler for the fd again before the actualdeletion occurs, we end up writing data into an object that has...
e1000: Do not reinit pci config space to 0
pci_register_device already mallocs the pci config space buffer filledwith zeroes.
Doing this again breaks some default config space writes likesetting the subsystem vendor id and subsystem device id.
Signed-off-by: Amit Shah <amit.shah@redhat.com>...
Fix cluster freeing in qcow2
Need to drop QCOW_OFLAG_COPIED from a cluster pointer before freeing it.
Add an explanation how thing meant to work.
Signed-off-by: Gleb Natapov <gleb@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Enable power button even generation.
Drop CONFIG_GDBSTUB
This is no user-flippable switch, and no arch makes use of disablinggdbstub support. So it's pointless to keep the related #ifdefs andconfigure hunks around - and risking breakages like 711c410fdd again.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Remove superfluous #includes.
Use target_phys_addr_t, not target_ulong.
Replace cpu_abort with hw_error
Fix disassembler memory accesses
Sparc disassembler wants to check previous addresses for some stuffand this may actually cause faults to be generated to the guest if theaddress is close to page start, because of the function used for thememory access....
Suppress make directory messages.
We already print a directory prefix in non-verbose mode, so there's nopoint printing a messages when recursive make enters/leaves a directory.
Fix PL110 framebuffer byteswapping in 32bpp mode.
ETRAX: Simplify serport control logic.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
ETRAX: Drop _t for the serial type.
ETRAX: Use NULL for subwidth serport reg accesses.
ETRAX: Drop the _t for the internal PIC type.
ETRAX: Simplify the interrupt controller model.
ETRAX: Simplify interrupt signaling.
Fix compiler warnings in nwfpe code.
target-mips: proper sign extension for 'SUBU rd, zero, rt'
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-mips: fix comments about SUB/DSUB
qemu-options.hx: fix description of cache=none suboption
Suppress type mismatch warnings in VDE code.
minor fix of pci_register_bus()
keep first_bus linked list correct.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
use PCI_HEADER_TYPE.
use symbolic value instead of 0x0e and related value.
Fix typos in comments in exec.c
This patch fixes several typos in comments in exec.c:
longet -> longer recommanded -> recommended ajustments -> adjustments inconsistancies -> inconsistencies phsical -> physical positionned -> positioned...
Optimize cmp x, 0 case
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Reindent
Handle NULL bdrv.
Improve instruction name comments for easier searching
Clarify: dmmuregs1 is not a typo
Optimize operations with immediate parameters
Fix Sparc64 sign extension problems
Make sure not to fall through on error in loadvm
This is from the KVM tree
Fix hw/acpi.c build w/ DEBUG enabled
Trivial build warning/fixes when the local DEBUG define is enabled.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>Signed-off-by: Avi Kivity <avi@qumranet.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Pci nic: pci_register_device can fail
The pci_register_device() call in PCI nic initialization routines canfail. Handle this failure and propagate a meaningful error message tothe user instead of generating a SEGV.
Cc: Marcelo Tosatti <mtosatti@redhat.com>...
Fix serial option with -drive
This is from the KVM tree.
vnc: kill leftover debug statement.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
kvm: Avoid COW if KVM MMU is asynchronous
Avi Kivity wrote:
Suggest wrapping in a function and hiding it deep inside kvm-all.c.
Done in v2:
---------->
If the KVM MMU is asynchronous (kernel does not support MMU_NOTIFIER),we have to avoid COW for the guest memory. Otherwise we risk serious...
net: Fix -net socket parameter checks
My commit ea053add700d8abe203cd79a9ffb082aee4eabc0 broke -net socket byoverwriting an intermediate buffer in the added check_param. Fix thisby switching check_param to automatic buffer allocation and release, ie.callers no longer have to worry about providing a scratch buffer....
Hardware watchdog
Here is an updated hardware watchdog patch, which should fixeverything that was raised about the previous version ...
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-io: Optionally verify only part of read data
There are reasonable test cases where a read must span areas that are notuniformly filled with one pattern but contains several parts. This makes -Puseless for them currently.
Introducing additional options which determine the part of the read data that...
fix virtio_blk_inhdr comment
The inhdr is at the end of the S/G list, not the beginning.
suport device driver initialization model
According to PnP specification, Appendix B, Option ROMsthat support DDIM (device driver initialization model) shouldhave their memory space writeable.
KVM deviates from us here, by removing the IO_MEM_ROM flag,...
Build fix for !CONFIG_GDBSTUB case
Once CONFIG_GDBSTUB not configured, compile will generate error.
Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>Signed-off-by: Avi Kivity <avi@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vnc: windup keypad keys for qemu console emulation
net: Avoid gcc'ism in net_host_device_add
+ if (net_client_init(device, opts ? : "") < 0) { Is this a gcc extension? Do we want to introduce this construct to thecode base.
+ if (net_client_init(device, opts ? : "") < 0) {
Is this a gcc extension? Do we want to introduce this construct to thecode base.
Valid remark, fix below.
Thanks,Jan
-------->
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>...
vnc: fix segfault
Move down cmp_bytes initialization. Must be after vga_hw_update()call, because that one might change the screen depth.
ppc: include cache-utils.o in BLOCK_OBJS
On ppc, cutils.o needs cache-utils.o or an undefined reference toqemu_cache_conf results.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
virtio-blk: add SGI_IO passthru support
[had the qemu list address wrong the first time, reply to this message, not the previous if you were on Cc]
Add support for SG_IO passthru (packet commands) to the virtio-blkbackend. Conceptually based on an older patch from Hannes Reinecke...
vnc: fix server surface pixel format.
Format must be identical to the guest surface, we can't work withthe 32 bpp used by the default surface allocator.
Without this patch vnc doesn't get the conversions right when sendingpixel data to the client. The bug triggers if...
vnc: no need to set force_update for incremental update requests.
kvm: Relax aligment check of kvm_set_phys_mem
There is no need to reject an unaligned memory region registration ifthe region will be I/O memory and it will not split an existing KVMslot. This fixes KVM support on PPC.
Remove redundant cirrus vga ram functions.
Remove redundant #define
Suppress a warningaudio/dsoundaudio.c:35:1: warning: "WIN32_LEAN_AND_MEAN" redefined<command line>:4:1: warning: this is the location of the previous definition
Signed-off-by: Alex Ivanov <void@aleksoft.net>
Remove cpu_get_io_memory_{read,write}.
Remove vga LFB accessor hacks.
These are redundant now that we remap the LFB ram area.
gitignore qemu-options.texi
$subj
François.
Signed-off-by: François Revol <revol@free.fr>
Fix qemu_event_init
Falling through to "fail" made qemu_event_init() close the pipe fdsimmediately again, breaking timer event notification.
Fix powerpc 604 reset vector
According to 604eUM_book (see 8.3.3 Reset inputs p8-54), the IP bit is setfor hreset and the vector is at offset 0x100 from the exception prefix.
No difference in this area between 604 and 604e.
Signed-off-by: Tristan Gingold <gingold@adacore.com>
Fix PPC reset
Silence missing pkg-config error messages
sparc64 fix context value for ITLB fault
Revert previous change to get_physical_address_code:I/D MMU context register is shared, so using dmmuregs1 is correct
Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
sparc64 fix TLB match code
TLB match code must respect page size, otherwise 4M page mappings maybe not found.
Also correct a typo in get_physical_address_code which should use IMMUregisters.
Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>...
Synch to VGA
[RESEND] Fix vga segfaults or screen corruption with large memory guests
page0 and friends are ram addresses; a smaller size will overflow andcause a segfault or random corruption.
Change them to ram_addr_t.
Signed-off-by: Avi Kivity <avi@redhat.com>
build system: Silence failing configure tests
fix net.c compile warning
Fix net.c compile warning:
CC net.onet.c: In function net_slirp_redir:net.c:623: warning: format not a string literal and no format arguments
Signed-off-by: Robert Reif <reif@earthlink.net>
Recognize V9 stores and CAS accesses as writes
Fix a warning in sparc64-linux-user build
Merge branch 'master' of blueswir1@git.sv.gnu.org:/srv/git/qemu
sparc64 support TSB related MMU registers
Posting updated patch to the list...
On Fri, Apr 24, 2009 at 9:42 PM, Blue Swirl <blauwirbel@gmail.com> wrote: > > Nice, though I didn't notice any visible improvement in my tests. This early in boot process there is not much to output; and I test...
On Fri, Apr 24, 2009 at 9:42 PM, Blue Swirl <blauwirbel@gmail.com> wrote: > > Nice, though I didn't notice any visible improvement in my tests.
This early in boot process there is not much to output; and I test...
CRIS: cris_mmu_result_t -> cris_mmu_result
Fix Win32 warning
Fix compilation when x86_64 is defined
Fix warning
block-vvfat: fix a warning
qemu: introduce iothread (Marcelo Tosatti)
Fill in the hooks and introduce iothread.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7248 c046a42c-6fe2-441c-8c8c-71466251a162
qemu: handle stop request in main loop (Marcelo Tosatti)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7247 c046a42c-6fe2-441c-8c8c-71466251a162
qemu: refactor tcg cpu execution loop (Marcelo Tosatti)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7246 c046a42c-6fe2-441c-8c8c-71466251a162
qemu: use debug_requested global instead of cpu_exec return (Marcelo Tosatti)
Necessary for the next refactoring patch.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7245 c046a42c-6fe2-441c-8c8c-71466251a162
qemu: introduce lock/unlock_iothread (Marcelo Tosatti)
Hook to allow iothread to drop the global mutex.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7244 c046a42c-6fe2-441c-8c8c-71466251a162
qemu: introduce qemu_cpu_kick (Marcelo Tosatti)
To notify cpu of pending interrupt.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7243 c046a42c-6fe2-441c-8c8c-71466251a162
qemu: introduce qemu_init_vcpu (Marcelo Tosatti)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7242 c046a42c-6fe2-441c-8c8c-71466251a162
qemu: refactor main_loop (Marcelo Tosatti)
Break main loop into 3 main functions.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7241 c046a42c-6fe2-441c-8c8c-71466251a162