Go to file
Igor Mammedov 11acfdd5a1 target-i386: Remove vendor_override field from CPUX86State
Commit 8935499831 makes cpuid return to guest host's vendor value
instead of built-in one by default if kvm_enabled() == true and allows
to override this behavior if 'vendor' is specified on -cpu command line.

But every time guest calls cpuid to get 'vendor' value, host's value is
read again and again in default case.

It complicates semantics of vendor property and makes it harder to use.

Instead of reading 'vendor' value from host every time cpuid[vendor] is
called, override 'vendor' value only once in cpu_x86_find_by_name(), when
built-in CPU model is found and if(kvm_enabled() == true).

It provides the same default semantics
 if (kvm_enabled() == true)  vendor = host's vendor
 else vendor = built-in vendor

and then later:
 if (custom vendor) vendor = custom vendor

'vendor' value is overridden when user provides it on -cpu command line,
and there is no need for vendor_override field anymore, remove it.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-01-27 14:34:27 +01:00
audio
backends
block
bsd-user
default-configs
disas
docs
fpu
fsdev
gdb-xml
hw pc: Generate APIC IDs according to CPU topology 2013-01-27 14:34:27 +01:00
include cpus.h: Make constant smp_cores/smp_threads available on *-user 2013-01-27 14:34:27 +01:00
ldscripts
libcacard
linux-headers
linux-user
net
pc-bios
pixman@97336fad32
qapi
qga
QMP
qobject
qom
roms
scripts
slirp
stubs
sysconfigs/target
target-alpha
target-arm
target-cris
target-i386 target-i386: Remove vendor_override field from CPUX86State 2013-01-27 14:34:27 +01:00
target-lm32
target-m68k
target-microblaze
target-mips
target-openrisc target-openrisc: Clean up triple QOM casts 2013-01-27 14:34:26 +01:00
target-ppc kvm: Create kvm_arch_vcpu_id() function 2013-01-27 14:34:26 +01:00
target-s390x kvm: Create kvm_arch_vcpu_id() function 2013-01-27 14:34:26 +01:00
target-sh4
target-sparc
target-unicore32
target-xtensa
tcg
tests target-i386: Topology & APIC ID utility functions 2013-01-27 14:34:27 +01:00
trace
ui
util
.exrc
.gitignore
.gitmodules
.mailmap
aio-posix.c
aio-win32.c
arch_init.c
async.c
balloon.c
block-migration.c
block.c
blockdev-nbd.c
blockdev.c
blockjob.c
bt-host.c
bt-vhci.c
Changelog
cmd.c
cmd.h
CODING_STYLE
configure
COPYING
COPYING.LIB
coroutine-gthread.c
coroutine-sigaltstack.c
coroutine-ucontext.c
coroutine-win32.c
cpu-exec.c
cpus.c
cputlb.c
device_tree.c
disas.c
dma-helpers.c
dump-stub.c
dump.c
exec.c
gdbstub.c
HACKING
hmp-commands.hx
hmp.c
hmp.h
iohandler.c
ioport.c
kvm-all.c kvm: Create kvm_arch_vcpu_id() function 2013-01-27 14:34:26 +01:00
kvm-stub.c
LICENSE
main-loop.c
MAINTAINERS
Makefile build: remove *.lo, *.a, *.la files from all subdirectories on make clean 2013-01-26 13:30:00 +00:00
Makefile.objs
Makefile.target
memory_mapping-stub.c
memory_mapping.c
memory.c
migration-exec.c
migration-fd.c
migration-tcp.c
migration-unix.c
migration.c
monitor.c
nbd.c
os-posix.c
os-win32.c
page_cache.c
qapi-schema-test.json
qapi-schema.json
qdict-test-data.txt
qemu-bridge-helper.c
qemu-char.c
qemu-coroutine-io.c
qemu-coroutine-lock.c
qemu-coroutine-sleep.c
qemu-coroutine.c
qemu-doc.texi
qemu-img-cmds.hx
qemu-img.c
qemu-img.texi
qemu-io.c
qemu-log.c
qemu-nbd.c
qemu-nbd.texi
qemu-options-wrapper.h
qemu-options.h
qemu-options.hx
qemu-seccomp.c
qemu-tech.texi
qemu-timer.c
qemu.sasl
qmp-commands.hx
qmp.c
qtest.c
readline.c
README
rules.mak
savevm.c
spice-qemu-char.c
tcg-runtime.c
tci.c
thread-pool.c
thunk.c
TODO
trace-events
translate-all.c
translate-all.h
user-exec.c
VERSION
version.rc
vl.c
xen-all.c
xen-mapcache.c
xen-stub.c

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

- QEMU team