diff options
author | Huacai Chen <[email protected]> | 2020-05-23 15:56:38 +0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2020-06-04 13:51:33 -0400 |
commit | 7f2a83f1c2a941ebfee53f504ed5fdbc61cfb333 (patch) | |
tree | d9b831da059d45b689210a8f845a539b9f9c917e /scripts/gdb/linux/modules.py | |
parent | f21db3090de2c056728dee76d5fb66343aaf6dd1 (diff) |
KVM: MIPS: Add CPUCFG emulation for Loongson-3
Loongson-3 overrides lwc2 instructions to implement CPUCFG and CSR
read/write functions. These instructions all cause guest exit so CSR
doesn't benifit KVM guest (and there are always legacy methods to
provide the same functions as CSR). So, we only emulate CPUCFG and let
it return a reduced feature list (which means the virtual CPU doesn't
have any other advanced features, including CSR) in KVM.
Reviewed-by: Aleksandar Markovic <[email protected]>
Signed-off-by: Huacai Chen <[email protected]>
Co-developed-by: Jiaxun Yang <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions