[v3,1/6] Revert "kvm/x86: clear hyperv synic pages only when guest modifies MSRs"

Submitted by Roman Kagan on Oct. 12, 2017, 10:02 a.m.

Details

Message ID 20171012100219.29349-2-rkagan@virtuozzo.com
State New
Series "kvm: hyperv: backport latest stuff from mainstream"
Headers show

Commit Message

Roman Kagan Oct. 12, 2017, 10:02 a.m.
This reverts commit d385b9f5e7a4c225b1463655484daeebb1ca79dd.
It will be replaced by a backported mainstream commit with different
behavior.

Signed-off-by: Roman Kagan <rkagan@virtuozzo.com>
---
 arch/x86/kvm/hyperv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c
index 58f3f22654a3..ed7f0ad04af9 100644
--- a/arch/x86/kvm/hyperv.c
+++ b/arch/x86/kvm/hyperv.c
@@ -219,7 +219,7 @@  static int synic_set_msr(struct kvm_vcpu_hv_synic *synic,
 		synic->version = data;
 		break;
 	case HV_X64_MSR_SIEFP:
-		if (data & HV_SYNIC_SIEFP_ENABLE && !host)
+		if (data & HV_SYNIC_SIEFP_ENABLE)
 			if (kvm_clear_guest(vcpu->kvm,
 					    data & PAGE_MASK, PAGE_SIZE)) {
 				ret = 1;
@@ -230,7 +230,7 @@  static int synic_set_msr(struct kvm_vcpu_hv_synic *synic,
 			synic_exit(synic, msr);
 		break;
 	case HV_X64_MSR_SIMP:
-		if (data & HV_SYNIC_SIMP_ENABLE && !host)
+		if (data & HV_SYNIC_SIMP_ENABLE)
 			if (kvm_clear_guest(vcpu->kvm,
 					    data & PAGE_MASK, PAGE_SIZE)) {
 				ret = 1;