Skip to contentSkip to conversation

Questions about to dos in emulate.c

DISCUSSION Paolo Bonzini 1 participant 1 message Jan 12, 2015 1 message not in the archive KVM

lore
Share & tools
lore

Paolo Bonzini

author maintainer
#1 lore raw
In reply to a message not in the archive
Quoted 5 lines · nick

Greetings Again Everyone,
I have a few questions about fix mes in emulate.c. They are listed in numerical order below.
1. For __emulate_int_real somebody stated we need limit checks. What checks are needed for my information.

These are written in the manual as

IF stack not large enough for a 6-byte return information

     THEN #SS; FI;
Quoted 3 lines

2. Secondly,about the function, emulate_iret_real are what do you mean by stack limit checks and if possible what parts of the stacks for either guest(s) or hosts we need to check.

Same here:

IF top 6 bytes of stack are not within stack limits

     THEN #SS; FI;

Paolo

Quoted 5 lines

In addition if you need help with other work, please don't feel free to contact me.
Thanks and Regards,
Nick