Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148982437
D40461.id122928.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
625 B
Referenced Files
None
Subscribers
None
D40461.id122928.diff
View Options
diff --git a/usr.sbin/bhyve/tpm_intf_crb.c b/usr.sbin/bhyve/tpm_intf_crb.c
--- a/usr.sbin/bhyve/tpm_intf_crb.c
+++ b/usr.sbin/bhyve/tpm_intf_crb.c
@@ -485,6 +485,8 @@
tpm_crb_deinit(void *sc)
{
struct tpm_crb *crb;
+ struct mem_range mr;
+ char mr_name[NAME_MAX];
if (sc == NULL) {
return;
@@ -495,6 +497,13 @@
crb->closing = true;
pthread_join(crb->thread, NULL);
+ bzero(&mr, sizeof(struct mem_range));
+ strncpy(mr_name, "tpm_intf_crb", sizeof(mr_name));
+ mr.name = mr_name;
+ mr.base = TPM_CRB_ADDRESS;
+ mr.size = TPM_CRB_LOCALITIES_MAX * TPM_CRB_REGS_SIZE;
+ unregister_mem(&mr);
+
free(crb);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 22, 12:47 PM (2 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30122346
Default Alt Text
D40461.id122928.diff (625 B)
Attached To
Mode
D40461: bhyve: trap crb register of tpm devices
Attached
Detach File
Event Timeline
Log In to Comment