You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.9 KiB
56 lines
1.9 KiB
1 month ago
|
From 32899eb4fa5143b795b107de4857adce2cf1d434 Mon Sep 17 00:00:00 2001
|
||
|
From: Pankaj Gupta <pankaj.gupta@amd.com>
|
||
|
Date: Thu, 30 May 2024 06:16:38 -0500
|
||
|
Subject: [PATCH 075/100] i386/sev: Invoke launch_updata_data() for SNP class
|
||
|
|
||
|
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
|
||
|
RH-MergeRequest: 245: SEV-SNP support
|
||
|
RH-Jira: RHEL-39544
|
||
|
RH-Acked-by: Thomas Huth <thuth@redhat.com>
|
||
|
RH-Acked-by: Bandan Das <bdas@redhat.com>
|
||
|
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
|
||
|
RH-Commit: [75/91] 3520af5847f8dddb6d7fe7ad5feb308230f387b9 (bonzini/rhel-qemu-kvm)
|
||
|
|
||
|
Invoke as sev_snp_launch_update_data() for SNP object.
|
||
|
|
||
|
Signed-off-by: Pankaj Gupta <pankaj.gupta@amd.com>
|
||
|
Message-ID: <20240530111643.1091816-27-pankaj.gupta@amd.com>
|
||
|
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
||
|
(cherry picked from commit 0765d136eba400ad1cb7cae18438bb10eace64dc)
|
||
|
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
||
|
---
|
||
|
target/i386/sev.c | 10 ++++++++++
|
||
|
1 file changed, 10 insertions(+)
|
||
|
|
||
|
diff --git a/target/i386/sev.c b/target/i386/sev.c
|
||
|
index 8834cf9441..eaf5fc6c6b 100644
|
||
|
--- a/target/i386/sev.c
|
||
|
+++ b/target/i386/sev.c
|
||
|
@@ -1091,6 +1091,15 @@ snp_launch_update_data(uint64_t gpa, void *hva,
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
+static int
|
||
|
+sev_snp_launch_update_data(SevCommonState *sev_common, hwaddr gpa,
|
||
|
+ uint8_t *ptr, uint64_t len)
|
||
|
+{
|
||
|
+ int ret = snp_launch_update_data(gpa, ptr, len,
|
||
|
+ KVM_SEV_SNP_PAGE_TYPE_NORMAL);
|
||
|
+ return ret;
|
||
|
+}
|
||
|
+
|
||
|
static int
|
||
|
sev_snp_cpuid_info_fill(SnpCpuidInfo *snp_cpuid_info,
|
||
|
const KvmCpuidInfo *kvm_cpuid_info)
|
||
|
@@ -2216,6 +2225,7 @@ sev_snp_guest_class_init(ObjectClass *oc, void *data)
|
||
|
|
||
|
klass->launch_start = sev_snp_launch_start;
|
||
|
klass->launch_finish = sev_snp_launch_finish;
|
||
|
+ klass->launch_update_data = sev_snp_launch_update_data;
|
||
|
klass->kvm_init = sev_snp_kvm_init;
|
||
|
x86_klass->kvm_type = sev_snp_kvm_type;
|
||
|
|
||
|
--
|
||
|
2.39.3
|
||
|
|