mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-29 21:49:05 +00:00
hv:Changed several APIs to void type
Since these APIs always return 0, change them to void type, vcpu_set_cr0() vmx_write_cr0() vcpu_set_cr4() vmx_write_cr4() kick_notification() tsc_deadline_handler() dmar_fault_handler() ptdev_interrupt_handler() Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
@@ -273,11 +273,11 @@ void vcpu_set_efer(struct vcpu *vcpu, uint64_t val);
|
||||
uint64_t vcpu_get_rflags(struct vcpu *vcpu);
|
||||
void vcpu_set_rflags(struct vcpu *vcpu, uint64_t val);
|
||||
uint64_t vcpu_get_cr0(struct vcpu *vcpu);
|
||||
int vcpu_set_cr0(struct vcpu *vcpu, uint64_t val);
|
||||
void vcpu_set_cr0(struct vcpu *vcpu, uint64_t val);
|
||||
uint64_t vcpu_get_cr2(struct vcpu *vcpu);
|
||||
void vcpu_set_cr2(struct vcpu *vcpu, uint64_t val);
|
||||
uint64_t vcpu_get_cr4(struct vcpu *vcpu);
|
||||
int vcpu_set_cr4(struct vcpu *vcpu, uint64_t val);
|
||||
void vcpu_set_cr4(struct vcpu *vcpu, uint64_t val);
|
||||
uint64_t vcpu_get_pat_ext(struct vcpu *vcpu);
|
||||
void vcpu_set_pat_ext(struct vcpu *vcpu, uint64_t val);
|
||||
|
||||
|
||||
@@ -446,8 +446,8 @@ int exec_vmptrld(void *addr);
|
||||
uint64_t vmx_rdmsr_pat(struct vcpu *vcpu);
|
||||
int vmx_wrmsr_pat(struct vcpu *vcpu, uint64_t value);
|
||||
|
||||
int vmx_write_cr0(struct vcpu *vcpu, uint64_t cr0);
|
||||
int vmx_write_cr4(struct vcpu *vcpu, uint64_t cr4);
|
||||
void vmx_write_cr0(struct vcpu *vcpu, uint64_t cr0);
|
||||
void vmx_write_cr4(struct vcpu *vcpu, uint64_t cr4);
|
||||
|
||||
static inline enum vm_cpu_mode get_vcpu_mode(const struct vcpu *vcpu)
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ enum irq_mode {
|
||||
IRQ_DEASSERT,
|
||||
};
|
||||
|
||||
typedef int (*irq_action_t)(uint32_t irq, void *priv_data);
|
||||
typedef void (*irq_action_t)(uint32_t irq, void *priv_data);
|
||||
|
||||
/* any field change in below required irq_lock protection with irqsave */
|
||||
struct irq_desc {
|
||||
|
||||
Reference in New Issue
Block a user