diff options
author | Tianrui Zhao <[email protected]> | 2023-10-02 10:01:27 +0800 |
---|---|---|
committer | Huacai Chen <[email protected]> | 2023-10-02 10:01:27 +0800 |
commit | 2fc3bd86db4b6f6992d4b459879a17b2ae6b2b3d (patch) | |
tree | 4042d4d8848c5b5dc71dce682ec808bd3b2a390b /lib/test_fortify/write_overflow-strncpy.c | |
parent | dfe3dc07fa68f2be1bf8af98656e674e9636d965 (diff) |
LoongArch: KVM: Implement basic vcpu interfaces
Implement basic vcpu interfaces, including:
1, vcpu create and destroy interface, saving info into vcpu arch
structure such as vcpu exception entrance, vcpu enter guest pointer,
etc. Init vcpu timer and set address translation mode when vcpu create.
2, vcpu run interface, handling mmio, iocsr reading fault and deliver
interrupt, lose fpu before vcpu enter guest.
3, vcpu handle exit interface, getting the exit code by ESTAT register
and using kvm exception vector to handle it.
Reviewed-by: Bibo Mao <[email protected]>
Tested-by: Huacai Chen <[email protected]>
Signed-off-by: Tianrui Zhao <[email protected]>
Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions