Statistics
| Branch: | Revision:

root / target-i386 @ 41e5e76d

Name Size
Makefile.objs 394 Bytes
TODO 1 kB
arch_dump.c 12 kB
arch_memory_mapping.c 7.7 kB
cc_helper.c 8.9 kB
cc_helper_template.h 7 kB
cpu-qom.h 1.9 kB
cpu.c 66.9 kB
cpu.h 35.9 kB
excp_helper.c 4.1 kB
fpu_helper.c 29.8 kB
helper.c 40.5 kB
helper.h 7.2 kB
hyperv.c 1.2 kB
hyperv.h 1.2 kB
int_helper.c 10.4 kB
ioport-user.c 1.6 kB
kvm-stub.c 375 Bytes
kvm.c 63.8 kB
kvm_i386.h 1.3 kB
machine.c 14.6 kB
mem_helper.c 3.8 kB
misc_helper.c 15 kB
ops_sse.h 70.9 kB
ops_sse_header.h 12.5 kB
seg_helper.c 79.1 kB
shift_helper_template.h 3 kB
smm_helper.c 10.1 kB
svm.h 5.7 kB
svm_helper.c 26.6 kB
translate.c 265.4 kB

Latest revisions

# Date Author Comment
ac67ee26 10/31/2012 03:39 am Eduardo Habkost

i386: kvm: set CPUID_EXT_TSC_DEADLINE_TIMER on kvm_arch_get_supported_cpuid()

This moves the CPUID_EXT_TSC_DEADLINE_TIMER CPUID flag hacking from
kvm_arch_init_vcpu() to kvm_arch_get_supported_cpuid().

Full git grep for kvm_arch_get_supported_cpuid:

kvm.h:uint32_t kvm_arch_get_supported_cpuid(KVMState *env, uint32_t function,...
41e5e76d 10/31/2012 03:39 am Eduardo Habkost

i386: kvm: x2apic is not supported without in-kernel irqchip

This is necessary so that x2apic is not improperly enabled when the
in-kernel irqchip is disabled.

This won't generate a warning with "-cpu ...,check" because the current
check/enforce code is broken (it checks the host CPU data directly,...

c2acb022 10/31/2012 03:39 am Eduardo Habkost

i386: kvm: kvm_arch_get_supported_cpuid: replace if+switch with single 'if'

Additional fixups will be added, and making them a single 'if/else if'
chain makes it clearer than two nested switch statements.

Signed-off-by: Eduardo Habkost <>...

84bd945c 10/31/2012 03:39 am Eduardo Habkost

i386: kvm: set CPUID_EXT_HYPERVISOR on kvm_arch_get_supported_cpuid()

Full grep for kvm_arch_get_supported_cpuid:

kvm.h:uint32_t kvm_arch_get_supported_cpuid(KVMState *env, uint32_t function,
target-i386/cpu.c: x86_cpu_def->cpuid_7_0_ebx_features = kvm_arch_get_supported_cpuid(kvm_state, 0x7, 0, R_EBX);...
8c723b79 10/31/2012 03:39 am Eduardo Habkost

i386: kvm: kvm_arch_get_supported_cpuid: clean up has_kvm_features check

Instead of a function-specific has_kvm_features variable, simply use a
"found" variable that will be checked in case we have to use the legacy
get_para_features() interface.

No behavior change, just code cleanup....

47111e2c 10/31/2012 03:39 am Eduardo Habkost

i386: kvm: kvm_arch_get_supported_cpuid: use 'entry' variable

The reg switch will be moved to a separate function, so store the entry
pointer in a variable.

No behavior change, just code movement.

Signed-off-by: Eduardo Habkost <>
Signed-off-by: Marcelo Tosatti <>

829ae2f9 10/31/2012 03:39 am Eduardo Habkost

i386: kvm: extract register switch to cpuid_entry_get_reg() function

No behavior change: just code movement.

Signed-off-by: Eduardo Habkost <>
Signed-off-by: Marcelo Tosatti <>

4fb73f1d 10/31/2012 03:39 am Eduardo Habkost

i386: kvm: extract CPUID entry lookup to cpuid_find_entry() function

No behavior change, just code movement.

Signed-off-by: Eduardo Habkost <>
Signed-off-by: Marcelo Tosatti <>

dd87f8a6 10/31/2012 03:39 am Eduardo Habkost

i386: kvm: extract try_get_cpuid() loop to get_supported_cpuid() function

No behavior change, just code movement.

Signed-off-by: Eduardo Habkost <>
Signed-off-by: Marcelo Tosatti <>

7b46e5ce 10/31/2012 03:39 am Eduardo Habkost

i386: kvm: kvm_arch_get_supported_cpuid: move R_EDX hack outside of for loop

The for loop will become a separate function, so clean it up so it can
become independent from the bit hacking for R_EDX.

No behavior change1, just code movement.

[1] Well, only if the kernel returned CPUID leafs 1 or 0x80000001 as...

View revisions

Also available in: Atom