<div>Hi All,</div>
<div> </div>
<div>The comments for the file /drivers/lguest/lguest.c mentions:</div>
<div> </div>
<div>"One way would be to put the "irq_enabled" field in a page by itself, and have the Host write-protect it when an interrupt comes in when irqs are disabled.<br> There will then be a page fault as soon as interrupts are re-enabled. "
</div>
<div> </div>
<div>I want to do something similar, nothing related to interrupts ,but I would like to:</div>
<div> </div>
<div>1. Store some data (variable or constant) in a host protected or hypervisor protected memory area, maybe in a page by itself.</div>
<div> </div>
<div>2. If the guest needs the value of this variable, it must make a hypercall and the host must return the value. For this I would like to add a new hypercall.</div>
<div> Basically, I don't want the guest getting direct access to that variable, i.e. it should not be stored in the guest's memory address space.</div>
<div> </div>
<div>I am still new to lguest. It would be great if you could let me know if the above steps can be achieved by modifying lguest and the directions for the same.</div>
<div> </div>
<div>Thanks and Regards,</div>
<div>Sujit</div>