From: Zhang, X. <xia...@in...> - 2007-12-09 16:07:52
|
From: Zhang Xiantao <xia...@in...> 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 <xia...@in...> --- 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; } =20 +#elif defined(TARGET_IA64) +void cpu_save(QEMUFile *f, void *opaque) +{ +} + +int cpu_load(QEMUFile *f, void *opaque, int version_id) +{ + return 0; +} #else =20 #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 +=3D KVM_EXTRA_PAGES * 4096; + phys_ram_size +=3D KVM_EXTRA_PAGES * TARGET_PAGE_SIZE; if (kvm_qemu_create_context() < 0) { fprintf(stderr, "Could not create KVM context\n"); exit(1); --=20 1.5.2 |