Store decoded MSI info instead of full capability in PciFeatureInfo

This commit is contained in:
bjorn3
2024-06-11 16:47:08 +02:00
parent 7a67110109
commit 4f583b1cfb
5 changed files with 24 additions and 10 deletions
+5 -1
View File
@@ -199,7 +199,11 @@ impl DriverHandler {
.iter()
.find_map(|capability| capability.as_msi())
{
PciFeatureInfo::Msi(*info)
PciFeatureInfo::Msi(msi::MsiInfo {
log2_multiple_message_capable: info.multi_message_capable(),
is_64bit: info.has_64_bit_addr(),
has_per_vector_masking: info.is_pvt_capable(),
})
} else {
return PcidClientResponse::Error(
PcidServerResponseError::NonexistentFeature(feature),