Blame qemu-qdev-fix-thinko-leading-to-guest-crashes.patch
|
Justin M. Forbes |
272dfe |
Without this fix, guest crashes with drive=virtio.
|
|
Justin M. Forbes |
272dfe |
|
|
Justin M. Forbes |
272dfe |
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
|
Justin M. Forbes |
272dfe |
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
|
|
Justin M. Forbes |
272dfe |
(cherry picked from commit dbd483242c2e6dfaacb9fd3d20c333bbdad87243)
|
|
Justin M. Forbes |
272dfe |
---
|
|
Justin M. Forbes |
272dfe |
hw/qdev-properties.c | 2 +-
|
|
Justin M. Forbes |
272dfe |
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
Justin M. Forbes |
272dfe |
|
|
Justin M. Forbes |
272dfe |
diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c
|
|
Justin M. Forbes |
272dfe |
index 9e123ae..277ff9e 100644
|
|
Justin M. Forbes |
272dfe |
--- a/hw/qdev-properties.c
|
|
Justin M. Forbes |
272dfe |
+++ b/hw/qdev-properties.c
|
|
Justin M. Forbes |
272dfe |
@@ -20,7 +20,7 @@ static void bit_prop_set(DeviceState *dev, Property *props, bool val)
|
|
Justin M. Forbes |
272dfe |
uint32_t *p = qdev_get_prop_ptr(dev, props);
|
|
Justin M. Forbes |
272dfe |
uint32_t mask = qdev_get_prop_mask(props);
|
|
Justin M. Forbes |
272dfe |
if (val)
|
|
Justin M. Forbes |
272dfe |
- *p |= ~mask;
|
|
Justin M. Forbes |
272dfe |
+ *p |= mask;
|
|
Justin M. Forbes |
272dfe |
else
|
|
Justin M. Forbes |
272dfe |
*p &= ~mask;
|
|
Justin M. Forbes |
272dfe |
}
|
|
Justin M. Forbes |
272dfe |
--
|
|
Justin M. Forbes |
272dfe |
1.6.6.144.g5c3af
|