KVM: x86 emulator: introduce pio in string read ahead.
[linux-2.6-block.git] / arch / x86 / include / asm / kvm_emulate.h
index 7fda16f89cc8aac43fbbec14422995ececdcd0da..b5e12c58386055c496c59c30882021b30ec42b2f 100644 (file)
@@ -151,6 +151,12 @@ struct fetch_cache {
        unsigned long end;
 };
 
+struct read_cache {
+       u8 data[1024];
+       unsigned long pos;
+       unsigned long end;
+};
+
 struct decode_cache {
        u8 twobyte;
        u8 b;
@@ -178,6 +184,7 @@ struct decode_cache {
        void *modrm_ptr;
        unsigned long modrm_val;
        struct fetch_cache fetch;
+       struct read_cache io_read;
 };
 
 struct x86_emulate_ctxt {