Fix warning in kvm-all.c
This fixes a warning I stumbled across while compiling qemu on PPC64.
Signed-off-by: Alexander Graf <agraf@suse.de>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Use correct input constant
440 and desktop codes use different input constants for interrupt indication.
Let's use the respective ones for KVM.
Enable PPC KVM for non-embedded
We now have KVM on PPC64 too and might get it on PPC32 as well, as soonas someone writes it.
So let's enable KVM for PPC32 and PPC64 targets.
Set PVR in sregs
We need to tell the kernel about some initial CPU state we don't have yet,so let's use the "sregs" IOCTL for that and simply put the Processor VersionRegister in there.
Now the kernel knows which guest CPU to virtualize.
Signed-off-by: Alexander Graf <agraf@suse.de>...
Sparc32: convert Sun4c interrupt controller to qdev
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Sparc32: convert SBI to qdev
Fix CONFIG_PROFILER
Sparc32/64: use 64 bit type for memory size
qdev: add 64 bit type
Sparc64: refactor kernel init
Sparc64: refactor CPU init
Sparc64: convert memory to qdev
Sparc64: convert boot prom to qdev
Sparc32: Fix lance
Sparc64: convert APB to qdev
Thanks to Igor Kovalenko for a bugfix.
Fix most warnings (errors with -Werror) when debugging is enabled
I used the following command to enable debugging:perl -p -i -e 's/^\/\/#define DEBUG/#define DEBUG/g' * /* *//*
Fix build with DEBUG_PCI in pci_host.h enabled
Clean up fdc qdev conversion
Fix rbase initialization
Signed-off-by: malc <av1474@comtv.ru>
Fix a similar configure typo from microblaze.
this patch fixes a typo where armv4l was incorrectly spelled arm4l,preventing the correct handling of --cpu=armv4l.
Laurent
Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com>Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
this patch improves the ARM back-end in the following way:
- use movw/movt to load immediate values for ARMv7-A- implement add/sub/and/or/xor with immediate (only 8-bit)
tcg: Fix tcg_gen_rotr_i64
Reported-by: Laurent Desnogues <laurent.desnogues@gmail.com>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Use correct byteswap routine for elf_note
All elf64_note structure members are Elf64_Word (which is 32bit value)hence using bswaptls to byteswap it on 64bit platforms is incorrect.
Avoid name clashes with symbols that leak from system headers
PPC 32/64 GUEST_BASE support
Fix LHZX opcode value
Userspace guest address offsetting
Fix type in i386 tcg.
Signed-off-by: Juan Quintela <quintela@redhat.com>
bsd-users: fix strace
Hi!
Attached patch fixes an unlock bug in strace.Catched by gcc due to an use of uninitialized variable.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
-----to satisfy European Law for business letters:Advanced Micro Devices GmbH...
isxdigit -> qemu_isxdigit
Attached patch uses qemu_isxdigit() instead of isxdigit().Fixes build warning on NetBSD.
fix build warnings
Attached patch fixes build warnings due to use of different pointersignedness.
-----to satisfy European Law for business letters:Advanced Micro Devices GmbHKarl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen...
ELF codedump build failures
Rename ELF coredump types to avoid conflict with the corresponding host types.
Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Re-implement GUEST_BASE support.Offset guest ddress space by default if the guest binary containsregions below the host mmap_min_addr.Implement support for i386, x86-64 and arm hosts.
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>...
Suppress a Sparse warning
Move the export to a file used by both qdev.c and sysbus.c.
Sparc32: use hex for version numbers
0x10000000 looks better than 268435456.
Sparc32: fix escc devices broken by ee6847d19be16c789b8bd4e553b7cd6701ba1245
The logic of Zilog makes channel B the first device and channel A thesecond one.
Sparc32: fix fdc io_base
On some Sparc32 machines, fdc is located above 4G limit, so uint32_t is notappropriate type for io_base.
Fix sparc-softmmu breakage by ee6847d19be16c789b8bd4e553b7cd6701ba1245
Move the qdev_init(dev); call after the setting of d->size.Thanks to Filip Navara.
Fix OpenBSD build
The header sys-queue.h must be #included early, otherwise at some point OSqueue macros will be used. On OpenBSD, those don't define TAILQ_FOREACH_SAFE.
ARM host fixes
Minor TCG cleanups and warning fixes for ARM hosts.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Only allow -cpu host when KVM is enabled
-cpu host is not at all useful when using tcg.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Move CLOCKLIBS and PTHREADLIBS out of CONFIG_LINUX_USER_ONLY
Otherwise, -lrt doesn't get added to the softmmu build.
Initialize cpuid variables
This causes a build break when !KVM.
Ignore -Waddress for alsaaudio.c
/usr/include/alsa/pcm.h contains:
#define snd_pcm_sw_params_alloca(ptr) do { assert(ptr); *ptr = (snd_pcm_sw_params_t *) alloca(snd_pcm_sw_params_sizeof()); memset(*ptr, 0, snd_pcm_sw_params_sizeof()); } while (0)
The assert generates: "error: the address of 'sw_params' will always...
Update version for 0.11 development
Update version for 0.11.0-rc0
simplify TARGET_ARCH2 generation
Signed-off-by: Juan Quintela <quintela@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
simplify TARGET_ABI_DIR generation
rename s/config_mak/config_host_mak/ and s/config_h/config_host_h/
Refactor config_softfloat selection in another list
Generate $target_dir/config.h from $target_dir/config.mak
Only setup TARGET_ARCH when it is different of
generate TARGET_ARCH for config.h
generate TARGET_<arch name> for config.h
simplify TARGET_BASE_ARCH generation
We can wrap OS_CFLAGS/OS_LDFLAGS in CFLAGS/LDFLAGS at configure time
We can wrap ARCH_CFLAGS/ARCH_LDFLAGS in CFLAGS/LDFLAGS at configure time
generate ARCH name instead of coding it
Refactor common code using a list
Refactor targe_bigendian selection in another list
print only once TARGET_ARCH
TARGET_ARCH2 is already known at configure time.
Remove re-construction in Makefile.target
change ifdefs by obj-$(TARGET_BASE_ARCH)
configure xen in a single place
configure kvm in a single place
configure kqemu in a single place
BASE_LDFLAGS is not used anywhere else
TARGET_ARCH == TARGET_BASE_ARCH in m68k and arm
Refactor a single rule to generate all qemu-* executables
qemu binary don't exist anymore. I guess not much people is compiling on alpha
fix for bad macaddr of e1000 in Windows 2003 server with original MS driver
The sequence of reading from eeprom is "offset by one" moved because of a falsedetection of a clock cycle after an eeprom reset. Keeping the last clock valueafter a reset keeps it in sync....
fix XEN Build
I miss s/yes/y/ in one place
fix sparc not solaris build
Remove duplicated definition
use block-nested-y for files inside block/
use nwfpe-obj-y for consistence
Remove unused Makefile variable
already defined several lines before in block-obj-y
configure already knows what TARGET_BASE_ARCH we need, no need to put the logic in Makefile.target
qdev: add user-specified identifier to devices.
Add id field to DeviceState. Make "info qtree" print it.
This helps users and management apps identifying devices in monitoroutput, which is especially useful with otherwise identical devicessuch as two virtio disks....
qdev/compat: virtio-blk-pci 0.10 compatibility.
Add class property to virtio-blk-pci allowing to specify the PCI class.Add compat property to pc-0.10 to set the old PCI class.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qdev: add id= support for pci nics.
qdev/compat: virtio-console-pci 0.10 compatibility.
Add class property to virtio-console-pci allowing to specify the PCI class.Add compat property to pc-0.10 to set the old PCI class.
qdev: print device id in "info pci".
qdev/compat: virtio-net-pci 0.10 compatibility.
Add vectors property, allowing to turn off msi by setting vectors=0.Add compat property to pc-0.10 disabling msi.
qdev: es1370+ac97 description
qdev: factor out driver search to qdev_find_info()
qdev/compat: compat property infrastructure.
This add support for switching devices into a compatibility modeusing device properties. Machine types can have a list of propertiesfor specific devices attached to allow the easy creation of machinetypes compatible to older qemu versions....
qdev: add no_user, alias and desc
no_user: prevent users from adding certain devices.desc: description of the device.alias: to allow user friendly shortcuts on the command line, i.e. -device usbmouse instead of -device "QEMU USB Mouse" or -device lsi instead of -device lsi53c895a...
qdev/compat: add pc-0.10 machine type.
fix segfault in setting migration speed
Hi,
Whoever wrote this migrate_set_speed function is totally stupid.
Any failed or completed migration keeps its state to allow probing ofmigration data, but has no associated file anymore. It is, thus,possible to crash qemu by calling migrate_set_speed after a migration...
Initialize PS2 keyboard / mouse state on reset
Currently only common PS2 state is initialized, leaving keyboard andmouse specific state to contain stale values.
Signed-off-by: Dinesh Subhraveti <dineshs@us.ibm.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
monitor: Add port write command
Useful for testing hardware emulations or manipulating its state tostress guest drivers.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qdev: rework device properties.
This patch is a major overhaul of the device properties. The propertiesare saved directly in the device state struct now, the linked list ofproperty values is gone.
Advantages: * We don't have to maintain the list with the property values....
cleanup: drop unused struct elements from VirtIOPCIProxy.
qemu-io: Implement bdrv_load_vmstate/bdrv_save_vmstate
The load_vmstate and save_vmstate functions are implemented as avariation of the normal read/write operation, enabled by the -b option.This is the same mechanism as is used to switch from read/write to...
Reset HPET config register on hpet_reset
Without this, after system reset, hpet does not detect transition fromnon-legacy to legacy mode.
Signed-off-by: Beth Kon <eak@us.ibm.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
tlb flush cleanup
Use static empty variable s_cputlb_empty_entry to clear entries,also reset addend member when clearing entries.This helps running with valgrind/memcheck
Signed-off-by: igor.v.kovalenko@gmail.com
--Kind regards,Igor V. KovalenkoSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-io: use BDRV_O_FILE to implement the growable open option
Instead of doing our own check for protocols which fails because raw isn'tformally a protocol but special cased in find_protocol specify the BDRV_O_FILEoption to use the same code as bdrv_file_open does....
Remove dead i386 assembly code from softmmu_header.h
This patch removes dead i386 assembly code from softmmu_header.h.
The code is conditional on ASM_SOFTMMU, which is never defined.Optimisation for the fast path is already handled by tcg_out_qemu_ld()...