From: Paolo Bonzini Subject: Re: [PATCH 09/11] kvm/x86: distingiush hyper-v guest crash notification Date: Tue, 23 Jun 2015 11:52:29 +0200 Message-ID: <55892C5D.40702@redhat.com> References: <1434989108-20924-1-git-send-email-den@openvz.org> <1434989108-20924-10-git-send-email-den@openvz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, qemu-devel@nongnu.org, Andrey Smetanin , Gleb Natapov To: Peter Hornyack , "Denis V. Lunev" Return-path: Received: from mx1.redhat.com ([209.132.183.28]:53935 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751256AbbFWJwd (ORCPT ); Tue, 23 Jun 2015 05:52:33 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 23/06/2015 01:55, Peter Hornyack wrote: >> > -static int kvm_hv_msr_set_crash_ctl(struct kvm_vcpu *vcpu, u64 data) >> > +static int kvm_hv_msr_set_crash_ctl(struct kvm_vcpu *vcpu, u64 data, bool host) >> > { >> > struct kvm_arch_hyperv *hv = &vcpu->kvm->arch.hyperv; >> > >> > hv->hv_crash_ctl = data; > Should we allow hv_crash_ctl to be set if !host? It's a small detail, > but it doesn't seem like the guest should be able to disable crash > actions that userspace has enabled in hv_crash_ctl. No, the MSR contents shouldn't be writable. Paolo