* [PATCH 0/4] KVM: Enable EPT access bit feature
@ 2012-05-16 1:04 Xudong Hao
2012-05-16 9:21 ` Avi Kivity
0 siblings, 1 reply; 5+ messages in thread
From: Xudong Hao @ 2012-05-16 1:04 UTC (permalink / raw)
To: avi; +Cc: kvm, linux-kernel, haitao.shan, xiantao.zhang, xudong.hao
EPT A/D bits enable VMMs to efficiently implement memory management and page classification algorithms to optimize VM memory operations such as de-fragmentation, paging, live-migration, and check-pointing.
The series of patches enable the EPT access bit in KVM.
PATCH 1: Add EPT A/D bits definition.
PATCH 2: Add kernel parameter to control EPT A/D bits support, the feature is on by default.
PATCH 3: Enable EPT A/D bits if supported by turning on relevant bit in EPTP.
PATCH 4: Enabling Access bit when doing memory swapping.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/4] KVM: Enable EPT access bit feature
2012-05-16 1:04 [PATCH 0/4] KVM: Enable EPT access bit feature Xudong Hao
@ 2012-05-16 9:21 ` Avi Kivity
2012-05-16 13:35 ` Takuya Yoshikawa
0 siblings, 1 reply; 5+ messages in thread
From: Avi Kivity @ 2012-05-16 9:21 UTC (permalink / raw)
To: Xudong Hao; +Cc: kvm, linux-kernel, haitao.shan, xiantao.zhang, xudong.hao
On 05/16/2012 04:04 AM, Xudong Hao wrote:
> EPT A/D bits enable VMMs to efficiently implement memory management and page classification algorithms to optimize VM memory operations such as de-fragmentation, paging, live-migration, and check-pointing.
>
> The series of patches enable the EPT access bit in KVM.
>
> PATCH 1: Add EPT A/D bits definition.
> PATCH 2: Add kernel parameter to control EPT A/D bits support, the feature is on by default.
> PATCH 3: Enable EPT A/D bits if supported by turning on relevant bit in EPTP.
> PATCH 4: Enabling Access bit when doing memory swapping.
>
Minor comment on patch 2, but otherwise looks good.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/4] KVM: Enable EPT access bit feature
2012-05-16 9:21 ` Avi Kivity
@ 2012-05-16 13:35 ` Takuya Yoshikawa
2012-05-16 13:43 ` Avi Kivity
0 siblings, 1 reply; 5+ messages in thread
From: Takuya Yoshikawa @ 2012-05-16 13:35 UTC (permalink / raw)
To: Avi Kivity
Cc: Xudong Hao, kvm, linux-kernel, haitao.shan, xiantao.zhang,
xudong.hao
On Wed, 16 May 2012 12:21:53 +0300
Avi Kivity <avi@redhat.com> wrote:
> On 05/16/2012 04:04 AM, Xudong Hao wrote:
> > EPT A/D bits enable VMMs to efficiently implement memory management and page classification algorithms to optimize VM memory operations such as de-fragmentation, paging, live-migration, and check-pointing.
> >
> > The series of patches enable the EPT access bit in KVM.
> >
> > PATCH 1: Add EPT A/D bits definition.
> > PATCH 2: Add kernel parameter to control EPT A/D bits support, the feature is on by default.
> > PATCH 3: Enable EPT A/D bits if supported by turning on relevant bit in EPTP.
> > PATCH 4: Enabling Access bit when doing memory swapping.
> >
>
> Minor comment on patch 2, but otherwise looks good.
Except for being white space damaged and based on old kvm.git?
BTW, we can use this for dirty logging as you suggested.
Although we need to traverse each spte from rmap and sync with dirty
bitmap, I think it will work well by using with range based GET_DIRTY_LOG
to restrict the cost for one call.
Thanks,
Takuya
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/4] KVM: Enable EPT access bit feature
2012-05-16 13:35 ` Takuya Yoshikawa
@ 2012-05-16 13:43 ` Avi Kivity
2012-05-17 6:30 ` Hao, Xudong
0 siblings, 1 reply; 5+ messages in thread
From: Avi Kivity @ 2012-05-16 13:43 UTC (permalink / raw)
To: Takuya Yoshikawa
Cc: Xudong Hao, kvm, linux-kernel, haitao.shan, xiantao.zhang,
xudong.hao
On 05/16/2012 04:35 PM, Takuya Yoshikawa wrote:
> On Wed, 16 May 2012 12:21:53 +0300
> Avi Kivity <avi@redhat.com> wrote:
>
> > On 05/16/2012 04:04 AM, Xudong Hao wrote:
> > > EPT A/D bits enable VMMs to efficiently implement memory management and page classification algorithms to optimize VM memory operations such as de-fragmentation, paging, live-migration, and check-pointing.
> > >
> > > The series of patches enable the EPT access bit in KVM.
> > >
> > > PATCH 1: Add EPT A/D bits definition.
> > > PATCH 2: Add kernel parameter to control EPT A/D bits support, the feature is on by default.
> > > PATCH 3: Enable EPT A/D bits if supported by turning on relevant bit in EPTP.
> > > PATCH 4: Enabling Access bit when doing memory swapping.
> > >
> >
> > Minor comment on patch 2, but otherwise looks good.
>
> Except for being white space damaged and based on old kvm.git?
Ugh, I didn't notice that. Xudong, please rebase on kvm.git 'next', and
repost using git send-email.
> BTW, we can use this for dirty logging as you suggested.
>
> Although we need to traverse each spte from rmap
That should be cheap. Also, we might be able to cheat for direct-mapped
pages: if all pages in a 2M area are mapped just once, in a
direct-mapped page, we can skip rmap and iterate over the page
directly. We can store this hint in lpage_info.
There's a chance that this optimization will gain nothing since the
processor may be able to unroll the loop and hide the rmap costs for the
next spte behind the atomic access cost for the current spte.
> and sync with dirty
> bitmap, I think it will work well by using with range based GET_DIRTY_LOG
> to restrict the cost for one call.
I'm in favour of that as well (even more, since the install base will be
dominated by non-AD-capable hosts for some time).
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH 0/4] KVM: Enable EPT access bit feature
2012-05-16 13:43 ` Avi Kivity
@ 2012-05-17 6:30 ` Hao, Xudong
0 siblings, 0 replies; 5+ messages in thread
From: Hao, Xudong @ 2012-05-17 6:30 UTC (permalink / raw)
To: Avi Kivity, Takuya Yoshikawa
Cc: Xudong Hao, kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
Shan, Haitao, Zhang, Xiantao
> -----Original Message-----
> From: Avi Kivity [mailto:avi@redhat.com]
> Sent: Wednesday, May 16, 2012 9:44 PM
> To: Takuya Yoshikawa
> Cc: Xudong Hao; kvm@vger.kernel.org; linux-kernel@vger.kernel.org; Shan,
> Haitao; Zhang, Xiantao; Hao, Xudong
> Subject: Re: [PATCH 0/4] KVM: Enable EPT access bit feature
>
> On 05/16/2012 04:35 PM, Takuya Yoshikawa wrote:
> > On Wed, 16 May 2012 12:21:53 +0300
> > Avi Kivity <avi@redhat.com> wrote:
> >
> > > On 05/16/2012 04:04 AM, Xudong Hao wrote:
> > > > EPT A/D bits enable VMMs to efficiently implement memory management
> and page classification algorithms to optimize VM memory operations such as
> de-fragmentation, paging, live-migration, and check-pointing.
> > > >
> > > > The series of patches enable the EPT access bit in KVM.
> > > >
> > > > PATCH 1: Add EPT A/D bits definition.
> > > > PATCH 2: Add kernel parameter to control EPT A/D bits support, the
> feature is on by default.
> > > > PATCH 3: Enable EPT A/D bits if supported by turning on relevant bit in
> EPTP.
> > > > PATCH 4: Enabling Access bit when doing memory swapping.
> > > >
> > >
> > > Minor comment on patch 2, but otherwise looks good.
> >
> > Except for being white space damaged and based on old kvm.git?
>
> Ugh, I didn't notice that. Xudong, please rebase on kvm.git 'next', and
> repost using git send-email.
>
Oh, my patch is based on 'master' branch, I saw some changes in mmu.c by Takuya which will conflict patch 4, I'll rebase on 'next' branch.
Anyway, I'll send whole four patches as v2 of 'next' branch.
> > BTW, we can use this for dirty logging as you suggested.
> >
> > Although we need to traverse each spte from rmap
>
> That should be cheap. Also, we might be able to cheat for direct-mapped
> pages: if all pages in a 2M area are mapped just once, in a
> direct-mapped page, we can skip rmap and iterate over the page
> directly. We can store this hint in lpage_info.
>
> There's a chance that this optimization will gain nothing since the
> processor may be able to unroll the loop and hide the rmap costs for the
> next spte behind the atomic access cost for the current spte.
>
> > and sync with dirty
> > bitmap, I think it will work well by using with range based GET_DIRTY_LOG
> > to restrict the cost for one call.
>
> I'm in favour of that as well (even more, since the install base will be
> dominated by non-AD-capable hosts for some time).
>
> --
> error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-05-17 6:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-16 1:04 [PATCH 0/4] KVM: Enable EPT access bit feature Xudong Hao
2012-05-16 9:21 ` Avi Kivity
2012-05-16 13:35 ` Takuya Yoshikawa
2012-05-16 13:43 ` Avi Kivity
2012-05-17 6:30 ` Hao, Xudong
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).