summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlauber Costa <glommer@redhat.com>2009-10-09 15:03:15 -0300
committerMarcelo Tosatti <mtosatti@redhat.com>2009-10-13 14:01:13 -0300
commitb95ccbd8e7a2ac1bb816453706a63fa291a85967 (patch)
tree418e3d203fcfd02d9f1f742b6c19d87225b5c070 /qemu-kvm-x86.c
parentmake some functions static (diff)
downloadqemu-kvm-b95ccbd8e7a2ac1bb816453706a63fa291a85967.tar.gz
qemu-kvm-b95ccbd8e7a2ac1bb816453706a63fa291a85967.tar.bz2
qemu-kvm-b95ccbd8e7a2ac1bb816453706a63fa291a85967.zip
use env as parameter for functions that access kvm_run
Convert header of public functions that access kvm_run, so they can use CPUState version instead. Signed-off-by: Glauber Costa <glommer@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'qemu-kvm-x86.c')
-rw-r--r--qemu-kvm-x86.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c
index 10bd53036..c5455d7d2 100644
--- a/qemu-kvm-x86.c
+++ b/qemu-kvm-x86.c
@@ -1379,7 +1379,7 @@ void kvm_arch_post_kvm_run(void *opaque, CPUState *env)
{
cpu_single_env = env;
- env->eflags = kvm_get_interrupt_flag(env->kvm_cpu_state.vcpu_ctx)
+ env->eflags = kvm_get_interrupt_flag(env)
? env->eflags | IF_MASK : env->eflags & ~IF_MASK;
cpu_set_apic_tpr(env, kvm_get_cr8(env));
@@ -1400,7 +1400,7 @@ int kvm_arch_try_push_interrupts(void *opaque)
CPUState *env = cpu_single_env;
int r, irq;
- if (kvm_is_ready_for_interrupt_injection(env->kvm_cpu_state.vcpu_ctx) &&
+ if (kvm_is_ready_for_interrupt_injection(env) &&
(env->interrupt_request & CPU_INTERRUPT_HARD) &&
(env->eflags & IF_MASK)) {
env->interrupt_request &= ~CPU_INTERRUPT_HARD;