kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Takuya Yoshikawa <takuya.yoshikawa@gmail.com>
To: avi@redhat.com, mtosatti@redhat.com
Cc: kvm@vger.kernel.org, yoshikawa.takuya@oss.ntt.co.jp
Subject: [PATCH 0/1 v2] KVM: MMU: Use ptep_user for cmpxchg_gpte()
Date: Sun, 1 May 2011 14:30:26 +0900	[thread overview]
Message-ID: <20110501143026.9eb3c875.takuya.yoshikawa@gmail.com> (raw)

Changelog v1->v2:
  Added error handling for get_user_pages_fast() failure

Tested with NPT off:

  paging64_walk_addr_generic() {
    get_cr3();
    translate_gpa();
    gfn_to_hva();
    kvm_is_error_hva();
    _cond_resched();
    translate_gpa();
    gfn_to_hva();
    kvm_is_error_hva();
    _cond_resched();
    translate_gpa();
    gfn_to_hva();
    kvm_is_error_hva();
    _cond_resched();
    translate_gpa();
    gfn_to_hva();
    kvm_is_error_hva();
    _cond_resched();
    paging64_cmpxchg_gpte() {
      get_user_pages_fast() {
        gup_pud_range() {
          gup_pte_range();
        }
      }
      kvm_release_page_dirty() {
        kvm_release_pfn_dirty() {
          kvm_set_pfn_dirty();
          kvm_release_pfn_clean() {
            put_page();
          }
        }
      }
    }
    mark_page_dirty();
    translate_gpa();
  }

             reply	other threads:[~2011-05-01  5:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-01  5:30 Takuya Yoshikawa [this message]
2011-05-01  5:33 ` [PATCH 1/1 v2] KVM: MMU: Use ptep_user for cmpxchg_gpte() Takuya Yoshikawa
2011-05-04 11:16   ` Marcelo Tosatti
2011-05-04 11:44     ` Avi Kivity
2011-05-04 11:58       ` Marcelo Tosatti
2011-05-04 12:11         ` Avi Kivity
2011-05-04 14:00           ` Takuya Yoshikawa
2011-05-04 14:27             ` Avi Kivity
2011-05-04 16:13   ` Marcelo Tosatti

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=20110501143026.9eb3c875.takuya.yoshikawa@gmail.com \
    --to=takuya.yoshikawa@gmail.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    --cc=yoshikawa.takuya@oss.ntt.co.jp \
    /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;
as well as URLs for NNTP newsgroup(s).