]> git.ipfire.org Git - thirdparty/qemu.git/commit
kvm/i386: replace identity_base variable with a constant
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 4 Sep 2024 12:29:00 +0000 (14:29 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 3 Oct 2024 17:33:23 +0000 (19:33 +0200)
commitdc44854978f3d2fba7f57db07768e32192aafc32
tree54c55845b7d8340aac30d90334f1d5ee06326279
parent0cc42e63bb54fe2a5a1e76f2d1fa442f9c361c1c
kvm/i386: replace identity_base variable with a constant

identity_base variable is first initialzied to address 0xfffbc000 and then
kvm_vm_set_identity_map_addr() overrides this value to address 0xfeffc000.
The initial address to which the variable was initialized was never used. Clean
everything up, placing 0xfeffc000 in a preprocessor constant.

Reported-by: Ani Sinha <anisinha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/kvm/kvm.c