• Gonglei's avatar
    kvm: don't register smram_listener when smm is off · d870cfde
    Gonglei authored
    If the user set disable smm by '-machine smm=off', we
    should not register smram_listener so that we can
    avoid waster memory in kvm since the added sencond
    address space.
    
    Meanwhile we should assign value of the global kvm_state
    before invoking the kvm_arch_init(), because
    pc_machine_is_smm_enabled() may use it by kvm_has_mm().
    Signed-off-by: 's avatarGonglei <arei.gonglei@huawei.com>
    Message-Id: <1496316915-121196-1-git-send-email-arei.gonglei@huawei.com>
    Signed-off-by: 's avatarPaolo Bonzini <pbonzini@redhat.com>
    d870cfde
Name
Last commit
Last update
..
alpha Loading commit data...
arm Loading commit data...
cris Loading commit data...
hppa Loading commit data...
i386 Loading commit data...
lm32 Loading commit data...
m68k Loading commit data...
microblaze Loading commit data...
mips Loading commit data...
moxie Loading commit data...
nios2 Loading commit data...
openrisc Loading commit data...
ppc Loading commit data...
s390x Loading commit data...
sh4 Loading commit data...
sparc Loading commit data...
tilegx Loading commit data...
tricore Loading commit data...
unicore32 Loading commit data...
xtensa Loading commit data...