[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 02/15] x86/emul: Simplfy emulation state setup
At 15:38 +0000 on 23 Nov (1479915525), Andrew Cooper wrote: > The current code to set up emulation state is ad-hoc and error prone. > > * Consistently zero all emulation state structures. > * Avoid explicitly initialising some state to 0. > * Explicitly identify all input and output state in x86_emulate_ctxt. This > involves rearanging some fields. > * Have x86_decode() explicitly initalise all output state at its start. > > In addition, move the calculation of hvmemul_ctxt->ctxt.swint_emulate from > _hvm_emulate_one() to hvm_emulate_init_once(), as it doesn't need > recalculating for each instruction. > > Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Shadow code changes Acked-by: Tim Deegan <tim@xxxxxxx> _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |