Skip to contentSkip to conversation

code question xen/arch/x86/vmx.c

DISCUSSION Jerone Young 2 participants 3 messages Aug 11, 2005

lore
Share & tools
lore
#0 lore raw

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)
#1 lore raw
Quoted 11 lines · Jerone Young

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 ?

It's assigned to in the macro CASE_GET_REG_P.

-- Keir

#2 lore raw
Quoted 7 lines · Keir Fraser
Quoted 5 lines · Jerone Young

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;

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)