Received: by 10.223.176.46 with SMTP id f43csp1429857wra; Sat, 20 Jan 2018 19:13:08 -0800 (PST) X-Google-Smtp-Source: AH8x2275NqiimXUS9Z0cgQ01jXNhGTMcMg1wk3jhSy15UR79NUPsAvGUYYws9nXTRY0PMeL+gqvv X-Received: by 10.99.154.10 with SMTP id o10mr3500179pge.156.1516504388037; Sat, 20 Jan 2018 19:13:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516504388; cv=none; d=google.com; s=arc-20160816; b=LT65vSjgvd5TPQFJ86/vHeQ3PY67LawT7q364RseDQFxUDPpGbGjzm+k6lsKaPfHoX l20VOTLR5HKKMS1C9AcJpMyFx75AJSEAFwylK7cTwpgDZZUtx6qDFSnX7cYpSIoAqOt9 5OaqeTfAwSOzRf52uB0LFZB7Kgg4OjEufmgPj81ecS+xIH1bCB1Wt0C9BPPsUzJFZtIc WZU1j+56eAmYosoPSon4N7DCNu2/5efMR/HqT2JfiUhB/EmzJBBj9tDhWPBI7JqIzLMo derqaFmK2hcgfFJTXjfztCczTHZEvkYbxmY+EvijH1QKIPKsMJ4t0mlbuPa6iez7O0Mh 0+Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Ux4R8fZG3cg6jekJFOXg7sC4a2dPsluwIFli7wzBMbY=; b=hk4FAMcA0mcFtAxrG8ok/YIhLdPc2XrVFuzbwT4cHvi5mgkLRbW1znQNGQbOTIuZXI lMLrf887fdLqSakeB9fIzEdrwy8xvEiNDYIqILf4zft4yuIfdLSaGQ3x+grGFqF+g9LB cl0fOipZyhuLbgcJW8cFOKOJxNR7U0v8E2BbywxifA7dSyGbXdVTy2+59YnefZUAk+GZ kOHhW5bHhAiGbJfbEkxnTMR8rFohAn/AEPmEnbu8iBp1LMs5SsWZm16ZEs7YP1v2ZkSx m1bj7GFsAjmdmx+KLzazxVf+2Mz1dctzAHjgjLN+J1N+Tkvf4kX5qp0P/v0G8OF3duT6 iXsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=da8GRUsh; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31-v6si2216413plz.649.2018.01.20.19.12.43; Sat, 20 Jan 2018 19:13:07 -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=@gmail.com header.s=20161025 header.b=da8GRUsh; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756792AbeAUDKs (ORCPT + 99 others); Sat, 20 Jan 2018 22:10:48 -0500 Received: from mail-ua0-f193.google.com ([209.85.217.193]:34704 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756745AbeAUDKk (ORCPT ); Sat, 20 Jan 2018 22:10:40 -0500 Received: by mail-ua0-f193.google.com with SMTP id d1so3679687uak.1; Sat, 20 Jan 2018 19:10:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Ux4R8fZG3cg6jekJFOXg7sC4a2dPsluwIFli7wzBMbY=; b=da8GRUshq87Tr9ZckT9lB5vNh7vCnnN0Di03emHjssaQTgU5tbyGtpwIC89MUo5SSz IwjGSUp+BvhnpPWUbXfbuR+0AESIOq8YPZ+kcPH53TU1YbvhsHLeOVNDO0Vra4tfdj1r saUinn29aV/Wan23MbfY+pQYt+F9P48ajwvv88Qy1xNI0ZPdBh7eH236wm1ek8QBEHC+ 4IBeoRCvgef/PxHhFXpUOm3df7z5oGpw0v6EoUdkAjomajaVWgEE+gLZPDKMcn7+Gu8T JXGyA53bhMQd5iph2Y7O9DpNfXhUCH2IGdxZUTFjD8WyrJUkSYHr0uHaq76tgYpM3+V4 cYvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Ux4R8fZG3cg6jekJFOXg7sC4a2dPsluwIFli7wzBMbY=; b=jmLDfGf3Tqqya6mRXbTbkmaEv3kABrPLbpWPfYefw4eRrdenXd7VXjOyhaNcJplQul fVnLQljv+nk+aI3/jhinCNXOU+n1jEh2fJeGm35I39uRdRTN56+uY4wuurWZdOW7H6X1 mZV40nXXzDknIvsRIVieVpA5gWDOJ1IT8C43CUAMhRWI0qJ2ojwuOXMvwb7gAaKyazzL KMte65H1aYEp6GRaq4SXrZTptrjAY/Uxf6x87ZTrRN5fffWfnLmHZsJTlQ3mdX4o0DvE CCEtQzVVQZ0K+cUMkVS3dZn6B9faEiEHlSSHMwjrmeoRyTl5piYKNkjgw7DNouA0bn6A gLIw== X-Gm-Message-State: AKwxytdNxuATI2vVChrAFPlaQ6NysQCE3hqpSnz7/aJ2fizclhqnVra6 OcQjQcnLJJVk/Paj5Djs/r7eXnV0QnbX/6DDq6E= X-Received: by 10.176.72.83 with SMTP id c19mr2371970uad.75.1516504239141; Sat, 20 Jan 2018 19:10:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.37.131 with HTTP; Sat, 20 Jan 2018 19:10:38 -0800 (PST) In-Reply-To: <20180115083335.GC21403@cbox> References: <1510343650-23659-1-git-send-email-gengdongjiu@huawei.com> <1510343650-23659-8-git-send-email-gengdongjiu@huawei.com> <5A0B1334.7060500@arm.com> <4af78739-99da-4056-4db1-f80bfe11081a@huawei.com> <5A283F26.3020507@arm.com> <4b37e86d-eee3-c51e-eceb-5d0c7ad12886@huawei.com> <506cd212-3d16-ba2a-518f-34982bc162fc@huawei.com> <5A58F8E3.5060002@arm.com> <20180115083335.GC21403@cbox> From: gengdongjiu Date: Sun, 21 Jan 2018 11:10:38 +0800 Message-ID: Subject: Re: [PATCH v8 7/7] arm64: kvm: handle SError Interrupt by categorization To: Christoffer Dall Cc: James Morse , wuquanming , linux-doc@vger.kernel.org, kvm@vger.kernel.org, Marc Zyngier , Catalin Marinas , Jonathan Corbet , rjw@rjwysocki.net, linux@armlinux.org.uk, linuxarm@huawei.com, gengdongjiu , linux-acpi@vger.kernel.org, bp@alien8.de, arm-mail-list , Huangshaoyu , pbonzini@redhat.com, kvmarm@lists.cs.columbia.edu, Linux Kernel Mailing List , devel@acpica.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-01-15 16:33 GMT+08:00 Christoffer Dall : > On Fri, Jan 12, 2018 at 06:05:23PM +0000, James Morse wrote: >> On 15/12/17 03:30, gengdongjiu wrote: >> > On 2017/12/7 14:37, gengdongjiu wrote: > > [...] > >> >> (I recall someone saying migration is needed for any new KVM/cpu features, but I >> can't find the thread) >> > > I don't know of any hard set-in-stone rule for this, but I have > certainly argued that since migration is a popular technique in data > centers and often a key motivation behind using virtual machines as it > provides both load-balancing and high availability, we should think > about migration support for all features and state. Further, experience > has shown that retroactively trying to support migration can result in > really complex interfaces for saving/restoring state (see the ITS > ordering requirements in > Documentation/virtual/kvm/devices/arm-vgic-its.txt as an example) so > thinking about this problem when introducing functionality is a good > idea. yes, agree it. > > Of course, if there are really good arguments for having some state that > simply cannot be migrated, then that's fine, and we should just make > sure that userspace (e.g. QEMU) and higher level components in the > stack (libvirt, openstack, etc.) can detect this state being used, and > ideally enable/disable it, so that it can predict that a particular VM > cannot be migrated off a particular host, or between a particular set of > two hosts. As an example, migration is typically prohibited when using > VFIO direct device assignment, but userspace etc. are already aware of > this. Ok, I think this problem is similar to migrating a VM that uses an irqchip in userspace and has set the IRQ or FIQ lines using KVM_IRQ_LINE. > > As a final note, if we add support for some architectural feature, which > may be present on some particular hardware and/or implementation, if the > KVM support for said feature is automatically enabled (and not > selectively from userspace), I would push back quite strongly on > something that doesn't support migration, because it would effectively > prevent migration of VMs on ARM. Ok, got it. > > Thanks, > -Christoffer > _______________________________________________ > kvmarm mailing list > kvmarm@lists.cs.columbia.edu > https://lists.cs.columbia.edu/mailman/listinfo/kvmarm