From: "Radim Krčmář" <rkrcmar@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org,
Wanpeng Li <kernellwp@gmail.com>
Subject: Re: [PATCH] KVM: VMX: refactor global page-sized bitmaps
Date: Tue, 27 Sep 2016 16:13:07 +0200 [thread overview]
Message-ID: <20160927141306.GA26260@potion> (raw)
In-Reply-To: <bd7d2e5f-9d34-8e33-602d-8f0acccb1f7e@redhat.com>
2016-09-23 11:35+0200, Paolo Bonzini:
> On 23/09/2016 01:18, Radim Krčmář wrote:
>> We've had 10 page-sized bitmaps that were being allocated and freed one
>> by one when we could just use a cycle and MSR bitmaps had a lot of
>> useless code lying around.
>>
>> This patch
>> * enumerates vmx bitmaps and uses an array to store them
>> * replaces vmx_enable_intercept_msr_read_x2apic() with a condition
>> * joins vmx_msr_disable_intercept_msr_{read,write}_x2apic()
>> * renames x2apic_apicv_inactive msr_bitmaps to x2apic and original
>> x2apic bitmaps to x2apic_apicv
>
> It's almost like this could be split in four patches! :) Seriously, I
> like it very much but it's very hard to review.
Yeah, sorry, v2 will be split.
> Also, while it's a good idea to keep the bitmaps in an array,
> vmx_bitmaps[vmread_bitmap] is not very readable. Please make the enum
> uppercase, and possibly add
>
> #define vmread_bitmap (vmx_bitmaps[VMREAD_BITMAP])
This will make it much easier to review, thanks.
prev parent reply other threads:[~2016-09-27 14:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-22 23:18 [PATCH] KVM: VMX: refactor global page-sized bitmaps Radim Krčmář
2016-09-23 9:35 ` Paolo Bonzini
2016-09-23 9:41 ` Wanpeng Li
2016-09-27 14:13 ` Radim Krčmář [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=20160927141306.GA26260@potion \
--to=rkrcmar@redhat.com \
--cc=kernellwp@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@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.