qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/5] [S390] Increase amount of virtio pages


From: Alexander Graf
Subject: [Qemu-devel] [PATCH 2/5] [S390] Increase amount of virtio pages
Date: Tue, 24 Aug 2010 00:02:28 +0200

While booting a recent guest, I realized that we're know spawning 2x 64 vrings.
Each vring occupies 3 * PAGE_SIZE size and we only reserved 256 * PAGE_SIZE
bytes where some additional meta info also has to fit in.

This is obviously too little. So let's increase the amount of reserved pages
to a reasonable 1024.

Signed-off-by: Alexander Graf <address@hidden>
---
 hw/s390-virtio-bus.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/s390-virtio-bus.h b/hw/s390-virtio-bus.h
index 7a2f8dc..c2f8dde 100644
--- a/hw/s390-virtio-bus.h
+++ b/hw/s390-virtio-bus.h
@@ -30,7 +30,7 @@
 #define VIRTIO_VQCONFIG_LEN            24
 
 #define VIRTIO_RING_LEN                        (TARGET_PAGE_SIZE * 3)
-#define S390_DEVICE_PAGES              256
+#define S390_DEVICE_PAGES              1024
 
 #define VIRTIO_PARAM_MASK               0xff
 #define VIRTIO_PARAM_VRING_INTERRUPT    0x0
-- 
1.6.0.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]