i386: implement MSR_SMI_COUNT for TCG
This is trivial, so just do it. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
990e0be260
commit
1d3db6bdbb
@ -447,6 +447,9 @@ void helper_rdmsr(CPUX86State *env)
|
|||||||
val = env->tsc_aux;
|
val = env->tsc_aux;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
case MSR_SMI_COUNT:
|
||||||
|
val = env->msr_smi_count;
|
||||||
|
break;
|
||||||
case MSR_MTRRphysBase(0):
|
case MSR_MTRRphysBase(0):
|
||||||
case MSR_MTRRphysBase(1):
|
case MSR_MTRRphysBase(1):
|
||||||
case MSR_MTRRphysBase(2):
|
case MSR_MTRRphysBase(2):
|
||||||
|
@ -54,6 +54,7 @@ void do_smm_enter(X86CPU *cpu)
|
|||||||
qemu_log_mask(CPU_LOG_INT, "SMM: enter\n");
|
qemu_log_mask(CPU_LOG_INT, "SMM: enter\n");
|
||||||
log_cpu_state_mask(CPU_LOG_INT, CPU(cpu), CPU_DUMP_CCOP);
|
log_cpu_state_mask(CPU_LOG_INT, CPU(cpu), CPU_DUMP_CCOP);
|
||||||
|
|
||||||
|
env->msr_smi_count++;
|
||||||
env->hflags |= HF_SMM_MASK;
|
env->hflags |= HF_SMM_MASK;
|
||||||
if (env->hflags2 & HF2_NMI_MASK) {
|
if (env->hflags2 & HF2_NMI_MASK) {
|
||||||
env->hflags2 |= HF2_SMM_INSIDE_NMI_MASK;
|
env->hflags2 |= HF2_SMM_INSIDE_NMI_MASK;
|
||||||
|
Loading…
Reference in New Issue
Block a user