All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: Avi Kivity <avi@redhat.com>
Cc: kvm@vger.kernel.org, kraxel@redhat.com, anthony@codemonkey.ws,
	Sander.Vanleeuwen@sun.com, zach@vmware.com, brogers@novell.com
Subject: Re: [PATCH] Activate Virtualization On Demand v3
Date: Wed, 05 Nov 2008 12:55:20 +0100	[thread overview]
Message-ID: <491189A8.4040405@suse.de> (raw)
In-Reply-To: <4911885B.3040703@redhat.com>

Avi Kivity wrote:
> Alexander Graf wrote:
>> X86 CPUs need to have some magic happening to enable the virtualization
>> extensions on them. This magic can result in unpleasant results for
>> users, like blocking other VMMs from working (vmx) or using invalid TLB
>> entries (svm).
>>
>> Currently KVM activates virtualization when the respective kernel module
>> is loaded. This blocks us from autoloading KVM modules without breaking
>> other VMMs.
>>
>> To circumvent this problem at least a bit, this patch introduces on
>> demand activation of virtualization. This means, that instead
>> virtualization is enabled on creation of the first virtual machine
>> and disabled on removal of the last one.
>>
>> So using this, KVM can be easily autoloaded, while keeping other
>> hypervisors usable.
>>
>> v2 adds returns to non-x86 hardware_enables and adds IA64 change
>> v3 changes:
>>   - use spin_lock instead of atomics
>>   - put locking to new functions hardware_{en,dis}able_all that get
>> called
>>     on VM creation/destruction
>>   - remove usage counter checks where not necessary
>>   - return -EINVAL for IA64 slot < 0 case
>>
>>   
>
> Is this v3 with all the latest changes?  it precedes some messages
> where you say you'll change things by about 40 minutes.

Yeah, my clock was off. Somehow I get host time drifts sometimes when
using KVM and my NTP client wasn't running. But maybe it's just me doing
something wrong.

> In any case, I'll defer applying until Eduardo's kdump/reboot changes
> go in, since they touch the same places, and Eduardo's changes are
> much harder to test.

I agree.
Apart from that, do I get an ACK for it, so I can at least put it into
our package and rest assured nothing obvious is wrong :-)?

Alex

  reply	other threads:[~2008-11-05 11:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-05 10:41 [PATCH] Activate Virtualization On Demand v3 Alexander Graf
2008-11-05 11:49 ` Avi Kivity
2008-11-05 11:55   ` Alexander Graf [this message]
2008-11-05 12:02     ` Avi Kivity
2008-11-05 20:58 ` Eduardo Habkost
2008-11-06 12:57   ` Alexander Graf
2008-11-06 13:51     ` Eduardo Habkost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=491189A8.4040405@suse.de \
    --to=agraf@suse.de \
    --cc=Sander.Vanleeuwen@sun.com \
    --cc=anthony@codemonkey.ws \
    --cc=avi@redhat.com \
    --cc=brogers@novell.com \
    --cc=kraxel@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=zach@vmware.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.