[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 4/9] libqos: Correct mask to align size to PAGE_S
From: |
Marc Marí |
Subject: |
[Qemu-devel] [PATCH v3 4/9] libqos: Correct mask to align size to PAGE_SIZE in malloc-pc |
Date: |
Fri, 1 Aug 2014 11:34:54 +0200 |
Reviewed-by: John Snow <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Marc Marí <address@hidden>
---
tests/libqos/malloc-pc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/libqos/malloc-pc.c b/tests/libqos/malloc-pc.c
index db1496c..2efd095 100644
--- a/tests/libqos/malloc-pc.c
+++ b/tests/libqos/malloc-pc.c
@@ -36,7 +36,7 @@ static uint64_t pc_alloc(QGuestAllocator *allocator, size_t
size)
size += (PAGE_SIZE - 1);
- size &= PAGE_SIZE;
+ size &= -PAGE_SIZE;
g_assert_cmpint((s->start + size), <=, s->end);
--
1.7.10.4
- [Qemu-devel] [PATCH v3 0/9] Virtio PCI libqos driver, Marc Marí, 2014/08/01
- [Qemu-devel] [PATCH v3 1/9] tests: Functions bus_foreach and device_find from libqos virtio API, Marc Marí, 2014/08/01
- [Qemu-devel] [PATCH v3 4/9] libqos: Correct mask to align size to PAGE_SIZE in malloc-pc,
Marc Marí <=
- [Qemu-devel] [PATCH v3 3/9] libqtest: add QTEST_LOG for debugging qtest testcases, Marc Marí, 2014/08/01
- [Qemu-devel] [PATCH v3 5/9] libqos: Change free function called in malloc, Marc Marí, 2014/08/01
- [Qemu-devel] [PATCH v3 2/9] tests: Add virtio device initialization, Marc Marí, 2014/08/01
- [Qemu-devel] [PATCH v3 6/9] virtio-blk: Correct bug in support for flexible descriptor layout, Marc Marí, 2014/08/01
- [Qemu-devel] [PATCH v3 7/9] libqos: Added basic virtqueue support to virtio implementation, Marc Marí, 2014/08/01
- [Qemu-devel] [PATCH v3 9/9] libqos: Added test case for configuration changes in virtio-blk test, Marc Marí, 2014/08/01
- [Qemu-devel] [PATCH v3 8/9] libqos: Added indirect descriptor support to virtio implementation, Marc Marí, 2014/08/01