Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Nov 2024 14:46:51 GMT
From:      Roger Pau =?utf-8?Q?Monn=C3=A9?= <royger@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 6ac22dc3d823 - main - x86/xen: Use intended values in HVM_CALLBACK_VECTOR
Message-ID:  <202411061446.4A6Ekprl083340@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by royger:

URL: https://cgit.FreeBSD.org/src/commit/?id=6ac22dc3d82395b88f1d8a404aa9985306f06656

commit 6ac22dc3d82395b88f1d8a404aa9985306f06656
Author:     Alan Robinson <alan.robinson@fujitsu.com>
AuthorDate: 2024-10-25 07:27:39 +0000
Commit:     Roger Pau Monné <royger@FreeBSD.org>
CommitDate: 2024-11-06 14:46:05 +0000

    x86/xen: Use intended values in HVM_CALLBACK_VECTOR
    
    Replace the HVM_CB_GSI_GSI SHIFT and MASK with the existing
    but currently unused HVM_CB_VECTOR_VECTOR_SHIFT and MASK.
    
    The binary values are identical.
    
    Reviewed by: Elliott Mitchell <ehem+freebsd@m5p.com>
    Reviewed by: royger
    Pull request: https://github.com/freebsd/freebsd-src/pull/1490
---
 sys/xen/hvm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/xen/hvm.h b/sys/xen/hvm.h
index 3ff3ee3c51e6..cc414b7b471d 100644
--- a/sys/xen/hvm.h
+++ b/sys/xen/hvm.h
@@ -87,7 +87,7 @@ enum {
 };
 #define HVM_CALLBACK_VECTOR(vector) \
     (((uint64_t)HVM_CB_TYPE_VECTOR << HVM_CB_TYPE_SHIFT) \
-   | (((vector) & HVM_CB_GSI_GSI_MASK) << HVM_CB_GSI_GSI_SHIFT))
+   | (((vector) & HVM_CB_VECTOR_VECTOR_MASK) << HVM_CB_VECTOR_VECTOR_SHIFT))
 
 enum xen_hvm_init_type {
 	XEN_HVM_INIT_EARLY,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411061446.4A6Ekprl083340>