thebeanogamer / rpms / qemu-kvm

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