[kvm-devel] KVM and Perf Counters

2007-01-09 Thread Casey Jeffery
I've tried out the last few versions of KVM and think it's great. It's much easier to use and understand than Xen and performance is surprisingly good. One of the things I'd like to do is modify it to allow PMI generation based on the Intel performance counter facilities. Specifically, I'd like to

Re: [kvm-devel] exception 13 (0) ???

2007-01-19 Thread Casey Jeffery
Vineet: You probably need to provide more hardware details since it's likely something specific to that. Ubuntu 6.10 works fine for me after installing it with -no-kvm or on bare h/w and then booting the image with QEMU/KVM. The msr message isn't an error; it's just stating that the MSR_EFER and M

Re: [kvm-devel] KVM and Perf Counters

2007-02-01 Thread Casey Jeffery
ers experienced in this area. Thanks, Casey On 1/10/07, Avi Kivity <[EMAIL PROTECTED]> wrote: > Casey Jeffery wrote: > > I've tried out the last few versions of KVM and think it's great. It's > > much easier to use and understand than Xen and performance is >

Re: [kvm-devel] KVM and Perf Counters

2007-02-01 Thread Casey Jeffery
Thanks for the very quick response. You guys at Qumranet are good. :) On 2/1/07, Dor Laor <[EMAIL PROTECTED]> wrote: > >The main questions I have at the moment are the following: > > > >1. What is the best way to start and ID multiple guests? I've just > >been configuring a script to start up two

Re: [kvm-devel] KVM and Perf Counters

2007-02-01 Thread Casey Jeffery
On 2/1/07, Avi Kivity <[EMAIL PROTECTED]> wrote: > Casey Jeffery wrote: > > 1. What is the best way to start and ID multiple guests? I've just > > been configuring a script to start up two of them from the > > command-line and storing an ID in the kvm_vcpu structure

Re: [kvm-devel] kvm-devel Digest, Vol 6, Issue 61

2007-03-28 Thread Casey Jeffery
I was messing around with using the perf counters a couple weeks ago as a way to get deterministic exits in the instruction stream of the guest. I used the h/w msr save/restore area to disable the counters and save the values on guest exit and restore them on entry. I also set up the LVT to deliver

Re: [kvm-devel] kvm-devel Digest, Vol 6, Issue 61

2007-04-03 Thread Casey Jeffery
Stephane, I'm glad you found this; I thought I was going to have to repost while actually remembering to change the subject line. > On Wed, Mar 28, 2007 at 01:02:47PM -0400, Casey Jeffery wrote: > > I was messing around with using the perf counters a couple weeks ago >

Re: [kvm-devel] kvm-devel Digest, Vol 6, Issue 61

2007-04-04 Thread Casey Jeffery
Stephane > > >There may be some propagation delay yet you, supposedly, do not suffer > > >from masked > > >interrupt windows. Also something to watch out for is that when you restore > > >you must make sure that msrs upper bits are set to 1. Otherwise you may > > >trigger > > >unvoluntary interrup

[kvm-devel] Recursive virtualization

2007-04-04 Thread Casey Jeffery
I swear this has been brought up before in this forum, but I can't find it. I'm curious what the virtualization gurus in this forum think of the possibilities for recursive virtualization. I know vbox claims to support it, but I haven't come across many details on how they do it and I don't think t

Re: [kvm-devel] Recursive virtualization

2007-04-04 Thread Casey Jeffery
Dor, Thanks, I realize there will certainly be a lot of work in virtualizing them. Maybe Intel can help out with VVT-x to give a root-root mode. ;) Any idea at a high level how vbox does it? I will post in their forum, but I assume somebody here has a good idea. Thanks. On 4/4/07, Dor Laor <[EM

[kvm-devel] setup_msrs()

2007-04-24 Thread Casey Jeffery
I just wanted to make the comment that the vmx_msr_index[] array should probably have a note indicating that MSR_K6_STAR is always assumed to be the last entry in the array by setup_msrs(). This just caused me some trouble when I updated to the latest code. Thanks, Casey -