Skip to contentSkip to conversation

KVM x86 emulator design question

DISCUSSION Nadav Amit 2 participants 2 messages Apr 19, 2015 KVM

lore
Share & tools
lore

Nadav Amit

author
#0 lore raw

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

maintainer
#1 lore raw
Quoted 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_ops as 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