|
|
ddf19c |
From 0d545c5850caf76ad3e8dd9bb0fbc9f86b08e220 Mon Sep 17 00:00:00 2001
|
|
|
ddf19c |
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
|
|
|
ddf19c |
Date: Fri, 24 Jan 2020 19:46:11 +0100
|
|
|
ddf19c |
Subject: [PATCH 002/116] vhost: Add names to section rounded warning
|
|
|
ddf19c |
MIME-Version: 1.0
|
|
|
ddf19c |
Content-Type: text/plain; charset=UTF-8
|
|
|
ddf19c |
Content-Transfer-Encoding: 8bit
|
|
|
ddf19c |
|
|
|
ddf19c |
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
ddf19c |
Message-id: <20200124194613.41119-2-dgilbert@redhat.com>
|
|
|
ddf19c |
Patchwork-id: 93450
|
|
|
ddf19c |
O-Subject: [RHEL-AV-8.2 qemu-kvm PATCH 1/3] vhost: Add names to section rounded warning
|
|
|
ddf19c |
Bugzilla: 1779041
|
|
|
ddf19c |
RH-Acked-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
ddf19c |
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
|
|
|
ddf19c |
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
|
|
|
ddf19c |
|
|
|
ddf19c |
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
|
|
|
ddf19c |
|
|
|
ddf19c |
Add the memory region names to section rounding/alignment
|
|
|
ddf19c |
warnings.
|
|
|
ddf19c |
|
|
|
ddf19c |
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
ddf19c |
Message-Id: <20200116202414.157959-2-dgilbert@redhat.com>
|
|
|
ddf19c |
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
ddf19c |
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
ddf19c |
(cherry picked from commit ff4776147e960b128ee68f94c728659f662f4378)
|
|
|
ddf19c |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
ddf19c |
---
|
|
|
ddf19c |
hw/virtio/vhost.c | 7 ++++---
|
|
|
ddf19c |
1 file changed, 4 insertions(+), 3 deletions(-)
|
|
|
ddf19c |
|
|
|
ddf19c |
diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c
|
|
|
ddf19c |
index 4da0d5a..774d87d 100644
|
|
|
ddf19c |
--- a/hw/virtio/vhost.c
|
|
|
ddf19c |
+++ b/hw/virtio/vhost.c
|
|
|
ddf19c |
@@ -590,9 +590,10 @@ static void vhost_region_add_section(struct vhost_dev *dev,
|
|
|
ddf19c |
* match up in the same RAMBlock if they do.
|
|
|
ddf19c |
*/
|
|
|
ddf19c |
if (mrs_gpa < prev_gpa_start) {
|
|
|
ddf19c |
- error_report("%s:Section rounded to %"PRIx64
|
|
|
ddf19c |
- " prior to previous %"PRIx64,
|
|
|
ddf19c |
- __func__, mrs_gpa, prev_gpa_start);
|
|
|
ddf19c |
+ error_report("%s:Section '%s' rounded to %"PRIx64
|
|
|
ddf19c |
+ " prior to previous '%s' %"PRIx64,
|
|
|
ddf19c |
+ __func__, section->mr->name, mrs_gpa,
|
|
|
ddf19c |
+ prev_sec->mr->name, prev_gpa_start);
|
|
|
ddf19c |
/* A way to cleanly fail here would be better */
|
|
|
ddf19c |
return;
|
|
|
ddf19c |
}
|
|
|
ddf19c |
--
|
|
|
ddf19c |
1.8.3.1
|
|
|
ddf19c |
|