public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <mtosatti@redhat.com>
To: Hollis Blanchard <hollisb@us.ibm.com>
Cc: Avi Kivity <avi@qumranet.com>, kvm-devel <kvm@vger.kernel.org>,
	"Zhang, Xiantao" <xiantao.zhang@intel.com>
Subject: Re: KVM: MMU: nuke shadowed pgtable pages and pte's on memslot destruction
Date: Mon, 21 Jul 2008 18:34:40 -0300	[thread overview]
Message-ID: <20080721213440.GA15961@dmt.cnet> (raw)
In-Reply-To: <1216674207.22095.18.camel@localhost.localdomain>

On Mon, Jul 21, 2008 at 04:03:27PM -0500, Hollis Blanchard wrote:
> On Thu, 2008-07-10 at 20:49 -0300, Marcelo Tosatti wrote:
> > diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c
> > index b850d24..2c438a7 100644
> > --- a/arch/powerpc/kvm/powerpc.c
> > +++ b/arch/powerpc/kvm/powerpc.c
> > @@ -170,6 +170,11 @@ int kvm_arch_set_memory_region(struct kvm *kvm,
> >         return 0;
> >  }
> > 
> > +void kvm_arch_flush_shadow(struct kvm *kvm)
> > +{
> > +       return;
> > +}
> > +
> >  struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm, unsigned int
> > id)
> >  {
> >         struct kvm_vcpu *vcpu;
> 
> By the way, what is the testcase for this, i.e. how do I remove a
> memslot?

The testcase I used was RH6.2 graphical install, which changes the
cirrus mode from linear frame buffer to the standard one, thus
destroying the vram memory slot (should be able to do that with the
framebuffer driver).

All you need on this callback is destroy all shadow mappings, to avoid
the MMU code from referencing a memslot that is no longer existant.

  reply	other threads:[~2008-07-21 21:38 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-04  1:06 KVM: MMU: nuke shadowed pgtable pages and pte's on memslot destruction Marcelo Tosatti
2008-07-05 17:25 ` Avi Kivity
2008-07-05 19:23   ` Marcelo Tosatti
2008-07-05 21:15     ` Avi Kivity
2008-07-07 17:31       ` Marcelo Tosatti
2008-07-07 19:58         ` Marcelo Tosatti
2008-07-10 14:42           ` Avi Kivity
2008-07-10 18:58             ` Hollis Blanchard
2008-07-10 23:49               ` Marcelo Tosatti
2008-07-11 14:48                 ` Avi Kivity
2008-07-21 21:03                 ` Hollis Blanchard
2008-07-21 21:34                   ` Marcelo Tosatti [this message]
2008-07-21 22:22                     ` Hollis Blanchard
2008-07-22  5:18                   ` Avi Kivity
2008-07-10 23:54             ` Marcelo Tosatti
2008-07-11 15:09               ` Avi Kivity

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=20080721213440.GA15961@dmt.cnet \
    --to=mtosatti@redhat.com \
    --cc=avi@qumranet.com \
    --cc=hollisb@us.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=xiantao.zhang@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox