KVM: VMX: cleanup init_rmode_identity_map()
authorDavid Hildenbrand <david@redhat.com>
Thu, 24 Aug 2017 18:51:34 +0000 (20:51 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Oct 2017 12:01:53 +0000 (14:01 +0200)
commitd8a6e365b208a36f9e789ee50c55096b71367431
treef747cfcc6b982452d4c4707138cfb1dd86607755
parent1c13bffd946ebb75d7b18e57b2984d581b6b0859
KVM: VMX: cleanup init_rmode_identity_map()

No need for another enable_ept check. kvm->arch.ept_identity_map_addr
only has to be inititalized once. Having alloc_identity_pagetable() is
overkill and dropping BUG_ONs is always nice.

Reviewed-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/vmx.c