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