From: Joerg Roedel <joro@8bytes.org>
To: Avi Kivity <avi@redhat.com>
Cc: Joerg Roedel <joerg.roedel@amd.com>,
Marcelo Tosatti <mtosatti@redhat.com>,
kvm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] kvm mmu: add support for 1GB pages in shadow paging code
Date: Sun, 29 Mar 2009 14:50:41 +0200 [thread overview]
Message-ID: <20090329125041.GI31080@8bytes.org> (raw)
In-Reply-To: <49CF629E.9080403@redhat.com>
On Sun, Mar 29, 2009 at 02:59:26PM +0300, Avi Kivity wrote:
> Joerg Roedel wrote:
>> return write_protected;
>> }
>> @@ -789,11 +797,14 @@ static int kvm_handle_hva(struct kvm *kvm,
>> unsigned long hva,
>> if (hva >= start && hva < end) {
>> gfn_t gfn_offset = (hva - start) >> PAGE_SHIFT;
>> unsigned long lidx = gfn_offset / KVM_PAGES_PER_2M_PAGE;
>> + unsigned long hidx = gfn_offset / KVM_PAGES_PER_1G_PAGE;
>> retval |= handler(kvm, &memslot->rmap[gfn_offset],
>> KVM_PAGE_SIZE_4k);
>> retval |= handler(kvm,
>> &memslot->lpage_info[lidx].rmap_pde,
>> KVM_PAGE_SIZE_2M);
>> + retval |= handler(kvm, &memslot->hpage_info[hidx].rmap_pde,
>> + KVM_PAGE_SIZE_1G);
>> }
>> }
>>
>
> Isn't this needed for tdp as well?
Hmm, yes. But it may be no problem not doing it because large pages are
never swapped out. Anyway, I will move this to the tdp patch
Joerg
prev parent reply other threads:[~2009-03-29 12:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-27 14:35 [PATCH] kvm mmu: add support for 1GB pages in shadow paging code Joerg Roedel
2009-03-28 21:28 ` Marcelo Tosatti
2009-03-28 22:04 ` Joerg Roedel
2009-03-29 11:59 ` Avi Kivity
2009-03-29 12:50 ` Joerg Roedel [this message]
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=20090329125041.GI31080@8bytes.org \
--to=joro@8bytes.org \
--cc=avi@redhat.com \
--cc=joerg.roedel@amd.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mtosatti@redhat.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.