Re: [kvm-devel] Automatically hibernate XP guest on suspend?

2008-04-25 Thread Cam Macdonell
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

Re: [kvm-devel] Sharing a page of memory between the guest and host

2008-03-12 Thread Cam Macdonell
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

[kvm-devel] Sharing a page of memory between the guest and host

2008-03-05 Thread Cam Macdonell
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

Re: [kvm-devel] VMGL support on KVM

2008-02-28 Thread Cam Macdonell
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

[kvm-devel] VMGL support on KVM

2008-02-27 Thread Cam Macdonell
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

Re: [kvm-devel] VMGL support on KVM

2008-02-27 Thread Cam Macdonell
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

Re: [kvm-devel] How-to use paravirt layer for network and block devices

2008-01-30 Thread Cam Macdonell
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.

[kvm-devel] Benchmarking warning

2008-01-25 Thread Cam Macdonell
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

Re: [kvm-devel] [virtio-net][PATCH] Don't arm tx hrtimer with a constant 500us each transmit

2007-12-18 Thread Cam Macdonell
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

Re: [kvm-devel] [virtio-net][PATCH] Don't arm tx hrtimer with a constant 500us each transmit

2007-12-18 Thread Cam Macdonell
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

Re: [kvm-devel] [virtio-net][PATCH] Don't arm tx hrtimer with a constant 500us each transmit

2007-12-17 Thread Cam Macdonell
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

Re: [kvm-devel] [virtio-net][PATCH] Don't arm tx hrtimer with a constant 500us each transmit

2007-12-14 Thread Cam Macdonell
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

Re: [kvm-devel] [ANNOUNCE] kvm-55 release

2007-12-04 Thread Cam Macdonell
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-devel] Problem with vde/dnsmasq on CentOS 5.0

2007-11-27 Thread Cam Macdonell
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

Re: [kvm-devel] Compile problem with GIT repo on Scientific Linux

2007-11-22 Thread Cam Macdonell
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

[kvm-devel] Compile problem with GIT repo on Scientific Linux

2007-11-21 Thread Cam Macdonell
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

Re: [kvm-devel] Starting a VM reboots my machine

2007-11-07 Thread Cam Macdonell
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

Re: [kvm-devel] Starting a VM reboots my machine

2007-11-06 Thread Cam Macdonell
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

Re: [kvm-devel] Starting a VM reboots my machine

2007-11-05 Thread Cam Macdonell
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

Re: [kvm-devel] Starting a VM reboots my machine

2007-11-05 Thread Cam Macdonell
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

Re: [kvm-devel] Starting a VM reboots my machine

2007-11-05 Thread Cam Macdonell
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

Re: [kvm-devel] Starting a VM reboots my machine

2007-11-02 Thread Cam Macdonell
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

Re: [kvm-devel] [PATCH] [RESEND] Move libkvm (v2)

2007-10-31 Thread Cam Macdonell
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

Re: [kvm-devel] [PATCH] [RESEND] Move libkvm (v2)

2007-10-31 Thread Cam Macdonell
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

Re: [kvm-devel] Working on an entry-level project

2007-10-31 Thread Cam Macdonell
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

Re: [kvm-devel] Working on an entry-level project

2007-10-12 Thread Cam Macdonell
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

Re: [kvm-devel] Working on an entry-level project

2007-10-11 Thread Cam Macdonell
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

[kvm-devel] Working on an entry-level project

2007-10-10 Thread Cam Macdonell
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

Re: [kvm-devel] Working on an entry-level project

2007-10-10 Thread Cam Macdonell
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

[kvm-devel] Reboot crashes with FC6

2007-10-02 Thread Cam Macdonell
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

Re: [kvm-devel] What happens on an INT80 instruction

2007-10-01 Thread Cam Macdonell
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

Re: [kvm-devel] What happens on an INT80 instruction

2007-10-01 Thread Cam Macdonell
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

Re: [kvm-devel] kvm, ubuntu 7.10 vmware

2007-09-26 Thread Cam Macdonell
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

Re: [kvm-devel] kvm, ubuntu 7.10 vmware

2007-09-26 Thread Cam Macdonell
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

Re: [kvm-devel] Using VMChannel to communicate with the host.

2007-09-18 Thread Cam Macdonell
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)

Re: [kvm-devel] breaking kvm :-)

2007-09-14 Thread Cam Macdonell
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

Re: [kvm-devel] Using VMChannel to communicate with the host.

2007-09-11 Thread Cam Macdonell
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

[kvm-devel] Using VMChannel to communicate with the host.

2007-09-07 Thread Cam Macdonell
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

Re: [kvm-devel] sharing memory

2007-09-04 Thread Cam Macdonell
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

Re: [kvm-devel] [RFC][PATCH 5/6][KVM VIRTIO] Add the network device code

2007-09-03 Thread Cam Macdonell
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

Re: [kvm-devel] [RFC][PATCH 5/6][KVM VIRTIO] Add the network device code

2007-08-29 Thread Cam Macdonell
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

[kvm-devel] Using the VNC option

2007-08-24 Thread Cam Macdonell
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

Re: [kvm-devel] Another unhandled vm exit: 0x9

2007-08-23 Thread Cam Macdonell
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

[kvm-devel] tun/tap kernel module

2007-08-23 Thread Cam Macdonell
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

Re: [kvm-devel] Another unhandled vm exit: 0x9

2007-08-21 Thread Cam Macdonell
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

Re: [kvm-devel] kvm for Ubuntu 7.04 (was Re: a (bad) kvm story from a plain user)

2007-08-16 Thread Cam Macdonell
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

Re: [kvm-devel] kvm for Ubuntu 7.04 (was Re: a (bad) kvm story from a plain user)

2007-08-15 Thread Cam Macdonell
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

[kvm-devel] paravirtualized block devices

2007-08-06 Thread Cam Macdonell
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