]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: x86: Do not set access bit on accessed segments
authorNadav Amit <namit@cs.technion.ac.il>
Thu, 25 Dec 2014 00:52:22 +0000 (02:52 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 8 Jan 2015 21:48:07 +0000 (22:48 +0100)
commite2cefa746e7e2a1104931d411b6f5de159d98ec6
tree4f0bfcc2ac19ae66b6b92e06ed3ad24b1971911d
parentab708099a0617e2c37b26d9ecbb373456057ba9b
KVM: x86: Do not set access bit on accessed segments

When segment is loaded, the segment access bit is set unconditionally.  In
fact, it should be set conditionally, based on whether the segment had the
accessed bit set before. In addition, it can improve performance.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c