Skip to contentSkip to conversation

Large struct reference in Hypercall

DISCUSSION Tej 1 participant 1 message Jan 20, 2009

lore
Share & tools
lore

Tej

author
#0 lore raw

Hey all

I am trying a simple hypercall between dom0 and Xen hypervisor (__hypercall2). I am passing arg to hypercall as pointer to a strucutre.
As i increase the size of struct more then some fixed value say 16000bytes then machine reboots at following code

code of copy_from_guest:
const typeof(*(ptr)) *_s = (hnd).p; ............<= this location
typeof(*(ptr)) *_d = (ptr); raw_copy_from_guest(_d, _s+(off), sizeof(*_d)*(nr));

i not getting the the reference of this .p element in hnd (which is basically a struct passed from dom0).

any clue? or i am missing something?
thanks for any help.