summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-10-20 14:33:15 -1000
committerLinus Torvalds <torvalds@linux-foundation.org>2026-10-20 14:33:15 -1000
commit2a0d3d73c112e1ffbb8cc01098b9bd2a3087b40f (patch)
treebf5dfa84478f1732ed98d56913dbb9086d0ae951 /include
parent742f62b63904cdc20a364a49d2861e32464a0af7 (diff)
parent61b6d1df1d6234c38a6ea7e4f58e7da035ef6ab4 (diff)
downloadlinux-2a0d3d73c112e1ffbb8cc01098b9bd2a3087b40f.tar.gz
linux-2a0d3d73c112e1ffbb8cc01098b9bd2a3087b40f.zip
Merge tag 'for-linus-7.4-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip
Pull xen updates from Juergen Gross: "This time only small fixes and cleanups all over Xen related drivers. Nothing really stands out here" * tag 'for-linus-7.4-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip: xen-blkfront: Fix IO race during unplug xen-pciback: Fix pcistub_device ref leak in pcistub_get_gsi_from_sbdf() xen/pcifront: check that an AER callback exists before calling it xen/gntdev: Fix gntdev_dmabuf ref leak in dmabuf_exp_wait_released() x86/PVH: don't truncate initrd address/size xen/privcmd: Only claim ioreqs matching an ioeventfd xen/scsifront: check for a NULL shadow entry on a backend response xen: fix typos in comments xen/gntdev: prevent private mappings from becoming writable xen: remove unused hvm_vcpu.h header xen-blkfront: unbind irq before tearing down ring and shadow requests xen/blkback: Prevent missed completion when draining I/O xen/pcifront: Fix PCI device reference leak in AER handling
Diffstat (limited to 'include')
-rw-r--r--include/xen/interface/hvm/hvm_vcpu.h116
-rw-r--r--include/xen/interface/platform.h4
-rw-r--r--include/xen/interface/xen.h2
-rw-r--r--include/xen/xenbus.h2
4 files changed, 4 insertions, 120 deletions
diff --git a/include/xen/interface/hvm/hvm_vcpu.h b/include/xen/interface/hvm/hvm_vcpu.h
deleted file mode 100644
index cbf93493275c..000000000000
--- a/include/xen/interface/hvm/hvm_vcpu.h
+++ /dev/null
@@ -1,116 +0,0 @@
-/* SPDX-License-Identifier: MIT */
-/*
- * Copyright (c) 2015, Roger Pau Monne <roger.pau@citrix.com>
- */
-
-#ifndef __XEN_PUBLIC_HVM_HVM_VCPU_H__
-#define __XEN_PUBLIC_HVM_HVM_VCPU_H__
-
-#include "../xen.h"
-
-struct vcpu_hvm_x86_32 {
- uint32_t eax;
- uint32_t ecx;
- uint32_t edx;
- uint32_t ebx;
- uint32_t esp;
- uint32_t ebp;
- uint32_t esi;
- uint32_t edi;
- uint32_t eip;
- uint32_t eflags;
-
- uint32_t cr0;
- uint32_t cr3;
- uint32_t cr4;
-
- uint32_t pad1;
-
- /*
- * EFER should only be used to set the NXE bit (if required)
- * when starting a vCPU in 32bit mode with paging enabled or
- * to set the LME/LMA bits in order to start the vCPU in
- * compatibility mode.
- */
- uint64_t efer;
-
- uint32_t cs_base;
- uint32_t ds_base;
- uint32_t ss_base;
- uint32_t es_base;
- uint32_t tr_base;
- uint32_t cs_limit;
- uint32_t ds_limit;
- uint32_t ss_limit;
- uint32_t es_limit;
- uint32_t tr_limit;
- uint16_t cs_ar;
- uint16_t ds_ar;
- uint16_t ss_ar;
- uint16_t es_ar;
- uint16_t tr_ar;
-
- uint16_t pad2[3];
-};
-
-/*
- * The layout of the _ar fields of the segment registers is the
- * following:
- *
- * Bits [0,3]: type (bits 40-43).
- * Bit 4: s (descriptor type, bit 44).
- * Bit [5,6]: dpl (descriptor privilege level, bits 45-46).
- * Bit 7: p (segment-present, bit 47).
- * Bit 8: avl (available for system software, bit 52).
- * Bit 9: l (64-bit code segment, bit 53).
- * Bit 10: db (meaning depends on the segment, bit 54).
- * Bit 11: g (granularity, bit 55)
- * Bits [12,15]: unused, must be blank.
- *
- * A more complete description of the meaning of this fields can be
- * obtained from the Intel SDM, Volume 3, section 3.4.5.
- */
-
-struct vcpu_hvm_x86_64 {
- uint64_t rax;
- uint64_t rcx;
- uint64_t rdx;
- uint64_t rbx;
- uint64_t rsp;
- uint64_t rbp;
- uint64_t rsi;
- uint64_t rdi;
- uint64_t rip;
- uint64_t rflags;
-
- uint64_t cr0;
- uint64_t cr3;
- uint64_t cr4;
- uint64_t efer;
-
- /*
- * Using VCPU_HVM_MODE_64B implies that the vCPU is launched
- * directly in long mode, so the cached parts of the segment
- * registers get set to match that environment.
- *
- * If the user wants to launch the vCPU in compatibility mode
- * the 32-bit structure should be used instead.
- */
-};
-
-struct vcpu_hvm_context {
-#define VCPU_HVM_MODE_32B 0 /* 32bit fields of the structure will be used. */
-#define VCPU_HVM_MODE_64B 1 /* 64bit fields of the structure will be used. */
- uint32_t mode;
-
- uint32_t pad;
-
- /* CPU registers. */
- union {
- struct vcpu_hvm_x86_32 x86_32;
- struct vcpu_hvm_x86_64 x86_64;
- } cpu_regs;
-};
-typedef struct vcpu_hvm_context vcpu_hvm_context_t;
-
-#endif /* __XEN_PUBLIC_HVM_HVM_VCPU_H__ */
diff --git a/include/xen/interface/platform.h b/include/xen/interface/platform.h
index 79a443c65ea9..462e36392a9f 100644
--- a/include/xen/interface/platform.h
+++ b/include/xen/interface/platform.h
@@ -421,10 +421,10 @@ struct xenpf_pcpuinfo {
/* IN */
uint32_t xen_cpuid;
/* OUT */
- /* The maxium cpu_id that is present */
+ /* The maximum cpu_id that is present */
uint32_t max_present;
#define XEN_PCPU_FLAGS_ONLINE 1
- /* Correponding xen_cpuid is not present*/
+ /* Corresponding xen_cpuid is not present*/
#define XEN_PCPU_FLAGS_INVALID 2
uint32_t flags;
uint32_t apic_id;
diff --git a/include/xen/interface/xen.h b/include/xen/interface/xen.h
index 40c9793e9880..f9acb21875cf 100644
--- a/include/xen/interface/xen.h
+++ b/include/xen/interface/xen.h
@@ -94,7 +94,7 @@
#define VIRQ_XENOPROF 7 /* V. XenOprofile interrupt: new sample available */
#define VIRQ_CON_RING 8 /* G. (DOM0) Bytes received on console */
#define VIRQ_PCPU_STATE 9 /* G. (DOM0) PCPU state changed */
-#define VIRQ_MEM_EVENT 10 /* G. (DOM0) A memory event has occured */
+#define VIRQ_MEM_EVENT 10 /* G. (DOM0) A memory event has occurred */
#define VIRQ_XC_RESERVED 11 /* G. Reserved for XenClient */
#define VIRQ_ENOMEM 12 /* G. (DOM0) Low on heap memory */
#define VIRQ_XENPMU 13 /* PMC interrupt */
diff --git a/include/xen/xenbus.h b/include/xen/xenbus.h
index 8ca15743af7f..6424c5cf8ef5 100644
--- a/include/xen/xenbus.h
+++ b/include/xen/xenbus.h
@@ -63,7 +63,7 @@ struct xenbus_watch
unsigned int nr_pending;
/*
- * Called just before enqueing new event while a spinlock is held.
+ * Called just before enqueuing new event while a spinlock is held.
* The event will be discarded if this callback returns false.
*/
bool (*will_handle)(struct xenbus_watch *,