aboutsummaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorJames Bottomley <jejb@linux.ibm.com>2021-02-04 11:39:38 -0800
committerPaolo Bonzini <pbonzini@redhat.com>2021-02-16 17:15:39 +0100
commit9617cddb72649f563eef8114648140b8c5607a71 (patch)
tree80cbd5166b878acb2125c5af35850e0a39b84435 /target
parent8ba4bca570ace1e60614a0808631a517cf5df67a (diff)
downloadqemu-9617cddb72649f563eef8114648140b8c5607a71.zip
qemu-9617cddb72649f563eef8114648140b8c5607a71.tar.gz
qemu-9617cddb72649f563eef8114648140b8c5607a71.tar.bz2
pc: add parser for OVMF reset block
OVMF is developing a mechanism for depositing a GUIDed table just below the known location of the reset vector. The table goes backwards in memory so all entries are of the form <data>|len|<GUID> Where <data> is arbtrary size and type, <len> is a uint16_t and describes the entire length of the entry from the beginning of the data to the end of the guid. The foot of the table is of this form and <len> for this case describes the entire size of the table. The table foot GUID is defined by OVMF as 96b582de-1fb2-45f7-baea-a366c55a082d and if the table is present this GUID is just below the reset vector, 48 bytes before the end of the firmware file. Add a parser for the ovmf reset block which takes a copy of the block, if the table foot guid is found, minus the footer and a function for later traversal to return the data area of any specified GUIDs. Signed-off-by: James Bottomley <jejb@linux.ibm.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-Id: <20210204193939.16617-2-jejb@linux.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target')
-rw-r--r--target/i386/sev_i386.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/target/i386/sev_i386.h b/target/i386/sev_i386.h
index 4db6960..bd9f00a 100644
--- a/target/i386/sev_i386.h
+++ b/target/i386/sev_i386.h
@@ -28,7 +28,6 @@
#define SEV_POLICY_DOMAIN 0x10
#define SEV_POLICY_SEV 0x20
-extern bool sev_enabled(void);
extern uint64_t sev_get_me_mask(void);
extern SevInfo *sev_get_info(void);
extern uint32_t sev_get_cbit_position(void);