diff options
| author | Gonglei <arei.gonglei@huawei.com> | 2017-06-01 19:35:15 +0800 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-06-07 18:22:02 +0200 |
| commit | d870cfdea5b5fc7934cacc9786f185d741eab308 (patch) | |
| tree | c420e575846558480aee8431310b4d9192a36629 /hw/net/virtio-net.c | |
| parent | 6bdcc018a6ed760b9dfe43539124e420aed83092 (diff) | |
| download | focaccia-qemu-d870cfdea5b5fc7934cacc9786f185d741eab308.tar.gz focaccia-qemu-d870cfdea5b5fc7934cacc9786f185d741eab308.zip | |
kvm: don't register smram_listener when smm is off
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: Gonglei <arei.gonglei@huawei.com> Message-Id: <1496316915-121196-1-git-send-email-arei.gonglei@huawei.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions