139cdd2a16
Update to v5.1.0 qemu OBS-URL: https://build.opensuse.org/request/show/825860 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=557
27 lines
936 B
Diff
27 lines
936 B
Diff
From: Jon Doron <arilou@gmail.com>
|
|
Date: Wed, 15 Jul 2020 11:43:26 +0300
|
|
Subject: hw: hyperv: vmbus: Fix 32bit compilation
|
|
|
|
Git-commit: 0000000000000000000000000000000000000000
|
|
|
|
Signed-off-by: Jon Doron <arilou@gmail.com>
|
|
Signed-off-by: Bruce Rogers <brogers@suse.com>
|
|
---
|
|
hw/hyperv/vmbus.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/hw/hyperv/vmbus.c b/hw/hyperv/vmbus.c
|
|
index 34392e892af6228f270ec327563e..c28bb4201be449eb6dae4b0e0218 100644
|
|
--- a/hw/hyperv/vmbus.c
|
|
+++ b/hw/hyperv/vmbus.c
|
|
@@ -383,7 +383,8 @@ static ssize_t gpadl_iter_io(GpadlIter *iter, void *buf, uint32_t len)
|
|
}
|
|
}
|
|
|
|
- p = (void *)(((uintptr_t)iter->map & TARGET_PAGE_MASK) | off_in_page);
|
|
+ p = (void *)(uintptr_t)(((uintptr_t)iter->map & TARGET_PAGE_MASK) |
|
|
+ off_in_page);
|
|
if (iter->dir == DMA_DIRECTION_FROM_DEVICE) {
|
|
memcpy(p, buf, cplen);
|
|
} else {
|