[PATCH 1/2] replace drop_interrupt_shadow by set_interrupt_shadow

2009-05-12 Thread Glauber Costa
This patch replaces drop_interrupt_shadow with the more general set_interrupt_shadow, that can either drop or raise it, depending on its parameter. Signed-off-by: Glauber Costa glom...@redhat.com CC: H. Peter Anvin h...@zytor.com CC: Avi Kivity a...@redhat.com CC: Gleb Natapov g...@redhat.com ---

Re: [PATCH 1/2] replace drop_interrupt_shadow by set_interrupt_shadow

2009-05-12 Thread Avi Kivity
Glauber Costa wrote: This patch replaces drop_interrupt_shadow with the more general set_interrupt_shadow, that can either drop or raise it, depending on its parameter. } +static u32 svm_get_interrupt_shadow(struct kvm_vcpu *vcpu, int mask) +{ + struct vcpu_svm *svm = to_svm(vcpu); +

[PATCH 1/2] replace drop_interrupt_shadow by set_interrupt_shadow

2009-05-12 Thread Glauber Costa
This patch replaces drop_interrupt_shadow with the more general set_interrupt_shadow, that can either drop or raise it, depending on its parameter. Signed-off-by: Glauber Costa glom...@redhat.com CC: H. Peter Anvin h...@zytor.com CC: Avi Kivity a...@redhat.com CC: Gleb Natapov g...@redhat.com ---

Re: [PATCH 1/2] replace drop_interrupt_shadow by set_interrupt_shadow

2009-05-10 Thread Avi Kivity
Glauber Costa wrote: This patch replaces drop_interrupt_shadow with the more general set_interrupt_shadow, that can either drop or raise it, depending on its parameter. void (*skip_emulated_instruction)(struct kvm_vcpu *vcpu); + void (*set_interrupt_shadow)(struct kvm_vcpu *vcpu,

[PATCH 1/2] replace drop_interrupt_shadow by set_interrupt_shadow

2009-05-08 Thread Glauber Costa
This patch replaces drop_interrupt_shadow with the more general set_interrupt_shadow, that can either drop or raise it, depending on its parameter. Signed-off-by: Glauber Costa glom...@redhat.com CC: H. Peter Anvin h...@zytor.com CC: Avi Kivity a...@redhat.com CC: Gleb Natapov g...@redhat.com ---