KVM x86 emulator design question
Hi,
I would appreciate if someone briefly explains the design choice that leaded to separating the x86 emulator from the rest of x86 code, i.e., making it oblivious to VCPUs and using the x86_emulate_ops as an interface.
Thanks,
Nadav
Paolo Bonzini
maintainerQuoted 5 lines · Nadav Amit
Hi,
I would appreciate if someone briefly explains the design choice that leaded to separating the x86 emulator from the rest of x86 code, i.e., making it oblivious to VCPUs and using the
x86_emulate_opsas an interface.
I think the reason was to make it as easy as possible to use it in usermode code, for example to write unit tests for it.
Paolo