From patchwork Thu Sep 21 12:03:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 816826 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=) Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xyb2r117kz9t43 for ; Thu, 21 Sep 2017 22:07:32 +1000 (AEST) Received: from localhost ([::1]:53373 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dv0GQ-0001nc-8C for incoming@patchwork.ozlabs.org; Thu, 21 Sep 2017 08:07:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dv0EY-0000qv-Et for qemu-devel@nongnu.org; Thu, 21 Sep 2017 08:05:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dv0EU-0007cV-GT for qemu-devel@nongnu.org; Thu, 21 Sep 2017 08:05:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46594) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dv0EU-0007cD-9t for qemu-devel@nongnu.org; Thu, 21 Sep 2017 08:05:30 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 930FA2CE95A; Thu, 21 Sep 2017 12:05:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 930FA2CE95A Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=mtosatti@redhat.com Received: from amt.cnet (ovpn-116-16.gru2.redhat.com [10.97.116.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4E29960E3B; Thu, 21 Sep 2017 12:05:28 +0000 (UTC) Received: from amt.cnet (localhost [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id BC68A105057; Thu, 21 Sep 2017 09:05:09 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.7/8.14.7/Submit) id v8LC59QA008874; Thu, 21 Sep 2017 09:05:09 -0300 Message-Id: <20170921120415.155548393@redhat.com> User-Agent: quilt/0.60-1 Date: Thu, 21 Sep 2017 09:03:42 -0300 From: Marcelo Tosatti To: kvm@vger.kernel.org, qemu-devel@nongnu.org References: <20170921120341.590850215@redhat.com> Content-Disposition: inline; filename=sync-linux-headers X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Thu, 21 Sep 2017 12:05:28 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [patch 1/2] qemu: sync linux-headers with KVM 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: Marcelo Tosatti Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Marcelo Tosatti Index: qemu-fifoprio/linux-headers/linux/kvm.h =================================================================== --- qemu-fifoprio.orig/linux-headers/linux/kvm.h +++ qemu-fifoprio/linux-headers/linux/kvm.h @@ -929,6 +929,7 @@ struct kvm_ppc_resize_hpt { #define KVM_CAP_PPC_SMT_POSSIBLE 147 #define KVM_CAP_HYPERV_SYNIC2 148 #define KVM_CAP_HYPERV_VP_INDEX 149 +#define KVM_CAP_VCPU_RT_PRIO_HC 150 #ifdef KVM_CAP_IRQ_ROUTING @@ -1355,6 +1356,8 @@ struct kvm_s390_ucas_mapping { /* Available with KVM_CAP_S390_CMMA_MIGRATION */ #define KVM_S390_GET_CMMA_BITS _IOWR(KVMIO, 0xb8, struct kvm_s390_cmma_log) #define KVM_S390_SET_CMMA_BITS _IOW(KVMIO, 0xb9, struct kvm_s390_cmma_log) +/* Available with KVM_CAP_VCPU_RT_PRIO_HC */ +#define KVM_SET_VCPU_RT_PRIO_HC _IOW(KVMIO, 0xba, struct kvm_vcpu_rt_prio) #define KVM_DEV_ASSIGN_ENABLE_IOMMU (1 << 0) #define KVM_DEV_ASSIGN_PCI_2_3 (1 << 1) Index: qemu-fifoprio/linux-headers/asm-x86/kvm.h =================================================================== --- qemu-fifoprio.orig/linux-headers/asm-x86/kvm.h +++ qemu-fifoprio/linux-headers/asm-x86/kvm.h @@ -353,6 +353,11 @@ struct kvm_xcrs { __u64 padding[16]; }; +struct kvm_vcpu_rt_prio { + __u32 enabled; + __u32 sched_priority; +}; + /* definition of registers in kvm_run */ struct kvm_sync_regs { }; Index: qemu-fifoprio/linux-headers/linux/kvm_para.h =================================================================== --- qemu-fifoprio.orig/linux-headers/linux/kvm_para.h +++ qemu-fifoprio/linux-headers/linux/kvm_para.h @@ -15,6 +15,7 @@ #define KVM_E2BIG E2BIG #define KVM_EPERM EPERM #define KVM_EOPNOTSUPP 95 +#define KVM_EINVAL EINVAL #define KVM_HC_VAPIC_POLL_IRQ 1 #define KVM_HC_MMU_OP 2 @@ -25,6 +26,7 @@ #define KVM_HC_MIPS_EXIT_VM 7 #define KVM_HC_MIPS_CONSOLE_OUTPUT 8 #define KVM_HC_CLOCK_PAIRING 9 +#define KVM_HC_RT_PRIO 10 /* * hypercalls use architecture specific