Discussion:
[vbox-dev] about pVM
Johannes DeWitt
2014-05-22 15:14:43 UTC
Permalink
Hi, in the source code, everywhere PVM pVM is used to read values of the
current VM.
If i'm in a part of source code without an existent pointer to VM, how can
i get it?
Is there something like: PVM pVM = getCurrentPVM(); ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20140522/618e9d39/attachment.html
Ramshankar
2014-05-23 04:24:31 UTC
Permalink
You'll have to be more specific which part of the code you're in,
assuming you have a PVMCPU pointer, you can use:

PVM pVM = pVCpu->CTX_SUFF(pVM);

Which will get you the correct pVM pointer based on which context you
are in (R0, R3 or RC).

Regards,
Ram.
Post by Johannes DeWitt
Hi, in the source code, everywhere PVM pVM is used to read values of
the current VM.
If i'm in a part of source code without an existent pointer to VM, how
can i get it?
Is there something like: PVM pVM = getCurrentPVM(); ?
_______________________________________________
vbox-dev mailing list
vbox-dev at virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20140523/0411bbef/attachment.html
Loading...