Skip to contentSkip to conversation

DomU LDT emtpy

DISCUSSION david 1 participant 2 messages Jul 1, 2011

lore
Share & tools
lore

david

author
#0 lore raw

Hi there,

short question: should ldt_base in struct vcpu_guest_context_t contain the value of the LDTR of the current running process in DomU? It's always zero :(

I'm trying to get the value by using libxc:
vcpu_guest_context_any_t *ctxt = malloc(sizeof(vcpu_guest_context_any_t)); xc_vcpu_getcontext(xcinterface, domain, 0, ctxt); ctxt->c.ldt_base;

have you any idea how I can get the LDTR value from DomU in Dom0 by using libxc?

thanks,
david

author
#1 lore raw

Ok, i think I know what the problem is: LDT is 0 :) (winxp sp2). I have no idea why, but windbg shows me that there is just a 0 stored.

... how can the OS know the details about the segments of the running process? .. but I think is is the wrong mailinglist for such a question.

cya,
david

Quoted 23 lines · david

Hi there,

short question: should ldt_base in struct vcpu_guest_context_t contain the value of the LDTR of the current running process in DomU? It's always zero :(

I'm trying to get the value by using libxc:
vcpu_guest_context_any_t *ctxt = malloc(sizeof(vcpu_guest_context_any_t)); xc_vcpu_getcontext(xcinterface, domain, 0, ctxt); ctxt->c.ldt_base;

have you any idea how I can get the LDTR value from DomU in Dom0 by using libxc?

thanks,
david