mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +00:00
virtio-devices: Print error on notification BAR read/write
This should not occur as ioeventfd is used for notification. Such an error message would have made the discovery of the underlying cause of Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
8c170570c4
commit
e864e35c29
@ -974,6 +974,7 @@ impl PciDevice for VirtioPciDevice {
|
||||
&& o < NOTIFICATION_BAR_OFFSET + NOTIFICATION_SIZE =>
|
||||
{
|
||||
// Handled with ioeventfds.
|
||||
error!("Unexpected read from notification BAR: offset = 0x{:x}", o);
|
||||
}
|
||||
o if MSIX_TABLE_BAR_OFFSET <= o && o < MSIX_TABLE_BAR_OFFSET + MSIX_TABLE_SIZE => {
|
||||
if let Some(msix_config) = &self.msix_config {
|
||||
@ -1019,6 +1020,7 @@ impl PciDevice for VirtioPciDevice {
|
||||
&& o < NOTIFICATION_BAR_OFFSET + NOTIFICATION_SIZE =>
|
||||
{
|
||||
// Handled with ioeventfds.
|
||||
error!("Unexpected write to notification BAR: offset = 0x{:x}", o);
|
||||
}
|
||||
o if MSIX_TABLE_BAR_OFFSET <= o && o < MSIX_TABLE_BAR_OFFSET + MSIX_TABLE_SIZE => {
|
||||
if let Some(msix_config) = &self.msix_config {
|
||||
|
Loading…
x
Reference in New Issue
Block a user