mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 07:35:31 +00:00
hv: some coding style fixes
Fix issues reported by checkpatch.pl Tracked-On: #5917 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
This commit is contained in:
@@ -61,8 +61,7 @@ static inline const struct vcpuid_entry *find_vcpuid_entry(const struct acrn_vcp
|
||||
|
||||
if ((leaf & 0x80000000U) != 0U) {
|
||||
limit = vm->vcpuid_xlevel;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
limit = vm->vcpuid_level;
|
||||
}
|
||||
|
||||
@@ -90,7 +89,7 @@ static inline int32_t set_vcpuid_entry(struct acrn_vm *vm,
|
||||
|
||||
if (vm->vcpuid_entry_nr == MAX_VM_VCPUID_ENTRIES) {
|
||||
pr_err("%s, vcpuid entry over MAX_VM_VCPUID_ENTRIES(%u)\n", __func__, MAX_VM_VCPUID_ENTRIES);
|
||||
ret = -ENOMEM;
|
||||
ret = -ENOMEM;
|
||||
} else {
|
||||
tmp = &vm->vcpuid_entries[vm->vcpuid_entry_nr];
|
||||
vm->vcpuid_entry_nr++;
|
||||
@@ -248,7 +247,7 @@ static int32_t set_vcpuid_sgx(struct acrn_vm *vm)
|
||||
|
||||
if (is_vsgx_supported(vm->vm_id)) {
|
||||
struct vcpuid_entry entry;
|
||||
struct epc_map* maps;
|
||||
struct epc_map *maps;
|
||||
uint32_t mid;
|
||||
uint64_t size = 0;
|
||||
/* init cpuid.12h.0h */
|
||||
|
||||
@@ -234,8 +234,8 @@ static const uint32_t unsupported_msrs[NUM_UNSUPPORTED_MSRS] = {
|
||||
|
||||
/*
|
||||
* CET disabled:
|
||||
* CPUID.07H.ECX[7] (CPUID_ECX_CET_SS)
|
||||
* CPUID.07H.EDX[20] (CPUID_ECX_CET_IBT)
|
||||
* CPUID.07H.ECX[7] (CPUID_ECX_CET_SS)
|
||||
* CPUID.07H.EDX[20] (CPUID_ECX_CET_IBT)
|
||||
*/
|
||||
MSR_IA32_U_CET,
|
||||
MSR_IA32_S_CET,
|
||||
@@ -699,7 +699,7 @@ static void set_guest_tsc_adjust(struct acrn_vcpu *vcpu, uint64_t tsc_adjust)
|
||||
/* IA32_TSC_ADJUST is supposed to carry the value it's written to */
|
||||
vcpu_set_guest_msr(vcpu, MSR_IA32_TSC_ADJUST, tsc_adjust);
|
||||
|
||||
set_tsc_msr_interception(vcpu, (tsc_offset + tsc_adjust_delta ) != 0UL);
|
||||
set_tsc_msr_interception(vcpu, (tsc_offset + tsc_adjust_delta) != 0UL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user