Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5048440ybl; Tue, 4 Feb 2020 06:48:30 -0800 (PST) X-Google-Smtp-Source: APXvYqxsG/9Uj3ntmsRVupemYkwAOclRy7NbyPZdTMoRWzUNNCJQ/IfM1PLiSOmeYIIjhgXVeewN X-Received: by 2002:aca:4ad8:: with SMTP id x207mr3556902oia.55.1580827710441; Tue, 04 Feb 2020 06:48:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580827710; cv=none; d=google.com; s=arc-20160816; b=VuiSH9dteZfBJh6CCGJBDuJb/nEi/jKYdGj8hc88joJjunn80HdR38dGtuq6SeiTKc ivGXiVo/DlJc3U53uICsbvVOCOjrSqcanEZaKaNQHVIJMQfcTeV7v9s1+HM5+XV+3M6x wrGDYveA05ybD2IBNgpJHoXBuLx6LXtBdCkRusazRMd5YBkv0SNY7wdhyocHm7WIvfav hwRfLLRYbxu070q1rk5vdBmU/cmvKpMrwlsd3QS3RiGeJBjnU3M+SxvoZhHf/25ZugcR /5rPLKIIzbwtaFW99CQtM83eYlIweiUOkzuU7kIukJvAcQ84onlBk/Cvkw+e3Ua0K9MC SC3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=lw+gzAo8DOLFDe3zbMMR3xycrnPKgKMJnAjOPL2s5GI=; b=CcbQ08XivXjXVMlW73o93ZTzdWBOTI5sLthKbjeNib/0pDkeEs5GZOB4PUi+WaO5NL 1g6rBMaqEgclSiZw6BjjQ2p470kZDLQpi0jHNj5mOPQ9+JvTWsIr0fNXKhNu7J2v5JSJ hYJLvhgMsWxQTuoEv044Kw8lfN3tL8v3UTHvt5oGiFAZt9U1J/hxP0hvApD6lXBMykcK hKR9xrz3p9fqiXRnGvJbT6rBTjhpj/63QMfJZJyt6eLB46Z/wtLUShl7kgnM2r0qByhJ a+hnlc8/3YQc+HPB7lBPl8QwozZlDU+v6RxMnhUaJISQJfm5+BWwBVtl2lRuOPgv6N0w F5wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UFycp+9+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f23si7610401oti.283.2020.02.04.06.48.17; Tue, 04 Feb 2020 06:48:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UFycp+9+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727281AbgBDOrW (ORCPT + 99 others); Tue, 4 Feb 2020 09:47:22 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:55224 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727260AbgBDOrW (ORCPT ); Tue, 4 Feb 2020 09:47:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1580827640; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lw+gzAo8DOLFDe3zbMMR3xycrnPKgKMJnAjOPL2s5GI=; b=UFycp+9+xTO0Z0TreDd4xLl0gkqsqikaaz3gc4AQx8O5r05BJ9B5PcXxRAf5U8jJqP26Te 1PCX6GX0ipnZufrTrcqHcTwCLHneQUQhyyj3JzcrMgbOfCr5qFHr7BgesjfXr+9SLpdKr3 ObAsXg8oq/gEd/sJkBduquS8OF/x0Wk= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-219-MhnF8xvWM56iyP4i6U7IPw-1; Tue, 04 Feb 2020 09:47:18 -0500 X-MC-Unique: MhnF8xvWM56iyP4i6U7IPw-1 Received: by mail-wr1-f72.google.com with SMTP id s13so10245652wru.7 for ; Tue, 04 Feb 2020 06:47:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=lw+gzAo8DOLFDe3zbMMR3xycrnPKgKMJnAjOPL2s5GI=; b=WSSAOOL00t+Ass62B3/06VFMDn1QTVqn1MX5SnC/dj+49dLhwu0rss5U35NRs5mZaC UJOHIHCXvUYjZckw/y2PYV4auSwCpvaZeElA0gTr5AvF2bpALLT7KHotlcUJc80jQl4c tLFVCadSbH6pduhxfOqkbA7wQhgM/Vh+LGc3EwIDzKqYzlll6NEXZU/YWDEN1iXYX8pk E9hiNo6C2G8oyFQrlo1BdksuwVDkW/+OFhziXOc1/W1Xjf4005uiFmS2xdB0b2j+rFz7 HSV5m3x7g2U6qLkIeBfgLBU86IBI4g8hh5i0V6dluS7eYI9uEzaOAAuMlrOUo69lj6Eq yCKA== X-Gm-Message-State: APjAAAX7iH5dTBtu0XaswUhDj6EL2TgXZzsJ8D7T1xuskzpkJXW00+AX NIapSYjvMoXpuqjXu1KUQlqQJxHynZVJmSx7GrLQyMHmlu8Kk9Xi7HGFPmpOPbhHwwtqHv0Pmie gFXS7Qa5Y8ibxOG0hrRI97Eyg X-Received: by 2002:a1c:9c52:: with SMTP id f79mr6200721wme.30.1580827637172; Tue, 04 Feb 2020 06:47:17 -0800 (PST) X-Received: by 2002:a1c:9c52:: with SMTP id f79mr6200696wme.30.1580827636998; Tue, 04 Feb 2020 06:47:16 -0800 (PST) Received: from vitty.brq.redhat.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id e17sm17425259wrn.62.2020.02.04.06.47.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Feb 2020 06:47:16 -0800 (PST) From: Vitaly Kuznetsov To: Sean Christopherson , Andy Lutomirski Cc: David Laight , Xiaoyao Li , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Paolo Bonzini , "x86\@kernel.org" , "linux-kernel\@vger.kernel.org" , "kvm\@vger.kernel.org" Subject: Re: [PATCH 1/2] KVM: x86: Emulate split-lock access as a write In-Reply-To: <20200131200134.GD18946@linux.intel.com> References: <777C5046-B9DE-4F8C-B04F-28A546AE4A3F@amacapital.net> <20200131200134.GD18946@linux.intel.com> Date: Tue, 04 Feb 2020 15:47:15 +0100 Message-ID: <87y2timmto.fsf@vitty.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sean Christopherson writes: > Exiting to host userspace with "emulation failed" is the other reasonable > alternative, but that's basically the same as killing the guest. We're > arguing that, in the extremely unlikely event that there is a workload out > there that hits this, it's preferable to *maybe* corrupt guest memory and > log the anomaly in the kernel log, as opposed to outright killing the guest > with a generic "emulation failed". > FWIW, if I was to cast a vote I'd pick 'kill the guest' one way or another. "Maybe corrupt guest memory" scares me much more and in many cases host and guest are different responsibility domains (think 'cloud'). -- Vitaly