Commit bc22512b authored by Yunhong Jiang's avatar Yunhong Jiang Committed by Paolo Bonzini

kvm: vmx: rename vmx_pre/post_block to pi_pre/post_block

Prepare to switch from preemption timer to hrtimer in the
vmx_pre/post_block. Current functions are only for posted interrupt,
rename them accordingly.
Signed-off-by: default avatarYunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent ce7a058a
...@@ -10706,7 +10706,7 @@ static void vmx_enable_log_dirty_pt_masked(struct kvm *kvm, ...@@ -10706,7 +10706,7 @@ static void vmx_enable_log_dirty_pt_masked(struct kvm *kvm,
* this case, return 1, otherwise, return 0. * this case, return 1, otherwise, return 0.
* *
*/ */
static int vmx_pre_block(struct kvm_vcpu *vcpu) static int pi_pre_block(struct kvm_vcpu *vcpu)
{ {
unsigned long flags; unsigned long flags;
unsigned int dest; unsigned int dest;
...@@ -10772,7 +10772,15 @@ static int vmx_pre_block(struct kvm_vcpu *vcpu) ...@@ -10772,7 +10772,15 @@ static int vmx_pre_block(struct kvm_vcpu *vcpu)
return 0; return 0;
} }
static void vmx_post_block(struct kvm_vcpu *vcpu) static int vmx_pre_block(struct kvm_vcpu *vcpu)
{
if (pi_pre_block(vcpu))
return 1;
return 0;
}
static void pi_post_block(struct kvm_vcpu *vcpu)
{ {
struct pi_desc *pi_desc = vcpu_to_pi_desc(vcpu); struct pi_desc *pi_desc = vcpu_to_pi_desc(vcpu);
struct pi_desc old, new; struct pi_desc old, new;
...@@ -10813,6 +10821,11 @@ static void vmx_post_block(struct kvm_vcpu *vcpu) ...@@ -10813,6 +10821,11 @@ static void vmx_post_block(struct kvm_vcpu *vcpu)
} }
} }
static void vmx_post_block(struct kvm_vcpu *vcpu)
{
pi_post_block(vcpu);
}
/* /*
* vmx_update_pi_irte - set IRTE for Posted-Interrupts * vmx_update_pi_irte - set IRTE for Posted-Interrupts
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment