Do not create RMRR entries for identity-mapped domains.
It does not make sense since identity mapping already provides the required mapping for RMRR ranges. More, since identity page tables do not reflect content of map entries for id domains, creating RMRR entries makes domain data inconsistent. Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
f923ae8090
commit
f08304b44f
@ -433,12 +433,14 @@ dmar_get_ctx_for_dev(struct dmar_unit *dmar, device_t dev, uint16_t rid,
|
||||
TD_PINNED_ASSERT;
|
||||
return (NULL);
|
||||
}
|
||||
if (!id_mapped) {
|
||||
error = domain_init_rmrr(domain1, dev);
|
||||
if (error != 0) {
|
||||
dmar_domain_destroy(domain1);
|
||||
TD_PINNED_ASSERT;
|
||||
return (NULL);
|
||||
}
|
||||
}
|
||||
ctx1 = dmar_ctx_alloc(domain1, rid);
|
||||
ctxp = dmar_map_ctx_entry(ctx1, &sf);
|
||||
DMAR_LOCK(dmar);
|
||||
|
Loading…
x
Reference in New Issue
Block a user