Skip to content

Commit

Permalink
update Linux headers to 4.3-rc1
Browse files Browse the repository at this point in the history
The update to 4.2 was reviewed by Michael S. Tsirkin and Cornelia
Huck.  The further update to 4.3-rc1 only touches KVM files.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed Sep 16, 2015
1 parent 84090bb commit 120758f
Show file tree
Hide file tree
Showing 6 changed files with 296 additions and 99 deletions.
381 changes: 285 additions & 96 deletions include/standard-headers/linux/pci_regs.h

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion include/standard-headers/linux/virtio_ring.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
* SUCH DAMAGE.
*
* Copyright Rusty Russell IBM Corporation 2007. */
#include <stdint.h>
#include "standard-headers/linux/types.h"
#include "standard-headers/linux/virtio_types.h"

Expand Down Expand Up @@ -143,7 +144,7 @@ static inline void vring_init(struct vring *vr, unsigned int num, void *p,
vr->num = num;
vr->desc = p;
vr->avail = p + num*sizeof(struct vring_desc);
vr->used = (void *)(((unsigned long)&vr->avail->ring[num] + sizeof(__virtio16)
vr->used = (void *)(((uintptr_t)&vr->avail->ring[num] + sizeof(__virtio16)
+ align-1) & ~(align - 1));
}

Expand Down
4 changes: 4 additions & 0 deletions linux-headers/asm-x86/hyperv.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#define HV_X64_MSR_VP_RUNTIME_AVAILABLE (1 << 0)
/* Partition Reference Counter (HV_X64_MSR_TIME_REF_COUNT) available*/
#define HV_X64_MSR_TIME_REF_COUNT_AVAILABLE (1 << 1)
/* Partition reference TSC MSR is available */
#define HV_X64_MSR_REFERENCE_TSC_AVAILABLE (1 << 9)

/* A partition's reference time stamp counter (TSC) page */
#define HV_X64_MSR_REFERENCE_TSC 0x40000021
Expand Down Expand Up @@ -108,6 +110,8 @@
#define HV_X64_HYPERCALL_PARAMS_XMM_AVAILABLE (1 << 4)
/* Support for a virtual guest idle state is available */
#define HV_X64_GUEST_IDLE_STATE_AVAILABLE (1 << 5)
/* Guest crash data handler available */
#define HV_X64_GUEST_CRASH_MSR_AVAILABLE (1 << 10)

/*
* Implementation recommendations. Indicates which behaviors the hypervisor
Expand Down
4 changes: 2 additions & 2 deletions linux-headers/asm-x86/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ struct kvm_xcrs {
struct kvm_sync_regs {
};

#define KVM_QUIRK_LINT0_REENABLED (1 << 0)
#define KVM_QUIRK_CD_NW_CLEARED (1 << 1)
#define KVM_X86_QUIRK_LINT0_REENABLED (1 << 0)
#define KVM_X86_QUIRK_CD_NW_CLEARED (1 << 1)

#endif /* _ASM_X86_KVM_H */
2 changes: 2 additions & 0 deletions linux-headers/linux/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ struct kvm_run {
struct {
#define KVM_SYSTEM_EVENT_SHUTDOWN 1
#define KVM_SYSTEM_EVENT_RESET 2
#define KVM_SYSTEM_EVENT_CRASH 3
__u32 type;
__u64 flags;
} system_event;
Expand Down Expand Up @@ -481,6 +482,7 @@ struct kvm_s390_psw {
((ai) << 26))
#define KVM_S390_INT_IO_MIN 0x00000000u
#define KVM_S390_INT_IO_MAX 0xfffdffffu
#define KVM_S390_INT_IO_AI_MASK 0x04000000u


struct kvm_s390_interrupt {
Expand Down
1 change: 1 addition & 0 deletions scripts/update-linux-headers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ cp_virtio() {
if
grep '#include' "$f" | grep -v -e 'linux/virtio' \
-e 'linux/types' \
-e 'stdint' \
-e 'linux/if_ether' \
-e 'sys/' \
> /dev/null
Expand Down

0 comments on commit 120758f

Please sign in to comment.