mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-07-16 08:26:41 +00:00
HV: Clean up the unused or legacy code-like comment
Removed comment out unused code in vmexit.c, sprintf.c and vmcall.c Minor fix in vmx.c to prevent Misra-c consider it as a piece of code. Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
parent
c776137169
commit
7aec6799a1
@ -24,10 +24,6 @@ int vmcall_vmexit_handler(struct vcpu *vcpu)
|
||||
uint64_t param1 = cur_context->guest_cpu_regs.regs.rdi;
|
||||
/* hypercall param2 from guest*/
|
||||
uint64_t param2 = cur_context->guest_cpu_regs.regs.rsi;
|
||||
/* hypercall param3 from guest, reserved*/
|
||||
/* uint64_t param3 = cur_context->guest_cpu_regs.regs.rdx; */
|
||||
/* hypercall param4 from guest, reserved*/
|
||||
/* uint64_t param4 = cur_context->guest_cpu_regs.regs.rcx; */
|
||||
|
||||
if (!is_hypercall_from_ring0()) {
|
||||
pr_err("hypercall is only allowed from RING-0!\n");
|
||||
|
@ -236,8 +236,6 @@ static int unhandled_vmexit_handler(struct vcpu *vcpu)
|
||||
pr_err("Exit qualification: 0x%016llx ",
|
||||
exec_vmread(VMX_EXIT_QUALIFICATION));
|
||||
|
||||
/* while(1); */
|
||||
|
||||
TRACE_2L(TRACE_VMEXIT_UNHANDLED, vcpu->arch_vcpu.exit_reason, 0UL);
|
||||
|
||||
return 0;
|
||||
|
@ -635,7 +635,7 @@ static void init_guest_state(struct vcpu *vcpu)
|
||||
}
|
||||
} else {
|
||||
/* AP is initialized with real mode
|
||||
* and CS value is left shift 8 bits from sipi vector;
|
||||
* and CS value is left shift 8 bits from sipi vector.
|
||||
*/
|
||||
sel = vcpu->arch_vcpu.sipi_vector << 8U;
|
||||
base = sel << 4U;
|
||||
|
@ -608,10 +608,6 @@ int do_print(const char *fmt, struct print_param *param,
|
||||
/* pointer argument */
|
||||
else if (ch == 'p') {
|
||||
param->vars.flags |= PRINT_FLAG_ALTERNATE_FORM;
|
||||
/* XXXCRG res=print_pow2(param,
|
||||
* (uint32_t) __builtin_va_arg(args,
|
||||
* void *),4);
|
||||
*/
|
||||
res = print_pow2(param, (uint64_t)
|
||||
__builtin_va_arg(args, void *), 4U);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user