Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp265600pxa; Thu, 27 Aug 2020 01:25:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJza0lSoqYB+comBFWP63QLQt/TPA17mr1dTbgWTZOrZ0h8yKVIK54GaGPUURhF1xzarBLbz X-Received: by 2002:a17:906:a43:: with SMTP id x3mr19372858ejf.321.1598516730755; Thu, 27 Aug 2020 01:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598516730; cv=none; d=google.com; s=arc-20160816; b=RMt6N2h7gRCr+Fl0+fR/HRXommbgbBMAYVpZUgZxmeQ6Ert7552sarWFWbBTg/uX+I wKFPOq9nmWPqbJgk/TOYUgdYPH397UJ7VvUEuupWeEVJTFQ/mca3cfsLlsB2T+BWBHQp Ae/sDfE6HOPxEzGqbwnw+u+QUhPih3XxlatG/v/xEONpnB3cz5FwIeHjWs6elhKWHPG6 +EEQHXvTEN5OvvTgfjgmuNzXLgZqytZvEFZe2NlDeD5TvZzf+wK68nxQ9Uw8vPmjPtdS 1MEV6UQW4EbEYulHr2uJlXLD2K1Aq7LVCfhy8Mn4XFxPWiCOY6oJ0b6eI3veGeIYHiN4 Fs+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=OidEIbhxYKbH5QOsefJqGj/F39LvbCgeSvUUnlXYwMg=; b=zXJh7Q0z3x/3Db1Oxi8ptjm0W7hvhYpD7Es0X8JZYqzb7V2Nm3kSGKyZ4QroVFcq0C 1C+SjJ/+rfBUXSHKi2QJJAWflW934c6zV6zxQln5TbkfJsLL4QWSGzhexVH3b8CocUHe rB90nocZYw/l28ZFJ+c3NwZcrTIUa+sR+NpiPP4ooEluzx98O6abXRObhB8lt+sy1Zpe UXIXbO+AZT/MuLkQ1o3Fo9oCubZjvWKfhdP7EQz0ylXjhZrn3DMuKG+SeocDLHGyrY6r fqlmrdnnpKegG/kEE89khoht9KMXiPklPeJ6R4Dih179BxEkaTDfA98Yn81ir2Y/qw52 sN0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g26si1036449edf.41.2020.08.27.01.25.08; Thu, 27 Aug 2020 01:25:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728286AbgH0IX5 (ORCPT + 99 others); Thu, 27 Aug 2020 04:23:57 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:45806 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728265AbgH0IXy (ORCPT ); Thu, 27 Aug 2020 04:23:54 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 5C70C129FCFD88B23E96; Thu, 27 Aug 2020 16:23:48 +0800 (CST) Received: from huawei.com (10.174.187.31) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Thu, 27 Aug 2020 16:23:41 +0800 From: Yifei Jiang To: , , , , , , CC: , , , , , , , , , Yifei Jiang Subject: [PATCH RFC 0/2] Add log dirty support Date: Thu, 27 Aug 2020 16:22:49 +0800 Message-ID: <20200827082251.1591-1-jiangyifei@huawei.com> X-Mailer: git-send-email 2.26.2.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Originating-IP: [10.174.187.31] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series supports log dirty for migration in RISC-V KVM. Two interfaces are added for kvm_main.c, and some bugs are fixed. We have implemented the vm migration in Qemu. So these patches have been tested. This series is implemented based on https://github.com/avpatel/linux/tree/riscv_kvm_v13. Yifei Jiang (2): riscv/kvm: Fix use VSIP_VALID_MASK mask HIP register target/kvm: Add interfaces needed for log dirty arch/riscv/configs/defconfig | 1 + arch/riscv/kvm/Kconfig | 1 + arch/riscv/kvm/mmu.c | 43 ++++++++++++++++++++++++++++++++++++ arch/riscv/kvm/vcpu.c | 2 +- arch/riscv/kvm/vm.c | 6 ----- 5 files changed, 46 insertions(+), 7 deletions(-) -- 2.19.1