|
@@ -4476,7 +4476,8 @@ mmio:
|
|
|
return X86EMUL_CONTINUE;
|
|
|
}
|
|
|
|
|
|
-int emulator_read_write(struct x86_emulate_ctxt *ctxt, unsigned long addr,
|
|
|
+static int emulator_read_write(struct x86_emulate_ctxt *ctxt,
|
|
|
+ unsigned long addr,
|
|
|
void *val, unsigned int bytes,
|
|
|
struct x86_exception *exception,
|
|
|
const struct read_write_emulator_ops *ops)
|
|
@@ -4539,7 +4540,7 @@ static int emulator_read_emulated(struct x86_emulate_ctxt *ctxt,
|
|
|
exception, &read_emultor);
|
|
|
}
|
|
|
|
|
|
-int emulator_write_emulated(struct x86_emulate_ctxt *ctxt,
|
|
|
+static int emulator_write_emulated(struct x86_emulate_ctxt *ctxt,
|
|
|
unsigned long addr,
|
|
|
const void *val,
|
|
|
unsigned int bytes,
|
|
@@ -4738,12 +4739,14 @@ static void emulator_wbinvd(struct x86_emulate_ctxt *ctxt)
|
|
|
kvm_emulate_wbinvd_noskip(emul_to_vcpu(ctxt));
|
|
|
}
|
|
|
|
|
|
-int emulator_get_dr(struct x86_emulate_ctxt *ctxt, int dr, unsigned long *dest)
|
|
|
+static int emulator_get_dr(struct x86_emulate_ctxt *ctxt, int dr,
|
|
|
+ unsigned long *dest)
|
|
|
{
|
|
|
return kvm_get_dr(emul_to_vcpu(ctxt), dr, dest);
|
|
|
}
|
|
|
|
|
|
-int emulator_set_dr(struct x86_emulate_ctxt *ctxt, int dr, unsigned long value)
|
|
|
+static int emulator_set_dr(struct x86_emulate_ctxt *ctxt, int dr,
|
|
|
+ unsigned long value)
|
|
|
{
|
|
|
|
|
|
return __kvm_set_dr(emul_to_vcpu(ctxt), dr, value);
|