linux/Documentation/ia64/kvm.txt
<<
valu12valu12>>vavalu ="+search" method="post" onsubmit="return do_search(this);">valu12 ">valu12valu12Searchvalu12Prefs4 12va ="ajax+*" method="post" onsubmit="return false;">va ">vlu12 22 21Currently, kvm module is in EXPERIMENTAL stage on IA64. This means that 2 22interfaces are not stable enough to use. So, please don't ru cri> cal 2 23applica> s in virtual machine. 2 24We will try our best to improve it in future vers s! 2 25v2 26 Guide: How to boot up guests on kvm/ia64v2 27v2 28This guide is to describe how to enable kvm support for IA-64 systems. 2 29v2 0" a>1. Get the kvm source from git.kernel.org. 2 11 Userspace source: 2 12 git clone git://git.kernel.org/pub/scm/virt/kvm/kvm-userspace.git 2 13 Kernel Source: 2 14 git clone git://git.kernel.org/pub/scm/linux/kernel/git/xiantao/kvm-ia64.git 2 15v2 162. Compile the source code. 2 17 2.. Compile userspace code: 2 18 (1)cd ./kvm-userspace 2 19 (2)./configure 2 20 (3)cd kernel 2 21 (4)make sync LINUX= $kernel_dir (kernel_dir is the directory of kernel source.) 2 22 (5)cd .. 2 23 (6)make qemu 2 24 (7)cd qemu; make install 2 25v2 26 2.2 Compile kernel source code: 2 27 (1) cd ./$kernel_dir 2 28 (2) Make menuconfig 2 29 (3) Enter into virtualiza> > , and choose kvm. 2 30 (4) make 2 31 (5) Once (4) done, make modules_install 2 32 (6) Make initrd, and use new kernel to reboot up host machine. 2 33 (7) Once (6) done, cd $kernel_dir/arch/ia64/kvm 2 34 (8) insmod kvm.ko; insmod kvm-intel.ko 2 35v2 36Note: For step 2, please make sure that host page size == TARGET_PAGE_SIZE of qemu, otherwise, may fail. 2 37v2 383. Get Guest Firmware nam d as Flash.fd, and put it under right place: 2 39 (1) If you have the guest firmware (binary) released by Intel Corp for Xe , use it directly. 2 40v2 41 (2) If you have no firmware at hand, Please download its source fromv2 42 hg clone http://xenbits.xensource.com/ext/efi-vfirmware.hgv2 43 you can get the firmware's binary in the directory of efi-vfirmware.hg/binaries. 2 44v2 45 (3) Renam the firmware you owned to Flash.fd, and copy it to /usr/local/share/qemu 2 46v2 474. Boot up Linux or Windows guests: 2 48 4.. Create or install a image for guest boot. If you have xen experience, it should be easy. 2 49v2 50 4.2 Boot up guests use the following command. 2 51 /usr/local/bin/qemu-system-ia64 -smp xx -m 512 -hda $your_image 2 52 (xx is the number of virtual processors for the guest, now the maximum > is 4) 2 53v2 545. Known possible issue on som platforms with old Firmware. 2 55v2 56In the event of strange host crash issues, try to solve it through either of the following ways: 2 57v2 58(1): Upgrade your Firmware to the latest one. 2 59v2 60(2): Applying the below patch to kernel source.v2 61diff --git a/arch/ia64/kernel/pal.S b/arch/ia64/kernel/pal.Sv2 62index 0b53344..f02b0f7 100644v2 63--- a/arch/ia64/kernel/pal.Sv2 64+++ b/arch/ia64/kernel/pal.Sv2 65@@ -84,7 +84,8 @@ GLOBAL_ENTRY(ia64_pal_call_sta> c) 2 66 mov ar.pfs = loc1 2 67 mov rp = loc0 2 68 ;; 2 69- srlz.d // serialize restora> f psr.l 2 70+ srlz.i // serialize restora> f psr.l 2 71+ ;; 2 72 br.ret.sptk.many b0 2 73 END(ia64_pal_call_sta> c) 2 74v2 756. Bug report: 2 76 If you found any issues when use kvm/ia64, Please post the bug info to kvm-ia64-devel mailing list.v2 77 https://lists.sourceforge.net/lists/listinfo/kvm-ia64-devel/v2 78v2 79Thanks for your interest! Let's work together, and make kvm/ia64 stronger and stronger! 2 80v2 81v2 82 Xiantao Zhang <xiantao.zhang@intel.com>v2 83 2008.18.0v2 84 The original LXR software by the LXR community, this experimental vers by lxr@linux.no. lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and opera> s services since 1995.