From patchwork Thu Aug 27 08:22:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yifei Jiang X-Patchwork-Id: 11740277 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 059D114E5 for ; Thu, 27 Aug 2020 08:24:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EB05620738 for ; Thu, 27 Aug 2020 08:24:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728284AbgH0IX5 (ORCPT ); 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 X-Originating-IP: [10.174.187.31] X-CFilter-Loop: Reflected Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@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(-)