Xiaoyao Li
9dc75f6117
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-02-29 00:31:57 -05:00
..
2024-01-04 19:55:20 +00:00
2024-02-20 20:34:21 +03:00
2023-12-29 11:17:30 +11:00
2024-02-02 16:23:47 +00:00
2024-02-27 15:34:41 +00:00
2024-01-05 16:20:15 +01:00
2023-11-28 14:27:12 +01:00
2024-02-27 13:01:41 +00:00
2024-02-15 16:58:46 +01:00
2024-02-29 00:31:57 -05:00
2024-01-26 11:30:49 +00:00
2024-02-02 16:23:47 +00:00
2024-02-14 06:09:33 -05:00
2024-02-27 09:37:25 +01:00
2024-02-15 16:58:46 +01:00
2024-02-01 08:33:18 +01:00
2024-02-27 13:01:42 +00:00
2024-02-27 09:37:13 +01:00
2024-02-04 17:42:03 +01:00
2024-02-22 12:47:40 +01:00
2024-02-29 00:31:57 -05:00
2024-02-28 00:23:39 +01:00
2024-02-22 12:47:35 +01:00
2024-02-15 16:58:46 +01:00
2023-12-29 11:17:30 +11:00
2023-12-29 11:17:30 +11:00
2024-02-22 15:44:29 +00:00
2024-02-02 16:23:47 +00:00
2024-02-02 16:23:47 +00:00
2024-02-14 06:09:33 -05:00
2024-02-02 16:23:47 +00:00
2024-02-27 09:37:11 +01:00
2024-02-27 15:24:20 +00:00
2024-02-11 13:20:23 +01:00
2023-11-23 14:10:04 +00:00
2024-02-27 09:36:39 +01:00
2024-02-27 09:37:30 +01:00
2024-02-22 12:47:40 +01:00
2024-02-02 16:23:47 +00:00
2024-02-02 18:56:32 +00:00
2024-02-14 06:09:33 -05:00
2024-02-22 12:47:40 +01:00
2023-10-27 12:48:57 +01:00
2024-02-29 00:28:45 -05:00
2023-10-21 15:00:22 +03:00
2024-01-08 10:45:43 -05:00
2024-02-09 20:43:14 +10:00
2024-02-27 13:01:41 +00:00
2024-02-15 16:58:46 +01:00
2024-02-29 00:28:45 -05:00
2024-02-13 19:37:28 +00:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2024-02-27 09:37:25 +01:00
2024-02-14 06:09:33 -05:00
2024-02-22 12:47:40 +01:00
2024-02-15 16:58:46 +01:00
2024-02-27 13:01:41 +00:00
2024-02-27 13:01:41 +00:00
2023-12-30 07:38:06 +11:00
2024-02-22 12:47:40 +01:00
2023-12-05 13:57:18 +09:00
2024-02-27 09:37:27 +01:00
2024-01-29 08:26:25 +01:00
2024-02-14 06:09:32 -05:00
2023-12-30 07:38:06 +11:00
2024-02-02 18:56:32 +00:00
2024-02-02 16:23:47 +00:00
2024-02-02 16:23:47 +00:00
2024-02-01 08:13:30 +01:00
2024-02-01 08:13:30 +01:00