From patchwork Thu Sep 27 16:55:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dongjiu Geng X-Patchwork-Id: 975617 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=huawei.com Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42LTGx47Klz9s3Z for ; Thu, 27 Sep 2018 18:58:01 +1000 (AEST) Received: from localhost ([::1]:34525 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5S7T-0002ko-6X for incoming@patchwork.ozlabs.org; Thu, 27 Sep 2018 04:57:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5S6b-0002Oe-F2 for qemu-devel@nongnu.org; Thu, 27 Sep 2018 04:57:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g5S6Y-00089L-A0 for qemu-devel@nongnu.org; Thu, 27 Sep 2018 04:57:05 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2567 helo=huawei.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g5S1d-0004fc-Nx; Thu, 27 Sep 2018 04:51:58 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 345FC2E97D93F; Thu, 27 Sep 2018 16:51:52 +0800 (CST) Received: from localhost.localdomain (10.143.28.90) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.399.0; Thu, 27 Sep 2018 16:51:44 +0800 From: Dongjiu Geng To: , , , , , Date: Thu, 27 Sep 2018 12:55:49 -0400 Message-ID: <1538067351-23931-1-git-send-email-gengdongjiu@huawei.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.143.28.90] X-CFilter-Loop: Reflected X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 45.249.212.191 Subject: [Qemu-devel] [PATCH RFC v11 0/2] add support for VCPU event states X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: gengdongjiu@huawei.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Support KVM_GET/SET_VCPU_EVENTS to get/set the SError exception state, and support the state migration. Now the VCPU event only includes the SError exception status, it can be extended if needed. When do migration, If source machine has serror pending, the target machine is also needed to pend this serror regardless of whether target machine can support to set the serror syndrome. Note: Because I do not have arm32 environment, I only this patch in the KVM64, not test it in the KVM32. So I need someone else test it in the 32 bit KVM platform. Thanks. Dongjiu Geng (2): linux-headers: Update to linux kernel 4.19-rc5 target/arm: Add support for VCPU event states include/standard-headers/linux/input.h | 9 ++--- linux-headers/asm-arm/kvm.h | 13 ++++++++ linux-headers/asm-arm64/kvm.h | 13 ++++++++ linux-headers/asm-x86/kvm.h | 1 + linux-headers/linux/kvm.h | 2 ++ linux-headers/linux/vhost.h | 2 +- target/arm/cpu.h | 7 ++++ target/arm/kvm.c | 60 ++++++++++++++++++++++++++++++++++ target/arm/kvm32.c | 13 ++++++++ target/arm/kvm64.c | 13 ++++++++ target/arm/kvm_arm.h | 24 ++++++++++++++ target/arm/machine.c | 22 +++++++++++++ 12 files changed, 174 insertions(+), 5 deletions(-)