Re: [PATCH] KVM: VMX: replace move_msr_up with swap macro

2017-11-06 Thread Gustavo A. R. Silva
xner" <t...@linutronix.de>, "Ingo Molnar" <mi...@redhat.com>, "H. Peter Anvin" <h...@zytor.com>, x...@kernel.org Cc: k...@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" <garsi...@embeddedor.com> Sent: Friday, Nov

Re: [PATCH] KVM: VMX: replace move_msr_up with swap macro

2017-11-06 Thread Gustavo A. R. Silva
linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Sent: Friday, November 3, 2017 11:58:19 PM Subject: [PATCH] KVM: VMX: replace move_msr_up with swap macro Function move_msr_up is used to _manually_ swap MSR entries in MSR array. This function can be removed and replaced using the s

Re: [PATCH] KVM: VMX: replace move_msr_up with swap macro

2017-11-04 Thread Paolo Bonzini
;, "Ingo Molnar" <mi...@redhat.com>, "H. Peter Anvin" > <h...@zytor.com>, x...@kernel.org > Cc: k...@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" > <garsi...@embeddedor.com> > Sent: Friday, November 3, 2017 11:58:19 PM > S

Re: [PATCH] KVM: VMX: replace move_msr_up with swap macro

2017-11-04 Thread Paolo Bonzini
el@vger.kernel.org, "Gustavo A. R. Silva" > > Sent: Friday, November 3, 2017 11:58:19 PM > Subject: [PATCH] KVM: VMX: replace move_msr_up with swap macro > > Function move_msr_up is used to _manually_ swap MSR entries in MSR array. > This function can be removed an

[PATCH] KVM: VMX: replace move_msr_up with swap macro

2017-11-03 Thread Gustavo A. R. Silva
Function move_msr_up is used to _manually_ swap MSR entries in MSR array. This function can be removed and replaced using the swap macro instead. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- The new lines are over 80

[PATCH] KVM: VMX: replace move_msr_up with swap macro

2017-11-03 Thread Gustavo A. R. Silva
Function move_msr_up is used to _manually_ swap MSR entries in MSR array. This function can be removed and replaced using the swap macro instead. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- The new lines are over 80 characters, but I think in this