diff options
| author | David Hildenbrand | 2019-07-22 15:41:03 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2019-07-25 13:57:49 +0200 |
| commit | ffa207d08253ffffb3993a1dbe09e40af4fc91f1 (patch) | |
| tree | 0ff22de456194441ad60bba6de278b59b6538c02 /scripts | |
| parent | i386/acpi: show PCI Express bus on pxb-pcie expanders (diff) | |
| download | qemu-ffa207d08253ffffb3993a1dbe09e40af4fc91f1.tar.gz qemu-ffa207d08253ffffb3993a1dbe09e40af4fc91f1.tar.xz qemu-ffa207d08253ffffb3993a1dbe09e40af4fc91f1.zip | |
virtio-balloon: Fix wrong sign extension of PFNs
If we directly cast from int to uint64_t, we will first sign-extend to
an int64_t, which is wrong. We actually want to treat the PFNs like
unsigned values.
As far as I can see, this dates back to the initial virtio-balloon
commit, but wasn't triggered as fairly big guests would be required.
Cc: qemu-stable@nongnu.org
Reported-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20190722134108.22151-2-david@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
