KVM: x86 emulator: check io permissions only once for string pio
Do not recheck io permission on every iteration. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
@@ -224,6 +224,7 @@ struct x86_emulate_ctxt {
|
||||
int interruptibility;
|
||||
|
||||
bool restart; /* restart string instruction after writeback */
|
||||
bool perm_ok; /* do not check permissions if true */
|
||||
|
||||
int exception; /* exception that happens during emulation or -1 */
|
||||
u32 error_code; /* error code for exception */
|
||||
|
Reference in New Issue
Block a user