]> nv-tegra.nvidia Code Review - linux-3.10.git/blob - Documentation/ia64/kvm.txt
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
[linux-3.10.git] / Documentation / ia64 / kvm.txt
1 Currently, kvm module is in EXPERIMENTAL stage on IA64. This means that
2 interfaces are not stable enough to use. So, please don't run critical
3 applications in virtual machine.
4 We will try our best to improve it in future versions!
5
6                                 Guide: How to boot up guests on kvm/ia64
7
8 This guide is to describe how to enable kvm support for IA-64 systems.
9
10 1. Get the kvm source from git.kernel.org.
11         Userspace source:
12                 git clone git://git.kernel.org/pub/scm/virt/kvm/kvm-userspace.git
13         Kernel Source:
14                 git clone git://git.kernel.org/pub/scm/linux/kernel/git/xiantao/kvm-ia64.git
15
16 2. Compile the source code.
17         2.1 Compile userspace code:
18                 (1)cd ./kvm-userspace
19                 (2)./configure
20                 (3)cd kernel
21                 (4)make sync LINUX= $kernel_dir (kernel_dir is the directory of kernel source.)
22                 (5)cd ..
23                 (6)make qemu
24                 (7)cd qemu; make install
25
26         2.2 Compile kernel source code:
27                 (1) cd ./$kernel_dir
28                 (2) Make menuconfig
29                 (3) Enter into virtualization option, and choose kvm.
30                 (4) make
31                 (5) Once (4) done, make modules_install
32                 (6) Make initrd, and use new kernel to reboot up host machine.
33                 (7) Once (6) done, cd $kernel_dir/arch/ia64/kvm
34                 (8) insmod kvm.ko; insmod kvm-intel.ko
35
36 Note: For step 2, please make sure that host page size == TARGET_PAGE_SIZE of qemu, otherwise, may fail.
37
38 3. Get Guest Firmware named as Flash.fd, and put it under right place:
39         (1) If you have the guest firmware (binary) released by Intel Corp for Xen, use it directly.
40
41         (2) If you have no firmware at hand, Please download its source from
42                 hg clone http://xenbits.xensource.com/ext/efi-vfirmware.hg
43             you can get the firmware's binary in the directory of efi-vfirmware.hg/binaries.
44
45         (3) Rename the firware you owned to Flash.fd, and copy it to /usr/local/share/qemu
46
47 4. Boot up Linux or Windows guests:
48         4.1 Create or install a image for guest boot. If you have xen experience, it should be easy.
49
50         4.2 Boot up guests use the following command.
51                 /usr/local/bin/qemu-system-ia64 -smp xx -m 512 -hda $your_image
52                 (xx is the number of virtual processors for the guest, now the maximum value is 4)
53
54 5. Known possible issue on some platforms with old Firmware.
55
56 In the event of strange host crash issues, try to solve it through either of the following ways:
57
58 (1): Upgrade your Firmware to the latest one.
59
60 (2): Applying the below patch to kernel source.
61 diff --git a/arch/ia64/kernel/pal.S b/arch/ia64/kernel/pal.S
62 index 0b53344..f02b0f7 100644
63 --- a/arch/ia64/kernel/pal.S
64 +++ b/arch/ia64/kernel/pal.S
65 @@ -84,7 +84,8 @@ GLOBAL_ENTRY(ia64_pal_call_static)
66         mov ar.pfs = loc1
67         mov rp = loc0
68         ;;
69 -       srlz.d                          // serialize restoration of psr.l
70 +       srlz.i                  // serialize restoration of psr.l
71 +       ;;
72         br.ret.sptk.many b0
73  END(ia64_pal_call_static)
74
75 6. Bug report:
76         If you found any issues when use kvm/ia64, Please post the bug info to kvm-ia64-devel mailing list.
77         https://lists.sourceforge.net/lists/listinfo/kvm-ia64-devel/
78
79 Thanks for your interest! Let's work together, and make kvm/ia64 stronger and stronger!
80
81
82                                                                 Xiantao Zhang <xiantao.zhang@intel.com>
83                                                                                         2008.3.10