public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: "Radim Krčmář" <rkrcmar@redhat.com>,
	linux-kernel@vger.kernel.org, kvm@vger.kernel.org
Cc: Wanpeng Li <kernellwp@gmail.com>
Subject: Re: [PATCH] KVM: VMX: refactor global page-sized bitmaps
Date: Fri, 23 Sep 2016 11:35:16 +0200	[thread overview]
Message-ID: <bd7d2e5f-9d34-8e33-602d-8f0acccb1f7e@redhat.com> (raw)
In-Reply-To: <20160922231840.26746-1-rkrcmar@redhat.com>



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.

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])

Thanks!

Paolo

> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>

  reply	other threads:[~2016-09-23  9:35 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 [this message]
2016-09-23  9:41   ` Wanpeng Li
2016-09-27 14:13   ` Radim Krčmář

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=bd7d2e5f-9d34-8e33-602d-8f0acccb1f7e@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=kernellwp@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rkrcmar@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox