x86/ioremap: Add hypervisor callback for private MMIO mapping in coco VM
[linux-2.6-microblaze.git] / arch / x86 / include / asm / x86_init.h
index c1c8c58..acc20ae 100644 (file)
@@ -259,11 +259,15 @@ struct x86_legacy_features {
  *                             VMMCALL under SEV-ES.  Needs to return 'false'
  *                             if the checks fail.  Called from the #VC
  *                             exception handler.
+ * @is_private_mmio:           For CoCo VMs, must map MMIO address as private.
+ *                             Used when device is emulated by a paravisor
+ *                             layer in the VM context.
  */
 struct x86_hyper_runtime {
        void (*pin_vcpu)(int cpu);
        void (*sev_es_hcall_prepare)(struct ghcb *ghcb, struct pt_regs *regs);
        bool (*sev_es_hcall_finish)(struct ghcb *ghcb, struct pt_regs *regs);
+       bool (*is_private_mmio)(u64 addr);
 };
 
 /**