Xiaoyao Li
edafba3921
target/i386: Implement mc->kvm_type() to get VM type
...
TDX VM requires VM type KVM_X86_TDX_VM to be passed to
kvm_ioctl(KVM_CREATE_VM). Hence implement mc->kvm_type() for i386
architecture.
If tdx-guest object is specified to confidential-guest-support, like,
qemu -machine ...,confidential-guest-support=tdx0 \
-object tdx-guest,id=tdx0,...
it parses VM type as KVM_X86_TDX_VM. Otherwise, it's KVM_X86_DEFAULT_VM.
Also store the vm_type in MachineState for other code to query what the
VM type is.
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com >
Acked-by: Gerd Hoffmann <kraxel@redhat.com >
---
Changes in v4:
- fix the build error of kvm_get_vm_type() when --disable-kvm;
2024-07-25 12:03:11 +02:00
..
2023-10-20 08:51:41 +02:00
2024-03-13 21:52:34 +03:00
2023-06-20 10:01:30 +02:00
2023-11-03 09:20:31 +01:00
2024-07-25 11:56:55 +02:00
2024-06-20 10:03:40 +03:00
2023-11-28 14:27:12 +01:00
2024-07-24 18:23:45 +02:00
2024-04-10 20:32:12 +03:00
2024-07-25 11:57:59 +02:00
2023-09-21 11:31:16 +03:00
2021-05-02 17:24:51 +02:00
2024-02-14 21:42:04 +03:00
2024-06-20 10:04:36 +03:00
2024-05-02 13:16:29 +03:00
2023-08-22 17:30:59 +01:00
2024-02-22 18:45:41 +03:00
2023-11-07 09:41:52 +08:00
2023-11-07 13:08:49 +01:00
2024-07-25 12:03:11 +02:00
2023-11-28 14:56:32 +01:00
2023-11-27 15:27:46 +00:00
2024-06-05 13:00:16 +03:00
2023-06-20 10:01:30 +02:00
2023-11-01 16:13:58 +01:00
2024-04-16 17:27:39 +03:00
2024-05-27 07:49:58 +03:00
2023-11-20 15:30:59 +00:00
2023-11-15 11:59:54 +03:00
2023-09-29 10:07:16 +02:00
2023-11-13 16:56:06 +01:00
2024-07-25 11:57:17 +02:00
2024-06-11 10:09:45 +03:00
2023-11-23 14:10:04 +00:00
2023-09-08 13:08:51 +03:00
2024-07-12 21:50:41 +03:00
2024-07-25 11:57:28 +02:00
2023-03-22 15:06:57 +00:00
2024-03-13 21:52:34 +03:00
2023-11-07 03:39:11 -05:00
2024-07-25 11:57:38 +02:00
2023-10-27 12:48:57 +01:00
2024-07-25 11:56:45 +02:00
2023-10-21 15:00:22 +03:00
2024-05-13 09:03:37 +03:00
2024-03-27 13:04:06 +03:00
2024-03-09 21:42:00 +03:00
2023-11-10 18:19:13 +01:00
2024-07-25 11:36:40 +02:00
2024-07-24 18:23:46 +02:00
2024-04-10 20:32:12 +03:00
2023-11-07 13:08:49 +01:00
2023-09-21 11:31:16 +03:00
2024-07-24 18:23:45 +02:00
2024-07-25 11:57:06 +02:00
2024-07-25 11:57:06 +02:00
2023-11-27 15:38:43 +00:00
2023-11-01 16:13:58 +01:00
2023-09-20 07:54:34 +03:00
2023-09-29 08:28:02 +02:00
2024-05-02 13:03:01 +03:00
2024-03-01 18:59:21 +03:00
2024-01-29 23:08:46 +03:00
2024-07-25 11:56:32 +02:00
2023-11-15 11:09:17 +03:00
2024-03-13 20:15:59 +03:00
2023-11-07 08:54:20 +00:00
2023-09-08 13:08:52 +03:00
2023-09-07 14:01:29 -04:00
2023-09-07 14:01:29 -04:00