I am new to virtualization and trying to understand basic idea behind the instuction set emulation.
I am following the e500 core instruction set emulation .
http://www.linux-kvm.org/page/E500_virtual_CPU_specification
This particular "kvmppc_core_emulate_mtspr()" in kernel code is emulating the mtspr instruction of powerpc core.
Would want to know what exactly we are doing inside this function to emulate mtspr and why only two instructions(mtspr and mfspr) are emulated as per e500_emulate.c