Re: [kvm-devel] Automatically hibernate XP guest on suspend?
David Abrahams wrote: If I suspend my host while running a Windows XP guest, the whole machine crashes, so I was hoping to automate hibernation of the guest OS and integrate that into my host's suspend process. Does anyone know how to do that? Hi Dave, What host OS are you running? Cam - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Sharing a page of memory between the guest and host
Anthony Liguori wrote: Cam Macdonell wrote: Hello, Is it possible to share a memory (a page perhaps) between the host and guest? Yes, the host always has access to all of the guests memory. All of the virtio drivers depend on this fact. With KVM, the userspace (in this case, QEMU), just tells the kernel about a virtual address region and the kernel uses that region of virtual memory for the guest's physical memory. Whatever you (as userspace) maps into that region is totally up to you. More precisely, could a host and guest share a memory-mapped file? It will be a lot easier once we have MMU notifiers upstream. You'll be able to simply mmap(MAP_FIXED) a file into the guest's physical address space even while it's running. For now, you have to setup these mappings before the VM starts. If one were crazy enough to want to do this, where should they look first? If you look at the -mem-file implementation in the latest git, you'll see that all the guest's memory can be an mmap()'d file. Hi Anthony, In setting up the guest memory to share a page, I need to make the kernel aware of that page. Is the best way to do this through a little virtio-like PCI device or is there an easier to get dynamic info into the guest kernel? Also, is the mem-file implementation in a specific branch of the latest GIT or is it within the main branch somewhere, I've been unable to find it? Thanks a bunch, Cam - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
[kvm-devel] Sharing a page of memory between the guest and host
Hello, Is it possible to share a memory (a page perhaps) between the host and guest? More precisely, could a host and guest share a memory-mapped file? If one were crazy enough to want to do this, where should they look first? Thanks, Cam - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] VMGL support on KVM
Anthony Liguori wrote: If someone posts a simple howto with how to setup VMGL in a guest and host, I'll take a look at it this weekend and see if I can't increase the FPS by tweaking the virtio network driver. virtio should get very good throughput but the latencies aren't very optimized yet so if VMGL is latency sensitive, this may be what you're seeing. I don't know what is normal to expect from VMGL though. Regards, Anthony Liguori Hi Anthony Here is one I made as I went along. If it's useful I will move it to the KVM wiki. VirtIO does seem to improve performance of an openGL video game (enemy territory used in the paper). However glxgears gets better performance (more FPS) using rtl8139. Perhaps a bandwidth v. latency difference? http://warburg.cs.ualberta.ca/~cam/dokuwiki/doku.php?id=vmgl Cam - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
[kvm-devel] VMGL support on KVM
Hi, I've been playing with VMGL and got it to work on KVM using two of the three suggested setups 1) X forwarding and 2) VNC. However, with SDL it doesn't work yet. This will require patching KVM/Qemu's SDL viewer. Also, I haven't been able to get virtio networking going which is necessary as the network is the bottleneck to getting better performance. I've installed 2.6.25-rc2, and have the nic model set as virtio and its using a tap interface. I can load the virto_pci and virtio_net modules. But I can't bring the interface up. Is there any other configuration in the guest that is necessary? Host and guest are both 64-bit Scientific Linux 5.0. Thanks, Cam If anyone has questions about getting VMGL to work feel free to ask. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] VMGL support on KVM
Jorge Lucángeli Obes wrote: On Wed, Feb 27, 2008 at 1:54 PM, Cam Macdonell [EMAIL PROTECTED] wrote: Hi, I've been playing with VMGL and got it to work on KVM using two of the three suggested setups 1) X forwarding and 2) VNC. However, with SDL it doesn't work yet. This will require patching KVM/Qemu's SDL viewer. Also, I haven't been able to get virtio networking going which is necessary as the network is the bottleneck to getting better performance. I've installed 2.6.25-rc2, and have the nic model set as virtio and its using a tap interface. I can load the virto_pci and virtio_net modules. But I can't bring the interface up. Is there any other configuration in the guest that is necessary? Host and guest are both 64-bit Scientific Linux 5.0. Thanks, Cam If anyone has questions about getting VMGL to work feel free to ask. Hi Cam, I've been playing with VMGL also. I'm at work right now so I'll make it quick: I'm getting ~35 FPS with 'glxgears' in the guest versus ~1100 in the host. That's around the same ratio as what the VMGL author gets with a XEN HVM guest. Hi, To be clear, do you have VMGL running? And you're only getting ~35 FPS? For me, using VMGL doubles the performance of glxgears on two different machines. As well, I'm using the Enemy Territory demos the author used and they are usable with VMGL but still jumpy. How do you use VMGL? Do you use VNC or do you have SDL working some how? Thanks, Cam - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] How-to use paravirt layer for network and block devices
Dor Laor wrote: On Tue, 2008-01-29 at 10:50 -0700, Cameron Macdonell wrote: Hi, What are the command-line options necessary to get the guest devices to use the paravirt layer? For network you use '-net nic,model=virtio', I hope to write a wiki page for it tomorrow. Great, thanks. How does block devices work? Can they work with a QEMU virtual disk? I look forward to the wiki. Cheers, Cam - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
[kvm-devel] Benchmarking warning
Hi, I get the following warning in the kernel messages: kvm: emulating preempt notifiers; do not benchmark on this machine Is this an accurate warning, should the machine not be used for benchmarking KVM? or does it mean don't benchmark other applications on the host? Thanks, Cam - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] [virtio-net][PATCH] Don't arm tx hrtimer with a constant 500us each transmit
Cam Macdonell wrote: Dor Laor wrote: Cam Macdonell wrote: Dor Laor wrote: Christian Borntraeger wrote: Am Mittwoch, 12. Dezember 2007 schrieb Dor Laor: Christian Borntraeger wrote: Am Mittwoch, 12. Dezember 2007 schrieb Dor Laor: --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -406,10 +405,10 @@ again: Hmm, while I agree in general with the patch, I fail to find the proper version of virtio_net where this patch applies. I tried kvm.git and linux-2.6.git from kernel.org. Can you give me a pointer to the repository where you work on virtio? Sorry for that, I added some debug prints of my one. Here it is: *git clone git*://kvm.*qumranet*.com/home/*dor*/src/linux-2.6-nv use branch 'virtio'. Hi Dor, Which userspace repo is usable with the above repo? Thanks, Cam git://kvm.qumranet.com/home/dor/src/kvm-nv use branch Hi Dor, I think you forgot a word after branch above. Also, I get the following error when I try clone the userspace repo. [EMAIL PROTECTED]:~/src/KVM$ git clone git://kvm.qumranet.com/home/dor/src/kvm-nv Initialized empty Git repository in /home/cam/src/KVM/kvm-nv/.git/ fatal: The remote end hung up unexpectedly fetch-pack from 'git://kvm.qumranet.com/home/dor/src/kvm-nv' failed. Ok, it works now, however, I'm getting an unknown symbol error when loading kvm in to kernel [EMAIL PROTECTED]:~/src/KVM/dor$ sudo modprobe kvm FATAL: Error inserting kvm (/lib/modules/2.6.22-14-generic/extra/kvm.ko): Unknown symbol in module, or unknown parameter (see dmesg) dmesg output: [89681.96] kvm: Unknown symbol __fls Do you know what might be causing this? Thanks, Cam - 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://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] [virtio-net][PATCH] Don't arm tx hrtimer with a constant 500us each transmit
Cam Macdonell wrote: Cam Macdonell wrote: Dor Laor wrote: Cam Macdonell wrote: Dor Laor wrote: Christian Borntraeger wrote: Am Mittwoch, 12. Dezember 2007 schrieb Dor Laor: Christian Borntraeger wrote: Am Mittwoch, 12. Dezember 2007 schrieb Dor Laor: --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -406,10 +405,10 @@ again: Hmm, while I agree in general with the patch, I fail to find the proper version of virtio_net where this patch applies. I tried kvm.git and linux-2.6.git from kernel.org. Can you give me a pointer to the repository where you work on virtio? Sorry for that, I added some debug prints of my one. Here it is: *git clone git*://kvm.*qumranet*.com/home/*dor*/src/linux-2.6-nv use branch 'virtio'. Hi Dor, Which userspace repo is usable with the above repo? Thanks, Cam git://kvm.qumranet.com/home/dor/src/kvm-nv use branch Hi Dor, I think you forgot a word after branch above. Also, I get the following error when I try clone the userspace repo. [EMAIL PROTECTED]:~/src/KVM$ git clone git://kvm.qumranet.com/home/dor/src/kvm-nv Initialized empty Git repository in /home/cam/src/KVM/kvm-nv/.git/ fatal: The remote end hung up unexpectedly fetch-pack from 'git://kvm.qumranet.com/home/dor/src/kvm-nv' failed. Ok, it works now, however, I'm getting an unknown symbol error when loading kvm in to kernel [EMAIL PROTECTED]:~/src/KVM/dor$ sudo modprobe kvm FATAL: Error inserting kvm (/lib/modules/2.6.22-14-generic/extra/kvm.ko): Unknown symbol in module, or unknown parameter (see dmesg) dmesg output: [89681.96] kvm: Unknown symbol __fls Hi Dor, It seems this is a 32 v 64-bit issue. I'm running a 32-bit system. The asm-x86/bitops_64.h defines __fls whereas asm-x86/bitops_32.h defines fls. Simply replacing __fls with fls allows the module to load into the kernel and I am able to boot VMs with it. I hope that helps. Cam - 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://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] [virtio-net][PATCH] Don't arm tx hrtimer with a constant 500us each transmit
Dor Laor wrote: Cam Macdonell wrote: Dor Laor wrote: Christian Borntraeger wrote: Am Mittwoch, 12. Dezember 2007 schrieb Dor Laor: Christian Borntraeger wrote: Am Mittwoch, 12. Dezember 2007 schrieb Dor Laor: --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -406,10 +405,10 @@ again: Hmm, while I agree in general with the patch, I fail to find the proper version of virtio_net where this patch applies. I tried kvm.git and linux-2.6.git from kernel.org. Can you give me a pointer to the repository where you work on virtio? Sorry for that, I added some debug prints of my one. Here it is: *git clone git*://kvm.*qumranet*.com/home/*dor*/src/linux-2.6-nv use branch 'virtio'. Hi Dor, Which userspace repo is usable with the above repo? Thanks, Cam git://kvm.qumranet.com/home/dor/src/kvm-nv use branch Hi Dor, I think you forgot a word after branch above. Also, I get the following error when I try clone the userspace repo. [EMAIL PROTECTED]:~/src/KVM$ git clone git://kvm.qumranet.com/home/dor/src/kvm-nv Initialized empty Git repository in /home/cam/src/KVM/kvm-nv/.git/ fatal: The remote end hung up unexpectedly fetch-pack from 'git://kvm.qumranet.com/home/dor/src/kvm-nv' failed. Thanks, Cam - 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://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] [virtio-net][PATCH] Don't arm tx hrtimer with a constant 500us each transmit
Dor Laor wrote: Christian Borntraeger wrote: Am Mittwoch, 12. Dezember 2007 schrieb Dor Laor: Christian Borntraeger wrote: Am Mittwoch, 12. Dezember 2007 schrieb Dor Laor: --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -406,10 +405,10 @@ again: Hmm, while I agree in general with the patch, I fail to find the proper version of virtio_net where this patch applies. I tried kvm.git and linux-2.6.git from kernel.org. Can you give me a pointer to the repository where you work on virtio? Sorry for that, I added some debug prints of my one. Here it is: *git clone git*://kvm.*qumranet*.com/home/*dor*/src/linux-2.6-nv use branch 'virtio'. Hi Dor, Which userspace repo is usable with the above repo? Thanks, Cam - 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://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] [ANNOUNCE] kvm-55 release
Ryan Harper wrote: * Cam Macdonell [EMAIL PROTECTED] [2007-12-04 13:08]: Hi Avi, I'm having a problem with unifdef target in the kvm-userspace/kernel/Makefile: [EMAIL PROTECTED]:~/src/KVM/kvm-userspace$ make -C kernel sync LINUX=~/src/KVM/kvm make: Entering directory `/home/cam/src/KVM/kvm-userspace/kernel' rsync --exclude='*.mod.c' /home/cam/src/KVM/kvm/drivers/kvm/*.[ch] . rsync /home/cam/src/KVM/kvm/include/linux/kvm.h \ /home/cam/src/KVM/kvm/include/linux/kvm_para.h \ include/linux rsync /home/cam/src/KVM/kvm/include/asm-x86/kvm_para.h include/asm rsync /home/cam/src/KVM/kvm/include/asm-x86/kvm.h include/asm mv include/linux/kvm.h include/linux/kvm.h.orig unifdef -DCONFIG_X86 include/linux/kvm.h.orig include/linux/kvm.h; (( $? = 1 )) rm include/linux/kvm.h.orig /bin/sh: unifdef: not found /bin/sh: cannot open =: No such file /bin/sh: 127: not found make: *** [sync] Error 127 make: Leaving directory `/home/cam/src/KVM/kvm-userspace/kernel' I needed to install the unifdef binary (apt-get install unifdef) and then apply the attached patch to get make LINUX= sync working again. Ah, I didn't realize that it's a program. Thanks, Cam - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
[kvm-devel] Problem with vde/dnsmasq on CentOS 5.0
Hi, Apologies for this not being a specific KVM issue. I cannot get vde/dnsmasq working with KVM on CentOS 5.0. It works fine on FC6 basically following the instructions here https://help.ubuntu.com/community/KVM. However, when I move to CentOS 5, I constantly get the Sendto: bad file descriptor error when I try to run with a vde tap interface. The error happens when the guest tries to setup networking. Has anyone had success with vde/dnsmasq on CentOS or another RHEL clone? Is there an alternative tap-based approach other than vde? Any help or pointers are appreciated. Thanks, Cam - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Compile problem with GIT repo on Scientific Linux
Uri Lublin wrote: Thanks for reporting the problem. Thanks for the quick patch :) You do not need to make -C kernel sync with kvm-tarballs. Yes, sorry, my language was unclear in that sentence. I wasn't running sync on the tarball, just on the git repo. Thanks, Cam - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
[kvm-devel] Compile problem with GIT repo on Scientific Linux
Hi, I'm trying to install KVM using the git repos on Scientific Linux. The error occurs when I run make. The kvm-53 tarball works fine, but something is getting misconfigured when I run make -C kernel sync. This error doesn't occur on Fedora Core. I installed kernel-headers using yum in the standard way Has anyone experienced this problem with other RHEL clones like CentOS? Thanks, Cam [/usr/scratch/cam/new/kvm-userspace]$ make make -C kernel make[1]: Entering directory `/usr/scratch/cam/new/kvm-userspace/kernel' make -C /lib/modules/2.6.18-8.1.15.el5/build M=`pwd` $@ make[2]: Entering directory `/usr/src/kernels/2.6.18-8.1.15.el5-x86_64' CC [M] /usr/scratch/cam/new/kvm-userspace/kernel/svm.o In file included from /usr/scratch/cam/new/kvm-userspace/kernel/svm.c:27: include/asm/desc.h:17: error: redefinition of 'struct kvm_desc_struct' include/asm/desc.h:24: error: redefinition of 'struct n_desc_struct' include/asm/desc.h:31: error: redeclaration of enumerator 'GATE_INTERRUPT' /usr/scratch/cam/new/kvm-userspace/kernel/include/asm/desc_defs.h:27: error: previous definition of 'GATE_INTERRUPT' was here include/asm/desc.h:32: error: redeclaration of enumerator 'GATE_TRAP' /usr/scratch/cam/new/kvm-userspace/kernel/include/asm/desc_defs.h:28: error: previous definition of 'GATE_TRAP' was here include/asm/desc.h:33: error: redeclaration of enumerator 'GATE_CALL' /usr/scratch/cam/new/kvm-userspace/kernel/include/asm/desc_defs.h:29: error: previous definition of 'GATE_CALL' was here include/asm/desc.h:37: error: redefinition of 'struct gate_struct' include/asm/desc.h:51: error: redeclaration of enumerator 'DESC_TSS' /usr/scratch/cam/new/kvm-userspace/kernel/include/asm/desc_defs.h:47: error: previous definition of 'DESC_TSS' was here include/asm/desc.h:52: error: redeclaration of enumerator 'DESC_LDT' /usr/scratch/cam/new/kvm-userspace/kernel/include/asm/desc_defs.h:48: error: previous definition of 'DESC_LDT' was here include/asm/desc.h:56: error: redefinition of 'struct ldttss_desc' include/asm/desc.h:65: error: redefinition of 'struct kvm_desc_ptr' make[3]: *** [/usr/scratch/cam/new/kvm-userspace/kernel/svm.o] Error 1 make[2]: *** [_module_/usr/scratch/cam/new/kvm-userspace/kernel] Error 2 make[2]: Leaving directory `/usr/src/kernels/2.6.18-8.1.15.el5-x86_64' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/scratch/cam/new/kvm-userspace/kernel' make: *** [kernel] Error 2 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Starting a VM reboots my machine
Avi Kivity wrote: Cam Macdonell wrote: Dor Laor wrote: Cam Macdonell wrote: Hi, I'm running an AMD vendor_id : AuthenticAMD cpu family : 15 model : 75 model name : AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ with 4GB of RAM and Scientific Linux 5.0. I've compiled kvm-48 on it and the compile works and loading the modules works fine, the only dmesg line referring to kvm is SELinux: initialized (dev kvm_anon_inodefs, type kvm_anon_inodefs), not configured for labeling. However, when I boot any KVM, the machine reboots. It works fine with the no-kvm flag. Has anyone else seen this behaviour? We have some instabilities with AMD. These issues are under debug these days. Can you please supply netconsole debug messages from the host. This can be very helpful. Also what's the guest OS? Hi Dor, Sorry for the delay, here's the netConsole dump. This is trying to boot FC6 on Scientific Linux 5. Let me know if you need more info. This is with kvm-50 with the flag -no-kvm-irqchip. Also, this time it didn't reboot, but froze. Does running the vm with 'taskset 1' help? It runs a few seconds longer and then reboots. With netconsole, I don't always get a full dump, here's what I have. Unable to handle kernel NULL pointer dereference at 0041 RIP: [800285cd] sock_poll+0x11/0x18 PGD 10fcf0067 PUD 114b53067 PMD 0 Oops: [1] SMP last sysfs file: /class/misc/kvm/dev CPU 1 Modules linked in: kvm_amd(U) kvm(U) netconsole nfs lockd fscache nfs_acl autofs4 hidp rfcomm l2cap bluetooth sunrpc dm_mirror dm_mod video sbs i2c_ec button battery asus_acpi acpi_memhotplug ac ipv6 lp snd_hda_intel snd_hda_codec snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_pcm_oss parport_pc snd_mixer_oss shpchp parport sg snd_pcm i2c_nforce2 snd_mpu401 snd_mpu401_uart snd_rawmidi snd_seq_device snd_timer fglrx Cam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Starting a VM reboots my machine
Dor Laor wrote: Cam Macdonell wrote: Hi, I'm running an AMD vendor_id : AuthenticAMD cpu family : 15 model : 75 model name : AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ with 4GB of RAM and Scientific Linux 5.0. I've compiled kvm-48 on it and the compile works and loading the modules works fine, the only dmesg line referring to kvm is SELinux: initialized (dev kvm_anon_inodefs, type kvm_anon_inodefs), not configured for labeling. However, when I boot any KVM, the machine reboots. It works fine with the no-kvm flag. Has anyone else seen this behaviour? We have some instabilities with AMD. These issues are under debug these days. Can you please supply netconsole debug messages from the host. This can be very helpful. Also what's the guest OS? Hi Dor, Sorry for the delay, here's the netConsole dump. This is trying to boot FC6 on Scientific Linux 5. Let me know if you need more info. This is with kvm-50 with the flag -no-kvm-irqchip. Also, this time it didn't reboot, but froze. Thanks, Cam Unable to handle kernel paging request at 8e5b RIP: [800b1ecd] audit_syscall_exit+0x17d/0x2eb PGD 10908d067 PUD 10908c067 PMD 0 Oops: [1] SMP last sysfs file: /class/misc/kvm/dev CPU 0 Modules linked in: kvm_amd(U) tun kvm(U) netconsole nfs lockd fscache nfs_acl autofs4 hidp rfcomm l2cap bluetooth sunrpc dm_mirror dm_mod video sbs i2c_ec button battery asus_acpi acpi_memhotplug ac ipv6 lp snd_hda_intel snd_hda_codec snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_mpu401 snd_mpu401_uart snd_rawmidi snd_seq_device parport_pc snd sg ide_cd parport floppy pcspkr cdrom i2c_nforce2 k8_edac snd_page_alloc shpchp fglrx(U) serio_raw forcedeth soundcore i2c_core edac_mc ns558 gameport sata_nv libata sd_mod scsi_mod ext3 jbd ehci_hcd ohci_hcd uhci_hcd Pid: 3346, comm: icewm Tainted: P 2.6.18-8.1.15.el5 #1 RIP: 0010:[800b1ecd] [800b1ecd] audit_syscall_exit+0x17d/0x2eb RSP: 0018:81010923bf00 EFLAGS: 00010206 RAX: 8006415f RBX: 810108022000 RCX: 81010923a000 RDX: 0080 RSI: RDI: RBP: 8e53 R08: 81010923a000 R09: 003e R10: 81012fd2c038 R11: 8002fbb9 R12: R13: R14: 81010849e040 R15: FS: 2aade830() GS:80389000() knlGS:f7fd16c0 CS: 0010 DS: ES: CR0: 8005003b CR2: 8e5b CR3: 000109257000 CR4: 06e0 Process icewm (pid: 3346, threadinfo 81010923a000, task 81010849e040) Stack: 8006415f 81010923bf58 0020 7fff5e76cc70 7fff5e76cb80 8006ade0 7fff5e76cc00 8005b3ce feff 7fff5e76cb80 Call Trace: [8006415f] do_page_fault+0x0/0x81d [8006ade0] syscall_trace_leave+0x2c/0x87 [8005b3ce] int_very_careful+0x35/0x3f Code: 81 7d 08 7a 05 00 00 75 1e 48 8b 7d 10 e8 8a af f5 ff 48 8b RIP [800b1ecd] audit_syscall_exit+0x17d/0x2eb RSP 81010923bf00 CR2: 8e5b 0Kernel panic - not syncing: Fatal exception - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Starting a VM reboots my machine
Dor Laor wrote: I added a wiki page for it: http://kvm.qumranet.com/kvmwiki/NetConsole Regards, Dor. Hi Dor, Thanks very much for doing this. For the command /sbin/modprobe netconsole netconsole=@/eth0,[EMAIL PROTECTED]/00:E0:81:2B:0C:C1 do both the IP and MAC have to be set to the listening machine? And to be clear - the nc listener is a machine on the same LAN? Thanks, Cam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Starting a VM reboots my machine
Yaniv Kaul wrote: Hi Cam, The MAC should be of the default gateway, if the listener's IP is not on the same subnet as the client's. Hi Yaniv, Well, I started netconsole as a module on machine A. It loads fine and I get this in dmesg netconsole: local port 6665 netconsole: interface eth0 netconsole: remote port 12345 netconsole: remote IP machine B's IP netconsole: remote ethernet address machine B's MAC netconsole: local IP machine A's IP netconsole: network logging started However, when I run nc -dul 12345 on machine B I get nothing displayed, even as messages get added to dmesg on machine A. Are there any common problems with netconsole that I may not be handling? Thanks, Cam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Starting a VM reboots my machine
Yaniv Kaul wrote: Common configuration errors I've encountered (made): - Firewall on Machine B - Wrong MAC for Machine B (typo) - eth0 on Machine A was not used - They were not on the same subnet. I'd verify with tcpdump that packets are indeed being sent received. Use 'tcpdump -i eth0 -n port 12345' to catch those packets. You can create your own dmesg entries by running something like: echo 'test' /dev/kmsg HTH, Y. Thanks Yaniv, those are easy to follow tips. Unfortunately, nothing is being sent (or received) according to tcpdump. Is there a setting or configuration for the network card that may be necessary to get it to work? Thanks, Cam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Starting a VM reboots my machine
Dor Laor wrote: Cam Macdonell wrote: Hi, I'm running an AMD vendor_id : AuthenticAMD cpu family : 15 model : 75 model name : AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ with 4GB of RAM and Scientific Linux 5.0. I've compiled kvm-48 on it and the compile works and loading the modules works fine, the only dmesg line referring to kvm is SELinux: initialized (dev kvm_anon_inodefs, type kvm_anon_inodefs), not configured for labeling. However, when I boot any KVM, the machine reboots. It works fine with the no-kvm flag. Has anyone else seen this behaviour? We have some instabilities with AMD. These issues are under debug these days. Can you please supply netconsole debug messages from the host. This can be very helpful. Hi Dor, I tried to hunt on my own, but I can't find much on netconsole set up. Do you have any tips or links for setting up netconsole? I'm running Scientific Linux (a RHEL5 clone). Thanks very much, Cam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] [PATCH] [RESEND] Move libkvm (v2)
Hi Hollis and Avi, I run into a compile problem with libkvm when compiling kvm-49. It caused the compile problem mentioned in my email yesterday. It has to with the line in libkvm/Makefile CFLAGS += -I $(KERNELDIR)/include when compiling kvm-49 (git or snapshot), this include points to my resident kernel's version of kvm.h instead of the local one copied with make sync LINUX=kvm git repo). in kvm-48, KERNELDIR points to the kvm-userspace/kernel/ directory (under the git repo), but in the more recent versions it changes to /lib/modules/2.6.22.9-61.fc6/build/include. Here are the compiles from kvm-48 (kvmctl.c) and 49 (libkvm.c) respectively, kvm-48: gcc -m64 -I /home/cam/research/KVM/Sakwatamau/kvm-48/kernel/include -MMD -MF ./.kvmctl.d -g -fomit-frame-pointer -Wall -fno-stack-protector -c -o kvmctl.o kvmctl.c kvm-49: cc -MMD -MF ./.libkvm.d -g -fomit-frame-pointer -Wall -fno-stack-protector -I /lib/modules/2.6.22.9-61.fc6/build/include -c -o libkvm.o libkvm.c what is KERNELDIR supposed to point to - the install location for the modules or the location of kernel source? When configuring, I tried setting --kerneldir to the repo copy, but that didn't work. Thanks, Cam Hollis Blanchard wrote: Move libkvm into its own directory. No functional changes. Signed-off-by: Hollis Blanchard [EMAIL PROTECTED] --- I've build-tested this pretty thoroughly on x86(32). Changes from v1: update libkvm.h #include guard macro. diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -5,16 +5,17 @@ DESTDIR= rpmrelease = devel -.PHONY: kernel user qemu bios clean +.PHONY: kernel user libkvm qemu bios clean -all: $(if $(WANT_MODULE), kernel) user qemu +all: $(if $(WANT_MODULE), kernel) user libkvm qemu kcmd = $(if $(WANT_MODULE),,@\#) -qemu kernel user: +qemu kernel user libkvm: $(MAKE) -C $@ -qemu: user +qemu: libkvm +user: libkvm bios: $(MAKE) -C $@ @@ -41,7 +42,7 @@ install-rpm: install: $(kcmd)make -C kernel DESTDIR=$(DESTDIR) install - make -C user DESTDIR=$(DESTDIR) install + make -C libkvm DESTDIR=$(DESTDIR) install make -C qemu DESTDIR=$(DESTDIR) install tmpspec = .tmp.kvm.spec @@ -59,6 +60,7 @@ srpm: sed 's/^Release:.*/Release: $(rpmrelease)/' kvm.spec $(tmpspec) tar czf SOURCES/kvm.tar.gz qemu tar czf SOURCES/user.tar.gz user + tar czf SOURCES/libkvm.tar.gz libkvm tar czf SOURCES/kernel.tar.gz kernel tar czf SOURCES/scripts.tar.gz scripts cp Makefile configure kvm_stat SOURCES @@ -66,7 +68,7 @@ srpm: $(RM) $(tmpspec) clean: - for i in $(if $(WANT_MODULE), kernel) user qemu; do \ + for i in $(if $(WANT_MODULE), kernel) user libkvm qemu; do \ make -C $$i clean; \ done rm -f config.mak user/config.mak diff --git a/configure b/configure --- a/configure +++ b/configure @@ -108,8 +108,8 @@ fi #configure qemu (cd qemu; ./configure --target-list=$target_exec \ ---disable-kqemu --extra-cflags=-I $PWD/../user $qemu_cflags \ ---extra-ldflags=-L $PWD/../user $qemu_ldflags \ +--disable-kqemu --extra-cflags=-I $PWD/../libkvm $qemu_cflags \ +--extra-ldflags=-L $PWD/../libkvm $qemu_ldflags \ --enable-kvm --kernel-path=$libkvm_kerneldir \ ${enable_alsa:+--enable-alsa} \ ${disable_vnc_tls:+--disable-vnc-tls} \ diff --git a/libkvm/Makefile b/libkvm/Makefile new file mode 100644 --- /dev/null +++ b/libkvm/Makefile @@ -0,0 +1,37 @@ +include ../config.mak +include config-$(ARCH).mak + +# cc-option +# Usage: OP_CFLAGS+=$(call cc-option, -falign-functions=0, -malign-functions=0) +cc-option = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \ + /dev/null 21; then echo $(1); else echo $(2); fi ;) + +CFLAGS += $(autodepend-flags) -g -fomit-frame-pointer -Wall +CFLAGS += $(call cc-option, -fno-stack-protector, ) +CFLAGS += $(call cc-option, -fno-stack-protector-all, ) +CFLAGS += -I $(KERNELDIR)/include + +LDFLAGS += $(CFLAGS) + +CXXFLAGS = $(autodepend-flags) + +autodepend-flags = -MMD -MF $(dir $*).$(notdir $*).d + + +all: libkvm.a + +libkvm.a: libkvm.o + $(AR) rcs $@ $^ + +install: + install -D libkvm.h $(DESTDIR)/$(PREFIX)/include/libkvm.h + install -D $(KERNELDIR)/include/linux/kvm.h \ + $(DESTDIR)/$(PREFIX)/include/linux/kvm.h + install -D $(KERNELDIR)/include/linux/kvm_para.h \ + $(DESTDIR)/$(PREFIX)/include/linux/kvm_para.h + install -D libkvm.a $(DESTDIR)/$(PREFIX)/$(LIBDIR)/libkvm.a + +-include .*.d + +clean: + $(RM) *.o *.a .*.d diff --git a/libkvm/config-i386.mak b/libkvm/config-i386.mak new file mode 100644 --- /dev/null +++ b/libkvm/config-i386.mak @@ -0,0 +1,2 @@ + +LIBDIR := /lib diff --git a/libkvm/config-x86_64.mak b/libkvm/config-x86_64.mak new file mode 100644 --- /dev/null +++ b/libkvm/config-x86_64.mak @@ -0,0 +1,2 @@
Re: [kvm-devel] [PATCH] [RESEND] Move libkvm (v2)
Hollis Blanchard wrote: I think the KERNELDIR change is a red herring: you probably ran configure with different arguments. Hi Hollis, The only one I run with is --prefix. It seems Avi latest patches fix the problem (although I'm not sure how): With Avi's latest changes, this now the compile line for libkvm.o. gcc -MMD -MF ./.libkvm.d -g -fomit-frame-pointer -Wall -fno-stack-protector -I /compsci/brule7/cshome/cam/research/KVM/kvm-userspace/kernel/include -c -o libkvm.o libkvm.c Thanks for your reply, Cam I notice that the kvm-49 build line below is missing -m64. Try this: diff --git a/libkvm/config-x86_64.mak b/libkvm/config-x86_64.mak --- a/libkvm/config-x86_64.mak +++ b/libkvm/config-x86_64.mak @@ -1,2 +1,5 @@ LIBDIR := /lib64 + +CFLAGS += -m64 +CFLAGS += -D__x86_64__ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Working on an entry-level project
Jindrich Makovicka wrote: On Mon, 15 Oct 2007 08:33:43 -0600 Cam Macdonell [EMAIL PROTECTED] wrote: Jindrich Makovicka wrote: On Sat, 13 Oct 2007 12:39:15 +0200 Even if it doesn't bring any performance benefits, I think that having a smoothly moving mouse cursor is useful, if you intend to run a desktop operating system inside QEMU. The current refresh rate QEMU uses is quite low and the mouse interactivity is poor in comparison with vmware + vmware tools. I am currently using the attached patch to improve the mouse interactivity - it shortens the screen refresh interval to 10 ms when the mouse or keyboard is active, and returns to 30 ms after a 100 ms inactivity period. Hi Jindrich, Thanks for posting this. Is there a particular guest that you find best demonstrates this? IMO any guest that uses the mouse. I use KVM to run WindowsXP, where the effect is clearly visible, but it will be the same in XWindow. Hi Jindrich, Sorry for the delay in getting on this. I notice your patch stalls the system when -vnc is used. Do you have any idea why? I'll look into it, but I thought I should check with you first. Thanks, Cam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Working on an entry-level project
Dor Laor wrote: Cam Macdonell wrote: It's a simple test, when there are keyboard/mouse/display changes keep the refresh rate high. When there are no changes start decrease the rate until a minimum reached. The performance benefit should also be checked since if it minimal there's no use for this optimization. Related to that, what is the status of VMGL's (http://www.cs.toronto.edu/~andreslc/xen-gl/) integration with KVM or QEMU? Has anyone tried it? I've found some pages that refer to QEMU and VMGL but nothing definitive. Go ahead, there claim it can work with qemu. Try first with qemu since it is the repository to contribute the code to. KVM will inherit it from qemu. Is there a way to test with QEMU that is not painfully slow? Cam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Working on an entry-level project
Dor Laor wrote: Cam Macdonell wrote: You may choose the interactivity improvements:in http://kvm.qumranet.com/kvmwiki/TODO Dor Thanks Dor, I'll look into it. Beyond the description, can you elaborate on the problem with frame rate during interactivity? Is the a simple test that reveals the problem? Related to that, what is the status of VMGL's (http://www.cs.toronto.edu/~andreslc/xen-gl/) integration with KVM or QEMU? Has anyone tried it? I've found some pages that refer to QEMU and VMGL but nothing definitive. Cam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
[kvm-devel] Working on an entry-level project
Hi, I'm interested in working on one of the entry-level projects on the TODO list to get my feet wet with the code. My preference is allowing CPU features to be passed to the guest. So I two things: I want to check if anyone is working on these already and if not can someone please expand a little on what is wanted? Any feedback or pointers on what features would be most useful is also welcome. Thanks, Cam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Working on an entry-level project
Izik Eidus wrote: Cam Macdonell wrote: Hi, sorry, but patch for that feature was already wrote by someone. but you are more than welcome to try/ask about something else. Ah, I should've searched the list. Is there another project of similar scope that would be of use? Thanks, Cam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
[kvm-devel] Reboot crashes with FC6
Hi, Rebooting a FC6 guest crashes with KVM-45, below is the output. exception 13 (0) rax rbx rcx rdx 0600 rsi rdi rsp rbp r8 r9 r10 r11 r12 r13 r14 r15 rip 0001 rflags 00033046 cs f000 (000f/ p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) ds (/ p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) es (/ p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) ss (/ p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) fs (/ p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) gs (/ p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) tr 0040 (80c0/2088 p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0) ldt (/ p 1 dpl 0 db 0 s 0 type 2 l 0 g 0 avl 0) gdt 0/ idt 0/ cr0 6010 cr2 0 cr3 0 cr4 0 cr8 0 efer 0 code: 00 00 00 00 ea 5b e0 00 f0 30 39 2f 31 30 2f 30 37 00 fc fc -- fc fa b8 18 00 00 00 8e d8 8e c0 8e d0 8d 66 40 e8 00 00 00 00 5d 81 ed 15 00 00 00 b8 60 Is this the expected behaviour? Is there a flag that is needed for rebooting? I know that it can depend on the guest OS. Thanks, Cam - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] What happens on an INT80 instruction
Anthony Liguori wrote: Cameron Macdonell wrote: Hi, I'm trying to understand guest virtualization at the lower levels. I have a somewhat basic question: How does KVM virtualize an int80 instruction from a guest? A pointer to an answer is just as good as an answer itself. The same thing happens as it does on normal hardware. The way VT/SVM works (at a high level), is that certain instructions and events check a special area called the VMCS/VMCB to determine whether the event should generate a vmexit which is really just a special type of trap. Thanks Anthony. Does an int80 from an application in the guest always cause a vmexit (in kvm's case at least)? Thanks, Cam There are no hooks for interrupts 32-255 so the hardware operates as it normally would. If you're interested in getting a trap for int80 within KVM, you'll have to trap sidt/lidt and virtualize the IDT. You'll need to setup a fake IDT and have the int80 handler do a hypercall. This is complicated if the guest is using a fast-syscall mechanism. It may be a little challenging finding a piece of guest memory to take over that has a valid virtual mapping. To solve this in the general case, you'll need to have the guest be aware of a memory hole. If you can limit yourself to things like Linux and Windows, you can probably just rely on some memory within the BIOS area (both Linux and Windows always have valid mappings of the BIOS memory). If you need to enforce that int80s go to you, you'll need to write-protect this memory too. Regards, Anthony Liguori Thanks, Cam - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] What happens on an INT80 instruction
Anthony Liguori wrote: Cam Macdonell wrote: Anthony Liguori wrote: Cameron Macdonell wrote: Hi, I'm trying to understand guest virtualization at the lower levels. I have a somewhat basic question: How does KVM virtualize an int80 instruction from a guest? A pointer to an answer is just as good as an answer itself. The same thing happens as it does on normal hardware. The way VT/SVM works (at a high level), is that certain instructions and events check a special area called the VMCS/VMCB to determine whether the event should generate a vmexit which is really just a special type of trap. Thanks Anthony. Does an int80 from an application in the guest always cause a vmexit (in kvm's case at least)? No, an int80 would never generate a trap in KVM. The only way to make it generate a trap is for an int80 to trigger some other event that would generate a trap. This is what I meant by taking over the guest's IDT such that you could change the int80 handler to do a hypercall. I presume you're looking into doing a guest IDS right? Actually, I looking into doing a PhD dissertation :) I'm just trying to get a better working understanding of how kvm (and other VMMs) handle instructions like int80 that should trap into the OS, but of course in a VM need to trap into the guest OS (which is running at user-level) and not the host OS. Do traps by a guest app to the guest OS involve the VMM at all? Pardon my ignorance, what is IDS? Thanks, Cam - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] kvm, ubuntu 7.10 vmware
Jared Greenwald wrote: I'm trying to get a pre-built vmware image of Windows running on ubuntu 7.10. I tried running qemu directly on the vmdk file, but that is extremely slow. For example, it takes about a minute to get the context menu to come up when you right-click on the desktop. I tried converting the vmdk to qcow, qcow2 and raw formats, but I get an error saying that the drive is not bootable. I looked through the help pages and there is information about loading the kvm-intel module, but I'm getting the not supported error message. I looked into updating the bios as this is usually pointed to as the cause and it appears I'm at the most recent version. So, the question is, am I missing something or am I doing something wrong? To be clear, are you running modprobe kvm_intel and it's returning not supported? Did you install kvm with apt-get? When you run cat /proc/cpuinfo | grep flags, do you see vmx in the list of flags? Cam - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] kvm, ubuntu 7.10 vmware
Jared Greenwald wrote: On 9/26/07, Cam Macdonell [EMAIL PROTECTED] wrote: Jared Greenwald wrote: I'm trying to get a pre-built vmware image of Windows running on ubuntu 7.10. I tried running qemu directly on the vmdk file, but that is extremely slow. For example, it takes about a minute to get the context menu to come up when you right-click on the desktop. I tried converting the vmdk to qcow, qcow2 and raw formats, but I get an error saying that the drive is not bootable. I looked through the help pages and there is information about loading the kvm-intel module, but I'm getting the not supported error message. I looked into updating the bios as this is usually pointed to as the cause and it appears I'm at the most recent version. To be clear, are you running modprobe kvm_intel and it's returning not supported? Did you install kvm with apt-get? yes, I used this page https://help.ubuntu.com/community/KVM which says to: apt-get install kvm qemu When do you get the not supported error? Have you ever had KVM running with VMs other than this Windows one? On another note, if you just want to run a VMware image, have you thought of trying VMware Player? Cam - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Using VMChannel to communicate with the host.
Dor Laor wrote: Hmm, well it's an old code that Uri will rebase for virtio so just drop it. I just thought it might help. No worries. In terms of moving to virtIO I grabbed your tree previously to look at it. To test and play around with virtIO, do I need to use your kernel (or module) in the guest? Thanks, Cam - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] breaking kvm :-)
Hi Ron, This would be interesting to try, especially if booting is noticeably faster that bochs. Did you get that how-to up? Thanks, Cam ron minnich wrote: Somebody here at OLS was asking me about linuxbios on kvm. Well, that was too much to resist. Short form: it works, uses a grub-like interface that does not use BIOS callbacks. It's noticeably faster to boot than Bochs. I realize that it's all pretty fast but linuxbios is 32-bit code, so there is pretty much no emulation to worry about. So, if anyone gets annoyed watching bochs boot, I can put a howto on the linuxbios wiki. It's pretty trivial to set up. ron - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Using VMChannel to communicate with the host.
Dor Laor wrote: You need to open the unix socket you passed to the vmchannel parameter. An easier alternative is to use -vmchannel di:2258,tcp:// 0:,server. Before the guest loads you'll need to telnet the port and then you should receive the hello world output once the driver is up. -Dor I tried having a program listening on the unix domain socket. Actually, the VM won't even start until a program connects to the socket. I didn't get the message with my listening program, but I'll try the telnet method as I haven't programmed a socket in a while so I may have missed a step. Go for it, its 1 minute effort. Hi Dor, It didn't work. I used the following option: -vmchannel di:2258,tcp:0:,server (the // confused kvm) and when the VM booted, I connected with telnet localhost which allowed the boot to proceed. But, I didn't get the hello host message when I loaded the hypercall module. dmesg did show that the module loaded successfully. I'll dig around with it and see what else I can figure out While getting this working is novel to me, it seems from your email that not much can be done with the hypercall interface in terms of host-VM or VM-to-VM communication, correct? If reading and writing don't work, how can one exchange info between VMs? I'll look forward to the virtIO implementation. The vmchannel was not intended to VM-to-VM networking, although it can work. Next version will be better. Anyway, it should have similar performance to pv network driver. Cool. Thanks, Cam - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
[kvm-devel] Using VMChannel to communicate with the host.
Hi, I'm trying to get a better understanding of VM-to-host communication that doesn't involve going over virtual networks. I understand there are a couple of developments underway, but I just want to play around a better sense of things. I think the current hypercall mechanism is the current way to do this using the -vmchannel option. But, I'm not very experienced with PCI devices and their drivers so I need some help. All I want to do is to communicate across a unix domain socket on the host. Besides loading the hypercall module in the guest how do things needs to be configured on the host? Is there a simple tutorial or just a webpage with examples for how to do this? Thanks, Cam - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] sharing memory
Dor Laor wrote: You have the following options: 1. A plain tcp/ip from guest to host (you probably considered that ahh) 2. We have a virtual device in qemu called vmchannel it is visible as pci device in the guest. Currently they communicate using port io, it will soon change to virtio interace (shared memry). It is goo for guest-host communication. Hi Dor, How is VMChannel setup to be used? Does it require using the KVM kernel in the guest or is there a less intrusive way to use it? Thanks, Cam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] [RFC][PATCH 5/6][KVM VIRTIO] Add the network device code
Luca wrote: On 8/29/07, Cam Macdonell [EMAIL PROTECTED] wrote: I get this error: [EMAIL PROTECTED] ~/research/KVM]$ git clone --reference kvm git://kvm.qumranet.com/home/dor/src/virtio/kvm.git kvm.dor Initialized empty Git repository in /home/cam/research/KVM/kvm.dor/.git/ fatal: The remote end hung up unexpectedly fetch-pack from 'git://kvm.qumranet.com/home/dor/src/virtio/kvm.git' failed. Is there a problem with the repositor or am I doing something wrong? The command is correct. It seems that either the repository is not configured for export or the path is wrong. Luca Hi Dor, I can't seem to grab your tree. Is your repository setup properly? Thanks, Cam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] [RFC][PATCH 5/6][KVM VIRTIO] Add the network device code
Luca wrote: On 8/29/07, Cam Macdonell [EMAIL PROTECTED] wrote: Dor Laor wrote: The code can now be accessed by git: git://kvm.qumranet.com/home/dor/src/virtio/kvm (kernel) and git://kvm.qumranet.com/home/dor/src/virtio/kvm-userspace. branch name virt-final. --Dor I'm really new to git and don't quite grasp it's subtleties. Do I have to git clone your kvm kernel and user-space repos or is there some way to use your branch as a branch off Avi's? I tried finding an online reference, but none seem to cover this kind of setup. If Dor's repository is based on the Avi's one (I think so) you can pull virt-final branch as a branch of you existing repository (see refspec parameter in git-pull). This is error prone though (after a while I tend to pull the wrong tree into the wrong branch ;-) ) I prefer to clone the whole tree (disk space is cheap...), sharing GIT object where possible, e.g. git clone --reference kvm.avi git://kvm.qumranet.com/home/dor/src/virtio/kvm kvm.dor Thanks Luca, I get this error: [EMAIL PROTECTED] ~/research/KVM]$ git clone --reference kvm git://kvm.qumranet.com/home/dor/src/virtio/kvm.git kvm.dor Initialized empty Git repository in /home/cam/research/KVM/kvm.dor/.git/ fatal: The remote end hung up unexpectedly fetch-pack from 'git://kvm.qumranet.com/home/dor/src/virtio/kvm.git' failed. Is there a problem with the repositor or am I doing something wrong? Thanks, Cam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
[kvm-devel] Using the VNC option
Hello, I'm a little stumped in running the -vnc option for KVM. I am unable to connect my vncviewer. Even just running through localhost won't work. I specify -vnc localhost:5001, but vncviewer won't connect. Can someone point me to a simple example of using the vnc option. The man page refers to a display as the argument to -vnc, I'm unclear what this means. Thanks, Cam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Another unhandled vm exit: 0x9
Avi Kivity wrote: Cam Macdonell wrote: Avi Kivity wrote: Hi, I had this same problem. I have an old XP image that would not run under kvm-35. It was installed with the kvm that is packaged with Ubuntu Feisty (kvm-27, I believe). After I upgraded, it crashes during boot. How can I check the HAL it uses? Windows device manager, under 'Computer'. I see MPS Uniprocessor PC. This image was installed with kvm. I still have it around if you would like me to do some debugging with it. Can you check which kvm version caused the regression? It works under KVM-16 (which is the version that ships with Feisty) and up to kvm-24 (I did a manual binary search so a few versions were skipped). versions 25, 26, 27 stall at boot (I wait several minutes but Windows never starts) and crashing with unhandled vm exit: 0x9 happens with KVM-33. I'm not on which precise version where the crashing begins (let me know if that would be useful). A possibly unimportant note, I noticed that the later versions (above 27) compile the executable as qemu-system-x86_64 where as earlier versions build it as qemu. My system is a Centrino Duo, so it's a i386. I'm not sure if this matters but I just thought I would mention it. Let me know if you have any more questions, Cam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
[kvm-devel] tun/tap kernel module
Hi, I'm trying to setup networking on FC6. Where can I find the tun/tap interface? I realize this is almost a RTFM question, but I just haven't been able to find it. If someone could point me to a RPM or yum repo that would be great. Thanks, Cam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] Another unhandled vm exit: 0x9
Avi Kivity wrote: Weiyang Chen wrote: A hardware task switch is sometimes used when a guest detects a serious error and wants to switch to a known condition. Sometimes it happens accidentally due to a previous error. Was this image installed using kvm? What HAL does it use? Hi, I had this same problem. I have an old XP image that would not run under kvm-35. It was installed with the kvm that is packaged with Ubuntu Feisty (kvm-27, I believe). After I upgraded, it crashes during boot. How can I check the HAL it uses? I still have it around if you would like me to do some debugging with it. Cam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] kvm for Ubuntu 7.04 (was Re: a (bad) kvm story from a plain user)
Avi Kivity wrote: Jorge Lucángeli Obes wrote: Thanks for the help, that compiled the userspace part. I need the new kernel module (kvm-intel.ko), can I take it from the kernel tree some way or do I have to use the whole KVM kernel? You should be able to compile it without having to compile the whole kernel. That's what one does with release versions, so it has to be possible. However, I've been working with the userspace part, so I've not yet tried it. Maybe someone else can comment? It's probably just Makefile dark magic. make -C kernel sync LINUX=/path/to/your/linux/repo Hi Avi, If I run that in the userspace repo it moves some files but doesn't actually compile anything. Sorry to be dense about this, but are there any other steps? Thanks, Cam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] kvm for Ubuntu 7.04 (was Re: a (bad) kvm story from a plain user)
Jorge Lucángeli Obes wrote: On 8/15/07, Cam Macdonell [EMAIL PROTECTED] wrote: Koen de Jonge (ProcoliX) wrote: Slohm Gadaburi wrote: hi ppl, I am grateful for the help and tips I've been given here on the earlier thread. I just want to summarize the bits I've collected, please confirm :) On an up-to-date Ubuntu 7.04 machine: - install kvm+qemu packages - install the gcc-3.4 package (hopefully it will not overwrite my gcc 4.x ?) - download kvm-35 - configure it without the --patched flag (will it automatically find the gcc-3 ?) - insmod the just-build kvm-(amd|intel) module - make sure i run the qemu binaries supplied from the kvm35 package that should do the trick ? I'm trying to compile kvm-35 (from the git repository) on Ubuntu Feisty (all up to date) and I get the following error: [EMAIL PROTECTED]:~/src/KVM/kvm-userspace$ sudo make make -C kernel make[1]: Entering directory `/home/cam/src/KVM/kvm-userspace/kernel' make -C /lib/modules/2.6.20-15-generic/build M=`pwd` $@ make[2]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic' make[3]: *** No rule to make target `/home/cam/src/KVM/kvm-userspace/kernel/svm.o', needed by `/home/cam/src/KVM/kvm-userspace/kernel/kvm.o'. Stop. make[2]: *** [_module_/home/cam/src/KVM/kvm-userspace/kernel] Error 2 make[2]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/cam/src/KVM/kvm-userspace/kernel' make: *** [kernel] Error 2 I have to admit that I'm a little fuzzy on the modules that are needed to build a particular kvm release (and where to get them from). Initially, I used Ubuntu's apt install and then moved on to buidling kvm-33 from source tar ball which built fine. But, the kvm-33 tarball had the svm source files in the the kernel directory. I notice those files are not in the kvm-35 kernel directory (and are causing the failure above). Is there some other repo svm files are part of? When I compile from GIT, I use both kvm-userspace.git and kvm.git (kernel). The files that are missing are the kernel part of KVM. You could clone kvm.git too: git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm.git and use the following line: ./configure --with-patched-kernel --kerneldir=path-to-local-kvm.git Thanks for the help, that compiled the userspace part. I need the new kernel module (kvm-intel.ko), can I take it from the kernel tree some way or do I have to use the whole KVM kernel? Thanks, Cam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
[kvm-devel] paravirtualized block devices
Hi, I'm interested in the performance of paravirtualized block devices under KVM. I've seen some previous posts about various patches. I was wondering what the current state of their development is and where I could find a simple how-to to get them set up? I realize this request may be vague, I'm a bit of a noob to KVM, if I can provide further details please let me know. Thanks, Cam - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel