From: Zhang Xiantao <[EMAIL PROTECTED]>
Date: Wed, 5 Dec 2007 11:02:18 +0800
Subject: [PATCH] kvm: qemu: Update vl.c for ia64 arch.

Update vl.c for ia64 arch:
Using TARGET_PAGE_SIZE to repalce hard-coded 4096.
Add cpu{save, load} for ia64 case, although not implemented.
Signed-off-by: Zhang Xiantao <[EMAIL PROTECTED]>
---
 qemu/vl.c |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/qemu/vl.c b/qemu/vl.c
index 2a604e7..80ceb2f 100644
--- a/qemu/vl.c
+++ b/qemu/vl.c
@@ -6465,6 +6465,15 @@ int cpu_load(QEMUFile *f, void *opaque, int
version_id)
     return 0;
 }
 
+#elif defined(TARGET_IA64)
+void cpu_save(QEMUFile *f, void *opaque)
+{
+}
+
+int cpu_load(QEMUFile *f, void *opaque, int version_id)
+{
+    return 0;
+}
 #else
 
 #warning No CPU save/restore functions
@@ -7762,6 +7771,8 @@ void register_machines(void)
 #elif defined(TARGET_M68K)
     qemu_register_machine(&mcf5208evb_machine);
     qemu_register_machine(&an5206_machine);
+#elif defined(TARGET_IA64)
+    qemu_register_machine(&ipf_machine);
 #else
 #error unsupported CPU
 #endif
@@ -8660,7 +8671,7 @@ int main(int argc, char **argv)
 #if USE_KVM
     /* Initialize kvm */
     if (kvm_allowed) {
-           phys_ram_size += KVM_EXTRA_PAGES * 4096;
+           phys_ram_size += KVM_EXTRA_PAGES * TARGET_PAGE_SIZE;
            if (kvm_qemu_create_context() < 0) {
                    fprintf(stderr, "Could not create KVM context\n");
                    exit(1);
-- 
1.5.2

Attachment: 0011-kvm-qemu-Update-vl.c-for-ia64-arch.patch
Description: 0011-kvm-qemu-Update-vl.c-for-ia64-arch.patch

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to