code question xen/arch/x86/vmx.c
Quoted 11 lines · Jerone Young
In function
vmx_dr_accessinxen/arch/x86/vmx.cthere is a long pointer named "reg_p".reg_pis assigned tov->arch.guest_context.debugreg[reg] =
*reg_p;in the switch case
TYPE_MOV_TO_DR.yet it has no assignment before this? What is the intent of
reg_p?It also is assigned in the switch case TYPE_MOVE_FROM_DR...yet it's not used for anything ?
It's assigned to in the macro CASE_GET_REG_P.
-- Keir
In function vmx_dr_access in xen/arch/x86/vmx.c there is a long pointer named "reg_p". reg_p is assigned to
v->arch.guest_context.debugreg[reg] = *reg_p;
in the switch case TYPE_MOV_TO_DR.
yet it has no assignment before this? What is the intent of reg_p?
It also is assigned in the switch case TYPE_MOVE_FROM_DR...yet it's not used for anything ?
Signature · 4 lines
Jerone Young IBM Linux Technology Center [email protected] 512-838-1157 (T/L: 678-1157)
Quoted 7 lines · Keir Fraser
Quoted 5 lines · Jerone Young
In function
vmx_dr_accessinxen/arch/x86/vmx.cthere is a long pointer named "reg_p".reg_pis assigned tov->arch.guest_context.debugreg[reg] =
*reg_p;
Quoted 8 lines
Quoted 6 lines
in the switch case
TYPE_MOV_TO_DR.yet it has no assignment before this? What is the intent of
reg_p?It also is assigned in the switch case TYPE_MOVE_FROM_DR...yet it's not used for anything ?
It's assigned to in the macro
CASE_GET_REG_P.
doh! it's sitting right above the function :-)
Quoted 9 lines
-- Keir
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Signature · 4 lines
Jerone Young IBM Linux Technology Center [email protected] 512-838-1157 (T/L: 678-1157)