]> xenbits.xensource.com Git - xen.git/commitdiff
x86/HVM: use XVFREE() in hvmemul_cache_destroy()
authorJan Beulich <jbeulich@suse.com>
Thu, 13 Feb 2025 13:32:13 +0000 (14:32 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 13 Feb 2025 13:32:13 +0000 (14:32 +0100)
My adjustments to move from xmalloc() et al to respective xvmalloc()
flavors was flawed - a freeing instance wasn't converted.

Fixes: 23d60dbb0493 ("x86/HVM: allocate emulation cache entries dynamically")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-Acked-by: Oleksii Kurochko<oleksii.kurochko@gmail.com>
xen/arch/x86/include/asm/hvm/emulate.h

index 760ce5e77cce8edfa3b50242a0a6544a3b62a0cb..45b03e4e37bbcd5475f58252d4bde659dac4935e 100644 (file)
@@ -123,7 +123,7 @@ static inline void hvmemul_cache_destroy(struct vcpu *v)
     unsigned int i;
 
     for ( i = 0; i < ARRAY_SIZE(v->arch.hvm.hvm_io.mmio_cache); ++i )
-        XFREE(v->arch.hvm.hvm_io.mmio_cache[i]);
+        XVFREE(v->arch.hvm.hvm_io.mmio_cache[i]);
     XVFREE(v->arch.hvm.hvm_io.cache);
 }
 bool hvmemul_read_cache(const struct vcpu *v, paddr_t gpa,