|
| From: | Xiaoyao Li |
| Subject: | Re: [PULL 43/63] target/i386: Implement mc->kvm_type() to get VM type |
| Date: | Wed, 24 Apr 2024 16:36:59 +0800 |
| User-agent: | Mozilla Thunderbird |
On 4/23/2024 11:09 PM, Paolo Bonzini wrote:
+ +/** + * x86_confidential_guest_kvm_type: + * + * Calls #X86ConfidentialGuestClass.unplug callback of @plug_handler.
the comment needs to be updated: Calls #X86ConfidentialGuestClass.kvm_type() callback
+ */
+static inline int x86_confidential_guest_kvm_type(X86ConfidentialGuest *cg)
+{
+ X86ConfidentialGuestClass *klass = X86_CONFIDENTIAL_GUEST_GET_CLASS(cg);
+
+ if (klass->kvm_type) {
+ return klass->kvm_type(cg);
+ } else {
+ return 0;
+ }
+}
| [Prev in Thread] | Current Thread | [Next in Thread] |