Re: [kvm-devel] multiple allocation for vmcs or am i missing something.
On Thu, 8 Feb 2007 21:06:37 +0545 Manish Regmi [EMAIL PROTECTED] wrote: Later when vmx_create_vcpu is called, the vmcs area is allocated (again) and this time for the cpu the code is currently executing on. possibly it is already allocated. Is this a bug or i am missing something. Hello, I don't see where vmx_create_vcpu is called again. I think that it is called only once from 'r = kvm_arch_ops-vcpu_create(vcpu)'. Thus I don't think that vmcs area is allocated twice for each vcpu. Regards, Guillaume - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] KVM-13 and 2.6.20 kvm and kvm-intel
Hi, Iain Kyte wrote: What has made the KVM-13 stop working with Linux 2.6.20 kvm and kvm-intel? API has been modified. As said Avi in kvm-13 release note : if you use the modules from Linux 2.6.20, you need to use kvm-12. You can also apply attached patch on linux-2.6.20 source tree (it's just a copy of kvm-13 in linux-2.6.20/drivers/kernel) Regards, Laurent -- - [EMAIL PROTECTED] -- Any sufficiently advanced technology is indistinguishable from magic. - Arthur C. Clarke Index: linux-2.6.20/drivers/kvm/kvm.h === --- linux-2.6.20.orig/drivers/kvm/kvm.h 2007-02-08 13:43:04.0 +0100 +++ linux-2.6.20/drivers/kvm/kvm.h 2007-02-08 13:43:07.0 +0100 @@ -14,6 +14,7 @@ #include vmx.h #include linux/kvm.h +#include linux/kvm_para.h #define CR0_PE_MASK (1ULL 0) #define CR0_TS_MASK (1ULL 3) @@ -237,6 +238,9 @@ unsigned long cr0; unsigned long cr2; unsigned long cr3; + gpa_t para_state_gpa; + struct page *para_state_page; + gpa_t hypercall_gpa; unsigned long cr4; unsigned long cr8; u64 pdptrs[4]; /* pae */ @@ -304,6 +308,7 @@ int memory_config_version; int busy; unsigned long rmap_overflow; + struct list_head vm_list; }; struct kvm_stat { @@ -340,6 +345,7 @@ struct kvm_vcpu *(*vcpu_load)(struct kvm_vcpu *vcpu); void (*vcpu_put)(struct kvm_vcpu *vcpu); + void (*vcpu_decache)(struct kvm_vcpu *vcpu); int (*set_guest_debug)(struct kvm_vcpu *vcpu, struct kvm_debug_guest *dbg); @@ -380,6 +386,8 @@ int (*run)(struct kvm_vcpu *vcpu, struct kvm_run *run); int (*vcpu_setup)(struct kvm_vcpu *vcpu); void (*skip_emulated_instruction)(struct kvm_vcpu *vcpu); + void (*patch_hypercall)(struct kvm_vcpu *vcpu, + unsigned char *hypercall_addr); }; extern struct kvm_stat kvm_stat; @@ -474,6 +482,8 @@ int kvm_mmu_unprotect_page_virt(struct kvm_vcpu *vcpu, gva_t gva); void kvm_mmu_free_some_pages(struct kvm_vcpu *vcpu); +int kvm_hypercall(struct kvm_vcpu *vcpu, struct kvm_run *run); + static inline int kvm_mmu_page_fault(struct kvm_vcpu *vcpu, gva_t gva, u32 error_code) { @@ -521,7 +531,7 @@ { struct page *page = pfn_to_page(shadow_page PAGE_SHIFT); - return (struct kvm_mmu_page *)page-private; + return (struct kvm_mmu_page *)page_private(page); } static inline u16 read_fs(void) @@ -558,7 +568,7 @@ #ifndef load_ldt static inline void load_ldt(u16 sel) { - asm (lldt %0 : : g(sel)); + asm (lldt %0 : : rm(sel)); } #endif Index: linux-2.6.20/drivers/kvm/kvm_main.c === --- linux-2.6.20.orig/drivers/kvm/kvm_main.c2007-02-08 13:43:04.0 +0100 +++ linux-2.6.20/drivers/kvm/kvm_main.c 2007-02-08 13:43:07.0 +0100 @@ -34,6 +34,8 @@ #include linux/highmem.h #include linux/file.h #include asm/desc.h +#include linux/sysdev.h +#include linux/cpu.h #include x86_emulate.h #include segment_descriptor.h @@ -41,6 +43,9 @@ MODULE_AUTHOR(Qumranet); MODULE_LICENSE(GPL); +static spinlock_t kvm_lock = SPIN_LOCK_UNLOCKED; +static struct list_head vm_list = LIST_HEAD_INIT(vm_list); + struct kvm_arch_ops *kvm_arch_ops; struct kvm_stat kvm_stat; EXPORT_SYMBOL_GPL(kvm_stat); @@ -121,10 +126,8 @@ return likely(n = 0 n KVM_MAX_VCPUS); } -int kvm_read_guest(struct kvm_vcpu *vcpu, -gva_t addr, -unsigned long size, -void *dest) +int kvm_read_guest(struct kvm_vcpu *vcpu, gva_t addr, unsigned long size, + void *dest) { unsigned char *host_buf = dest; unsigned long req_size = size; @@ -156,10 +159,8 @@ } EXPORT_SYMBOL_GPL(kvm_read_guest); -int kvm_write_guest(struct kvm_vcpu *vcpu, -gva_t addr, -unsigned long size, -void *data) +int kvm_write_guest(struct kvm_vcpu *vcpu, gva_t addr, unsigned long size, + void *data) { unsigned char *host_buf = data; unsigned long req_size = size; @@ -230,9 +231,13 @@ struct kvm_vcpu *vcpu = kvm-vcpus[i]; mutex_init(vcpu-mutex); + vcpu-cpu = -1; vcpu-kvm = kvm; vcpu-mmu.root_hpa = INVALID_PAGE; INIT_LIST_HEAD(vcpu-free_pages); + spin_lock(kvm_lock); + list_add(kvm-vm_list, vm_list); + spin_unlock(kvm_lock); } filp-private_data = kvm; return 0; @@ -272,7 +277,9 @@ static void kvm_free_vcpu(struct kvm_vcpu *vcpu) { - vcpu_load(vcpu-kvm, vcpu_slot(vcpu)); + if
[kvm-devel] Xenoppix (KNOPPIX5.1.1 + Xen3.0.4 + QEMU/KVM + HTTP-FUSE) is released
Dear, We released new Xenoppix which is consisted of KNOPPIX5.1.1, Xen3.0.4, QEMU/KVM, and HTTP-FUSE(stackable/network virtual disk). You can compare Xen(3.0.4 on Linux2.6.16) and KVM(Release 12 on Linux2.6.19) on the CD-ROM. The boot of CD image is accelerated by LCAT. http://www.alpha.co.jp/biz/rdg/ac-knoppix/index_en.html === ### New Feature (chagelog) - KNOPPIX is upgraded to 5.1.1(Japanese Edition) and Xen is upgraded to 3.0.4. GRUB Menu includes two items; Xen3.04(kenrel 2.6.16.33) and normal KNOPPIX (kernel 2.6.19). Xen3.0.4 improved support for SMP and ACPI. The feature enables to merge previous EFI version and normal BIOS version. -konppixHMV command runs KNOPPIX on a full virtualization on IntelVT/AMD-V. -knoppixU command runs KNOPPIX on a para virtualization. - KVM(Kernel based Virtual Machine) is included. The version is Release 12 2007-01-23 on Linux 2.6.19. -QEMU/KVM is runnable on IntelVT/AMD-V with kvm command. If IntelVT/AMD-V isn't on, the window bar shows QEMU. - [Experimental] HTTP-FUSE (stackable/network virtual disk) -It enables to boot Debian/GNU Linux Etch on Xen form Internet. -HTTP-FUSE CLOOP is stackable/network virtual disk. The virtual disk can be rollback to an old image. *** Reference Linux.conf.au Virtualization Miniconf OS Circulation Environment Trusted HTTP-FUSE Xenoppix http://virtminiconf.linux.hp.com/program/os-circulation-environment-201ctrusted-http-fuse-xenoppix201d Slide PDF http://unit.aist.go.jp/itri/knoppix/20070118-LCA-HTTP-FUSE.pdf O0o Impress http://unit.aist.go.jp/itri/knoppix/20070118-LCA-HTTP-FUSE.odp News Article http://community.linux.com/article.pl?sid=07/01/16/1554236from=rss ### USAGE - Xen3.04 -Boot with Xen3.0.4 at GRUB Menu. -Para virtualization Run # knoppixU KNOPPIX will boot via VNC. -Full Virtualization If IntelVT/AMD-V is available, we can use full virtualization of Xen HVM . run # knoppixHVM KNOPPIX will boot via SDL(Simple DirectMedia Layer) knoppixHVM command has options to boot from an iso file. # knoppixHVM [/path/to/isofile] [domain_name] Caution) Add nofirewire kernel option at GRUB Menu for Intel MAC. - QEMU/KVM -Boot KNOPPIX(normal kernel) at GRUB Menu on IntelVT/AMD-V. Include a KVM driver. The driver depends on IntelVT/AMD-V. # modprobe kvm-intel or # modprobe kvm-amd Run kvm command. The options are same for QEMU. # kvm -cdrom /dev/cdrom -boot d -m 256 -localtime A window will be appeared. The window bar indicates QEMU/KVM if the kvm is effective. If not, the window bar indicates QEMU. Caution) If you boot with KNOPPIX(normal kernel) image(The second item of GRUB Menu), add nolapc noapic noapm options for kernel at GRUB [sample] OSZoo offrers many Disk images(OpenSolairs, Darwin, ReactOS, etc) for QEMU. Please try them on KVM. - [Experimental] HTTP-FUSE -Boot with Xen3.0.4 at GRUB Menu on IntelVT/AMD-V. Confirm that eth0 is IP reachable and Xen is running. # pump -i eth0 # /etc/init.d/xend start # httpfuse-hvm.sh Selection Menu will be appeared. Select a near site. Contents Menu will be appeared. Select your favorite image. The OS will be appeared. Current Debian Etch has accounts, root/http-fuse or http-fuse/http-fuse. Caution) Add nofirewire kernel option at GRUB Menu for Intel MAC. Caution) The console must be wider than 80x24to run httpfuse-hvm.sh, because dialog requires wide console. If the console is small, the message httpstoraged is ready ... will continue. ### Performance -PI calculation(3 Million-digits) is used to compare. http://h2np.net/pi/pi_quick_start.tar.gz We confirmed the performance of kvm was very close to native CPU. However the I/O was still slow. | sec | ---+---+ Native CPU| 14.67 | Core2 Duo (T7200) kvm| 17.90 | IntelVT is effective kvm(off)| 225.1 | -no-kvm is used qemu(kqemu)| 24.87 | -kernel-kqemu isn't used qemu| 227.1 | -no-kqemu is used Xen(DomU)| 14.68 | Xen(HVM)| 15.99 | IntelVT is effective ---+---+--- ### Download File: knoppix_v5.1.1CD_20070104_xen3.0.4.0-20070206+IPAFont_AC20070206.iso (610MB) MD5: 1c7eb2981cbbeb268ecc16d643587ae4 Bittorrrent http://unit.aist.go.jp/itri/knoppix/knoppix_v5.1.1CD_20070104_xen3.0.4.0-20070206+IPAFont_AC20070206.iso.torrent FTP ftp://unit.aist.go.jp/itri/knoppix/iso/knoppix_v5.1.1CD_20070104_xen3.0.4.0-20070206+IPAFont_AC20070206.iso RING HTTP
Re: [kvm-devel] svn and wiki maintenance
On Thu, Feb 08, 2007 at 11:00:44PM -0800, Rami Tamir wrote: Both svn and wiki servers are up and running again. Rami Great. By the way, are there any mirrors of the SVN repository to take some load of the qumranet server? If not, I can talk to the x86_64.org guys to install a mirror there. Is this desired? Joerg -- Joerg Roedel Operating System Research Center AMD Saxony LLC Co. KG - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] svn and wiki maintenance
Currently there is no mirrors for kvm svn. We may be moving away from svn in the near future, let's wait until we finalize that before we mirror the svn. Thanks for the offer. Rami -Original Message- From: Joerg Roedel [mailto:[EMAIL PROTECTED] Sent: Friday, February 09, 2007 12:29 PM To: Rami Tamir Cc: kvm-devel@lists.sourceforge.net Subject: Re: [kvm-devel] svn and wiki maintenance On Thu, Feb 08, 2007 at 11:00:44PM -0800, Rami Tamir wrote: Both svn and wiki servers are up and running again. Rami Great. By the way, are there any mirrors of the SVN repository to take some load of the qumranet server? If not, I can talk to the x86_64.org guys to install a mirror there. Is this desired? Joerg -- Joerg Roedel Operating System Research Center AMD Saxony LLC Co. KG - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Now that 2.6.20 is out
Hi Avi, what guest? what host? Guest and host == ubuntu 6.10 host = Intel VT It fails on Qemu start up, which shows a black screen and terminate with the exception 13 (0) error. I read somewhere that this is due to the Intel VT inability to handle real mode, is this the case? Most chances are that this is the case. You can shift to a textual boot loading and it should work. Thanks --- -- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=12164 2 ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
[kvm-devel] Tried to install Vista for Class Virtualization Use -- Failure
Failed to get Windows Vista to install on KVM-13. Tried the following combinations: kvm and no-kvm -- Blue Screen of Death no-acpi (kvm or no-kvm) -- Can only install if BIOS supports ACPI error. I have taken screen shots of both situations if people are interested. Just have not posted to this message to keep our Mail Queues and boxes uncluttered. I could help with debugging and development testing of Vista. Iain TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. http://tv.yahoo.com/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Tried to install Vista for Class Virtualization Use -- Failure
On Fri, 2007-02-09 at 12:11 -0800, Iain Kyte wrote: Failed to get Windows Vista to install on KVM-13. Tried the following combinations: kvm and no-kvm -- Blue Screen of Death no-acpi (kvm or no-kvm) -- Can only install if BIOS supports ACPI error. I have taken screen shots of both situations if people are interested. Just have not posted to this message to keep our Mail Queues and boxes uncluttered. I could help with debugging and development testing of Vista. The ACPI implementation in qemu is v1.0. Vista wants at least ACPI 2.0. http://lists.gnu.org/archive/html/qemu-devel/2006-11/msg00255.html qemu 0.9.0 moves the ACPI tables into the bochs bios where they belong - should be just a matter of updating these tables and other misc code. Although IIRC ACPI doesn't work very well with KVM/KQEMU at the moment for other reasons. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] KVM-13 and 2.6.20 kvm and kvm-intel
On Fri, 09 Feb 2007 10:54:53 +0100 Laurent Vivier [EMAIL PROTECTED] wrote: Iain Kyte wrote: What has made the KVM-13 stop working with Linux 2.6.20 kvm and kvm-intel? API has been modified. As said Avi in kvm-13 release note : if you use the modules from Linux 2.6.20, you need to use kvm-12. You can also apply attached patch on linux-2.6.20 source tree (it's just a copy of kvm-13 in linux-2.6.20/drivers/kernel) FYI: make[1]: Entering directory `/usr/src/linux-2.6.20' CHK include/linux/version.h CHK include/linux/utsrelease.h Building modules, stage 2. MODPOST 423 modules WARNING: register_cpu_notifier [drivers/kvm/kvm.ko] undefined! make[2]: *** [__modpost] Error 1 make[1]: *** [modules] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.20' make: *** [debian/stamp-build-kernel] Error 2 -- ___ It is better to remain silent and be thought a fool, than to speak aloud and remove all doubt. +--+ | Richard Lucassen, Utrecht| | Public key and email address:| | http://www.lucassen.org/mail-pubkey.html | +--+ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Tried to install Vista for Class Virtualization Use-- Failure
Failed to get Windows Vista to install on KVM-13. Tried the following combinations: kvm and no-kvm -- Blue Screen of Death no-acpi (kvm or no-kvm) -- Can only install if BIOS supports ACPI error. I have taken screen shots of both situations if people are interested. Just have not posted to this message to keep our Mail Queues and boxes uncluttered. I could help with debugging and development testing of Vista. The ACPI implementation in qemu is v1.0. Vista wants at least ACPI 2.0. http://lists.gnu.org/archive/html/qemu-devel/2006-11/msg00255.html qemu 0.9.0 moves the ACPI tables into the bochs bios where they belong - should be just a matter of updating these tables and other misc code. Although IIRC ACPI doesn't work very well with KVM/KQEMU at the moment for other reasons. - Since KVM-12 it is possible to install windows without the -no-acpi flag. - We will soon upgrade our Qemu from 0.82 toward 0.9 so hopefully vista will soon be energized by KVM. - I managed to install the vista beta version. (I know the release is problematic even to qemu head). --- -- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=12164 2 ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
[kvm-devel] paravirtualization cr3-cache feature
hi, Can someone briefly explain what the cr3-cache feature on intel VT processors is and how it is used to improve performance in paravirtualization. Thanks Omar - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel