Statistics
| Branch: | Revision:

root / target-i386 @ 4d5b97da

Name Size
Makefile.objs 394 Bytes
TODO 1 kB
arch_dump.c 12 kB
arch_memory_mapping.c 7.9 kB
cc_helper.c 8.9 kB
cc_helper_template.h 7 kB
cpu-qom.h 1.9 kB
cpu.c 66.7 kB
cpu.h 36 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 62.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.7 kB
translate.c 265.4 kB

Latest revisions

# Date Author Comment
a9321a4d 10/01/2012 04:04 pm H. Peter Anvin

x86: Implement SMEP and SMAP

This patch implements Supervisor Mode Execution Prevention (SMEP) and
Supervisor Mode Access Prevention (SMAP) for x86. The purpose of the
patch, obviously, is to help kernel developers debug the support for
those features.
...

4a19e505 09/30/2012 02:11 pm Eduardo Habkost

i386: -cpu help: remove reference to specific CPUID leaves/registers

The -cpu configuration interface is based on a list of feature names or
properties, on a single namespace, so there's no need to mention on
which CPUID leaf/register each flag is located....

3b671a40 09/30/2012 02:11 pm Eduardo Habkost

i386: cpu: eliminate duplicate feature names

Instead of having duplicate feature names on the ext2_feature array for
the AMD feature bit aliases, we keep the feature names only on the
feature_name[] array, and copy the corresponding bits to
cpuid_ext2_features in case the CPU vendor is AMD....

60032ac0 09/30/2012 02:11 pm Eduardo Habkost

i386: cpu: replace EXT2_FEATURE_MASK with CPUID_EXT2_AMD_ALIASES

Both constants have the same value, but CPUID_EXT2_AMD_ALIASES is
defined without using magic numbers.

Signed-off-by: Eduardo Habkost <>
Reviewed-by: Don Slutz <>...

8fad4b44 09/30/2012 02:11 pm Eduardo Habkost

i386: kvm: use a #define for the set of alias feature bits

Instea of using a hardcoded hex constant, define CPUID_EXT2_AMD_ALIASES
as the set of CPUID[8000_0001].EDX bits that on AMD are the same as the
bits of CPUID1.EDX.

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

b1f46793 09/30/2012 02:10 pm Eduardo Habkost

i386: kvm: bit 10 of CPUID[8000_0001].EDX is reserved

Bit 10 of CPUID[8000_0001].EDX is not defined as an alias of
CPUID1.EDX10, so do not duplicate it on
kvm_arch_get_supported_cpuid().

Signed-off-by: Eduardo Habkost <>
Reviewed-By: Igor Mammedov <>...

fdefe51c 09/27/2012 10:38 pm Richard Henderson

Emit debug_insn for CPU_LOG_TB_OP_OPT as well.

For all targets that currently call tcg_gen_debug_insn_start,
add CPU_LOG_TB_OP_OPT to the condition that gates it.

This is useful for comparing optimization dumps, when the
pre-optimization dump is merely noise....

3988475b 09/26/2012 12:06 am Anthony Liguori

Merge remote-tracking branch 'stefanha/trivial-patches' into staging

  • stefanha/trivial-patches:
    w32: Always use standard instead of native format strings
    net/socket: Fix compiler warning (regression for MinGW)
    linux-user: Remove redundant null check and replace free by g_free...
2e84849a 09/23/2012 09:11 am Don Slutz

target-i386: Allow tsc-frequency to be larger then 2.147G

The check using INT_MAX (2147483647) is wrong in this case.

Signed-off-by: Fred Oliveira <>
Signed-off-by: Don Slutz <>
Signed-off-by: Stefan Hajnoczi <>

473955e5 09/21/2012 04:12 pm Andreas Färber

target-i386: Drop unused setscalar() macro

It was only used by now removed setfeatures() function.

Suggested-by: Igor Mammedov <>
Signed-off-by: Andreas Färber <>

View revisions

Also available in: Atom