From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933058AbdCaLxa (ORCPT ); Fri, 31 Mar 2017 07:53:30 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:33271 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752489AbdCaLx2 (ORCPT ); Fri, 31 Mar 2017 07:53:28 -0400 From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: rkrcmar@redhat.com, lei.cao@stratus.com Subject: [PATCH 0/3] kvm: API adjustments for dirty page ring patches Date: Fri, 31 Mar 2017 13:53:21 +0200 Message-Id: <1490961203-7139-1-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As posted, the patches for the dirty page ring broke non-x86 architectures, because it moved KVM_COALESCED_MMIO_PAGE_OFFSET incorrectly to include/uapi/linux/kvm.h. In file included from include/linux/kvm_host.h:36:0, from arch/arm64/kernel/hibernate.c:19: >> arch/arm64/include/asm/kvm_host.h:35:0: warning: "KVM_COALESCED_MMIO_PAGE_OFFSET" redefined #define KVM_COALESCED_MMIO_PAGE_OFFSET 1 In file included from include/linux/kvm_host.h:31:0, from arch/arm64/kernel/hibernate.c:19: include/uapi/linux/kvm.h:218:0: note: this is the location of the previous definition #define KVM_COALESCED_MMIO_PAGE_OFFSET 2 This fixes it by moving it to each architecture's UAPI headers separately. Paolo Paolo Bonzini (2): kvm: make KVM_CAP_COALESCED_MMIO architecture agnostic kvm: make KVM_COALESCED_MMIO_PAGE_OFFSET public arch/arm/include/asm/kvm_host.h | 1 - arch/arm/include/uapi/asm/kvm.h | 2 ++ arch/arm/kvm/arm.c | 3 --- arch/arm64/include/asm/kvm_host.h | 1 - arch/arm64/include/uapi/asm/kvm.h | 2 ++ arch/mips/include/asm/kvm_host.h | 1 - arch/mips/include/uapi/asm/kvm.h | 2 ++ arch/mips/kvm/mips.c | 3 --- arch/powerpc/include/asm/kvm_host.h | 3 --- arch/powerpc/include/uapi/asm/kvm.h | 3 +++ arch/powerpc/kvm/powerpc.c | 5 ----- arch/x86/include/asm/kvm_host.h | 2 -- arch/x86/include/uapi/asm/kvm.h | 3 +++ arch/x86/kvm/x86.c | 3 --- include/linux/kvm_host.h | 2 +- virt/kvm/kvm_main.c | 13 +++++++++---- 16 files changed, 22 insertions(+), 27 deletions(-) -- 1.8.3.1