commit | 17052f16a51af6d8f4b7eee0631af675ac204f65 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Tue May 06 16:33:01 2014 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Fri Jul 11 09:14:03 2014 +0200 |
tree | f2fa2f60c38e38ed175897b419ddb7b2df7901b2 | |
parent | 9506d57de3bc8277a4e306e0d439976862f68c6d [diff] [blame] |
KVM: emulate: put pointers in the fetch_cache This simplifies the code a bit, especially the overflow checks. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h index fcf58cd..eb18117 100644 --- a/arch/x86/include/asm/kvm_emulate.h +++ b/arch/x86/include/asm/kvm_emulate.h
@@ -242,8 +242,8 @@ struct fetch_cache { u8 data[15]; - unsigned long start; - unsigned long end; + u8 *ptr; + u8 *end; }; struct read_cache {