Re: [PATCH] KVM: VMX: refactor global page-sized bitmaps

2016-09-27 Thread Radim Krčmář
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

Re: [PATCH] KVM: VMX: refactor global page-sized bitmaps

2016-09-27 Thread Radim Krčmář
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

Re: [PATCH] KVM: VMX: refactor global page-sized bitmaps

2016-09-23 Thread Wanpeng Li
2016-09-23 17:35 GMT+08:00 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

Re: [PATCH] KVM: VMX: refactor global page-sized bitmaps

2016-09-23 Thread Wanpeng Li
2016-09-23 17:35 GMT+08:00 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

Re: [PATCH] KVM: VMX: refactor global page-sized bitmaps

2016-09-23 Thread 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 > *

Re: [PATCH] KVM: VMX: refactor global page-sized bitmaps

2016-09-23 Thread 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 > *

[PATCH] KVM: VMX: refactor global page-sized bitmaps

2016-09-22 Thread Radim Krčmář
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

[PATCH] KVM: VMX: refactor global page-sized bitmaps

2016-09-22 Thread Radim Krčmář
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