Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
b89485a5
Q
qemu
项目概览
openeuler
/
qemu
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b89485a5
编写于
3月 25, 2016
作者:
P
Paolo Bonzini
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update Linux headers to 4.6
Signed-off-by:
N
Paolo Bonzini
<
pbonzini@redhat.com
>
上级
92741fc4
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
140 addition
and
12 deletion
+140
-12
include/standard-headers/asm-x86/hyperv.h
include/standard-headers/asm-x86/hyperv.h
+3
-1
include/standard-headers/linux/input.h
include/standard-headers/linux/input.h
+1
-0
include/standard-headers/linux/types.h
include/standard-headers/linux/types.h
+3
-2
include/standard-headers/linux/virtio_balloon.h
include/standard-headers/linux/virtio_balloon.h
+1
-1
include/standard-headers/linux/virtio_blk.h
include/standard-headers/linux/virtio_blk.h
+3
-3
linux-headers/asm-arm64/kvm.h
linux-headers/asm-arm64/kvm.h
+6
-0
linux-headers/asm-powerpc/epapr_hcalls.h
linux-headers/asm-powerpc/epapr_hcalls.h
+2
-2
linux-headers/asm-powerpc/kvm.h
linux-headers/asm-powerpc/kvm.h
+9
-0
linux-headers/asm-x86/unistd_32.h
linux-headers/asm-x86/unistd_32.h
+2
-0
linux-headers/asm-x86/unistd_64.h
linux-headers/asm-x86/unistd_64.h
+2
-0
linux-headers/linux/kvm.h
linux-headers/linux/kvm.h
+11
-0
linux-headers/linux/userfaultfd.h
linux-headers/linux/userfaultfd.h
+1
-1
linux-headers/linux/vfio.h
linux-headers/linux/vfio.h
+90
-2
linux-headers/linux/vhost.h
linux-headers/linux/vhost.h
+6
-0
未找到文件。
include/standard-headers/asm-x86/hyperv.h
浏览文件 @
b89485a5
...
...
@@ -226,7 +226,9 @@
(~((1ull << HV_X64_MSR_HYPERCALL_PAGE_ADDRESS_SHIFT) - 1))
/* Declare the various hypercall operations. */
#define HV_X64_HV_NOTIFY_LONG_SPIN_WAIT 0x0008
#define HVCALL_NOTIFY_LONG_SPIN_WAIT 0x0008
#define HVCALL_POST_MESSAGE 0x005c
#define HVCALL_SIGNAL_EVENT 0x005d
#define HV_X64_MSR_APIC_ASSIST_PAGE_ENABLE 0x00000001
#define HV_X64_MSR_APIC_ASSIST_PAGE_ADDRESS_SHIFT 12
...
...
include/standard-headers/linux/input.h
浏览文件 @
b89485a5
...
...
@@ -243,6 +243,7 @@ struct input_mask {
#define BUS_GSC 0x1A
#define BUS_ATARI 0x1B
#define BUS_SPI 0x1C
#define BUS_RMI 0x1D
/*
* MT_TOOL types
...
...
include/standard-headers/linux/types.h
浏览文件 @
b89485a5
#include <stdint.h>
#include "qemu/compiler.h"
/* For QEMU all types are already defined via osdep.h, so this
* header does not need to do anything.
*/
include/standard-headers/linux/virtio_balloon.h
浏览文件 @
b89485a5
...
...
@@ -51,7 +51,7 @@ struct virtio_balloon_config {
#define VIRTIO_BALLOON_S_MINFLT 3
/* Number of minor faults */
#define VIRTIO_BALLOON_S_MEMFREE 4
/* Total amount of free memory */
#define VIRTIO_BALLOON_S_MEMTOT 5
/* Total amount of memory */
#define VIRTIO_BALLOON_S_AVAIL 6
/* A
mount of available memory in guest
*/
#define VIRTIO_BALLOON_S_AVAIL 6
/* A
vailable memory as in /proc
*/
#define VIRTIO_BALLOON_S_NR 7
/*
...
...
include/standard-headers/linux/virtio_blk.h
浏览文件 @
b89485a5
...
...
@@ -43,10 +43,10 @@
#ifndef VIRTIO_BLK_NO_LEGACY
#define VIRTIO_BLK_F_BARRIER 0
/* Does host support barriers? */
#define VIRTIO_BLK_F_SCSI 7
/* Supports scsi command passthru */
#define VIRTIO_BLK_F_
WCE 9
/* Writeback mode enabled after reset
*/
#define VIRTIO_BLK_F_
FLUSH 9
/* Flush command supported
*/
#define VIRTIO_BLK_F_CONFIG_WCE 11
/* Writeback mode available in config */
/* Old (deprecated) name for VIRTIO_BLK_F_
WCE
. */
#define VIRTIO_BLK_F_
FLUSH VIRTIO_BLK_F_WCE
/* Old (deprecated) name for VIRTIO_BLK_F_
FLUSH
. */
#define VIRTIO_BLK_F_
WCE VIRTIO_BLK_F_FLUSH
#endif
/* !VIRTIO_BLK_NO_LEGACY */
#define VIRTIO_BLK_ID_BYTES 20
/* ID string length */
...
...
linux-headers/asm-arm64/kvm.h
浏览文件 @
b89485a5
...
...
@@ -94,6 +94,7 @@ struct kvm_regs {
#define KVM_ARM_VCPU_POWER_OFF 0
/* CPU is started in OFF state */
#define KVM_ARM_VCPU_EL1_32BIT 1
/* CPU running a 32bit VM */
#define KVM_ARM_VCPU_PSCI_0_2 2
/* CPU uses PSCI v0.2 */
#define KVM_ARM_VCPU_PMU_V3 3
/* Support guest PMUv3 */
struct
kvm_vcpu_init
{
__u32
target
;
...
...
@@ -204,6 +205,11 @@ struct kvm_arch_memory_slot {
#define KVM_DEV_ARM_VGIC_GRP_CTRL 4
#define KVM_DEV_ARM_VGIC_CTRL_INIT 0
/* Device Control API on vcpu fd */
#define KVM_ARM_VCPU_PMU_V3_CTRL 0
#define KVM_ARM_VCPU_PMU_V3_IRQ 0
#define KVM_ARM_VCPU_PMU_V3_INIT 1
/* KVM_IRQ_LINE irq field index values */
#define KVM_ARM_IRQ_TYPE_SHIFT 24
#define KVM_ARM_IRQ_TYPE_MASK 0xff
...
...
linux-headers/asm-powerpc/epapr_hcalls.h
浏览文件 @
b89485a5
...
...
@@ -78,7 +78,7 @@
#define EV_SUCCESS 0
#define EV_EPERM 1
/* Operation not permitted */
#define EV_ENOENT 2
/* Entry Not Found */
#define EV_EIO 3
/* I/O error occured */
#define EV_EIO 3
/* I/O error occur
r
ed */
#define EV_EAGAIN 4
/* The operation had insufficient
* resources to complete and should be
* retried
...
...
@@ -89,7 +89,7 @@
#define EV_ENODEV 7
/* No such device */
#define EV_EINVAL 8
/* An argument supplied to the hcall
was out of range or invalid */
#define EV_INTERNAL 9
/* An internal error occured */
#define EV_INTERNAL 9
/* An internal error occur
r
ed */
#define EV_CONFIG 10
/* A configuration error was detected */
#define EV_INVALID_STATE 11
/* The object is in an invalid state */
#define EV_UNIMPLEMENTED 12
/* Unimplemented hypercall */
...
...
linux-headers/asm-powerpc/kvm.h
浏览文件 @
b89485a5
...
...
@@ -333,6 +333,15 @@ struct kvm_create_spapr_tce {
__u32
window_size
;
};
/* for KVM_CAP_SPAPR_TCE_64 */
struct
kvm_create_spapr_tce_64
{
__u64
liobn
;
__u32
page_shift
;
__u32
flags
;
__u64
offset
;
/* in pages */
__u64
size
;
/* in pages */
};
/* for KVM_ALLOCATE_RMA */
struct
kvm_allocate_rma
{
__u64
rma_size
;
...
...
linux-headers/asm-x86/unistd_32.h
浏览文件 @
b89485a5
...
...
@@ -375,5 +375,7 @@
#define __NR_membarrier 375
#define __NR_mlock2 376
#define __NR_copy_file_range 377
#define __NR_preadv2 378
#define __NR_pwritev2 379
#endif
/* _ASM_X86_UNISTD_32_H */
linux-headers/asm-x86/unistd_64.h
浏览文件 @
b89485a5
...
...
@@ -328,5 +328,7 @@
#define __NR_membarrier 324
#define __NR_mlock2 325
#define __NR_copy_file_range 326
#define __NR_preadv2 327
#define __NR_pwritev2 328
#endif
/* _ASM_X86_UNISTD_64_H */
linux-headers/linux/kvm.h
浏览文件 @
b89485a5
...
...
@@ -157,6 +157,7 @@ struct kvm_s390_skeys {
struct
kvm_hyperv_exit
{
#define KVM_EXIT_HYPERV_SYNIC 1
#define KVM_EXIT_HYPERV_HCALL 2
__u32
type
;
union
{
struct
{
...
...
@@ -165,6 +166,11 @@ struct kvm_hyperv_exit {
__u64
evt_page
;
__u64
msg_page
;
}
synic
;
struct
{
__u64
input
;
__u64
result
;
__u64
params
[
2
];
}
hcall
;
}
u
;
};
...
...
@@ -856,6 +862,9 @@ struct kvm_ppc_smmu_info {
#define KVM_CAP_IOEVENTFD_ANY_LENGTH 122
#define KVM_CAP_HYPERV_SYNIC 123
#define KVM_CAP_S390_RI 124
#define KVM_CAP_SPAPR_TCE_64 125
#define KVM_CAP_ARM_PMU_V3 126
#define KVM_CAP_VCPU_ATTRIBUTES 127
#ifdef KVM_CAP_IRQ_ROUTING
...
...
@@ -1148,6 +1157,8 @@ struct kvm_s390_ucas_mapping {
/* Available with KVM_CAP_PPC_ALLOC_HTAB */
#define KVM_PPC_ALLOCATE_HTAB _IOWR(KVMIO, 0xa7, __u32)
#define KVM_CREATE_SPAPR_TCE _IOW(KVMIO, 0xa8, struct kvm_create_spapr_tce)
#define KVM_CREATE_SPAPR_TCE_64 _IOW(KVMIO, 0xa8, \
struct kvm_create_spapr_tce_64)
/* Available with KVM_CAP_RMA */
#define KVM_ALLOCATE_RMA _IOR(KVMIO, 0xa9, struct kvm_allocate_rma)
/* Available with KVM_CAP_PPC_HTAB_FD */
...
...
linux-headers/linux/userfaultfd.h
浏览文件 @
b89485a5
...
...
@@ -78,7 +78,7 @@ struct uffd_msg {
__u64
reserved3
;
}
reserved
;
}
arg
;
}
__
packed
;
}
__
attribute__
((
packed
))
;
/*
* Start at 0x12 and not at 0 to be more strict against bugs.
...
...
linux-headers/linux/vfio.h
浏览文件 @
b89485a5
...
...
@@ -59,6 +59,33 @@
#define VFIO_TYPE (';')
#define VFIO_BASE 100
/*
* For extension of INFO ioctls, VFIO makes use of a capability chain
* designed after PCI/e capabilities. A flag bit indicates whether
* this capability chain is supported and a field defined in the fixed
* structure defines the offset of the first capability in the chain.
* This field is only valid when the corresponding bit in the flags
* bitmap is set. This offset field is relative to the start of the
* INFO buffer, as is the next field within each capability header.
* The id within the header is a shared address space per INFO ioctl,
* while the version field is specific to the capability id. The
* contents following the header are specific to the capability id.
*/
struct
vfio_info_cap_header
{
__u16
id
;
/* Identifies capability */
__u16
version
;
/* Version specific to the capability ID */
__u32
next
;
/* Offset of next capability */
};
/*
* Callers of INFO ioctls passing insufficiently sized buffers will see
* the capability chain flag bit set, a zero value for the first capability
* offset (if available within the provided argsz), and argsz will be
* updated to report the necessary buffer size. For compatibility, the
* INFO ioctl will not report error in this case, but the capability chain
* will not be available.
*/
/* -------- IOCTLs for VFIO file descriptor (/dev/vfio/vfio) -------- */
/**
...
...
@@ -194,13 +221,73 @@ struct vfio_region_info {
#define VFIO_REGION_INFO_FLAG_READ (1 << 0)
/* Region supports read */
#define VFIO_REGION_INFO_FLAG_WRITE (1 << 1)
/* Region supports write */
#define VFIO_REGION_INFO_FLAG_MMAP (1 << 2)
/* Region supports mmap */
#define VFIO_REGION_INFO_FLAG_CAPS (1 << 3)
/* Info supports caps */
__u32
index
;
/* Region index */
__u32
resv
;
/* Reserved for alignment
*/
__u32
cap_offset
;
/* Offset within info struct of first cap
*/
__u64
size
;
/* Region size (bytes) */
__u64
offset
;
/* Region offset from start of device fd */
};
#define VFIO_DEVICE_GET_REGION_INFO _IO(VFIO_TYPE, VFIO_BASE + 8)
/*
* The sparse mmap capability allows finer granularity of specifying areas
* within a region with mmap support. When specified, the user should only
* mmap the offset ranges specified by the areas array. mmaps outside of the
* areas specified may fail (such as the range covering a PCI MSI-X table) or
* may result in improper device behavior.
*
* The structures below define version 1 of this capability.
*/
#define VFIO_REGION_INFO_CAP_SPARSE_MMAP 1
struct
vfio_region_sparse_mmap_area
{
__u64
offset
;
/* Offset of mmap'able area within region */
__u64
size
;
/* Size of mmap'able area */
};
struct
vfio_region_info_cap_sparse_mmap
{
struct
vfio_info_cap_header
header
;
__u32
nr_areas
;
__u32
reserved
;
struct
vfio_region_sparse_mmap_area
areas
[];
};
/*
* The device specific type capability allows regions unique to a specific
* device or class of devices to be exposed. This helps solve the problem for
* vfio bus drivers of defining which region indexes correspond to which region
* on the device, without needing to resort to static indexes, as done by
* vfio-pci. For instance, if we were to go back in time, we might remove
* VFIO_PCI_VGA_REGION_INDEX and let vfio-pci simply define that all indexes
* greater than or equal to VFIO_PCI_NUM_REGIONS are device specific and we'd
* make a "VGA" device specific type to describe the VGA access space. This
* means that non-VGA devices wouldn't need to waste this index, and thus the
* address space associated with it due to implementation of device file
* descriptor offsets in vfio-pci.
*
* The current implementation is now part of the user ABI, so we can't use this
* for VGA, but there are other upcoming use cases, such as opregions for Intel
* IGD devices and framebuffers for vGPU devices. We missed VGA, but we'll
* use this for future additions.
*
* The structure below defines version 1 of this capability.
*/
#define VFIO_REGION_INFO_CAP_TYPE 2
struct
vfio_region_info_cap_type
{
struct
vfio_info_cap_header
header
;
__u32
type
;
/* global per bus driver */
__u32
subtype
;
/* type specific */
};
#define VFIO_REGION_TYPE_PCI_VENDOR_TYPE (1 << 31)
#define VFIO_REGION_TYPE_PCI_VENDOR_MASK (0xffff)
/* 8086 Vendor sub-types */
#define VFIO_REGION_SUBTYPE_INTEL_IGD_OPREGION (1)
#define VFIO_REGION_SUBTYPE_INTEL_IGD_HOST_CFG (2)
#define VFIO_REGION_SUBTYPE_INTEL_IGD_LPC_CFG (3)
/**
* VFIO_DEVICE_GET_IRQ_INFO - _IOWR(VFIO_TYPE, VFIO_BASE + 9,
* struct vfio_irq_info)
...
...
@@ -336,7 +423,8 @@ enum {
* between described ranges are unimplemented.
*/
VFIO_PCI_VGA_REGION_INDEX
,
VFIO_PCI_NUM_REGIONS
VFIO_PCI_NUM_REGIONS
=
9
/* Fixed user ABI, region indexes >=9 use */
/* device specific cap to define content. */
};
enum
{
...
...
linux-headers/linux/vhost.h
浏览文件 @
b89485a5
...
...
@@ -126,6 +126,12 @@ struct vhost_memory {
#define VHOST_SET_VRING_CALL _IOW(VHOST_VIRTIO, 0x21, struct vhost_vring_file)
/* Set eventfd to signal an error */
#define VHOST_SET_VRING_ERR _IOW(VHOST_VIRTIO, 0x22, struct vhost_vring_file)
/* Set busy loop timeout (in us) */
#define VHOST_SET_VRING_BUSYLOOP_TIMEOUT _IOW(VHOST_VIRTIO, 0x23, \
struct vhost_vring_state)
/* Get busy loop timeout (in us) */
#define VHOST_GET_VRING_BUSYLOOP_TIMEOUT _IOW(VHOST_VIRTIO, 0x24, \
struct vhost_vring_state)
/* VHOST_NET specific defines */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录