hypervisor: aarch64: move a comment to where it should be

No functional change.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu 2021-11-15 17:30:55 +00:00 committed by Michael
parent 57cc8bc6fe
commit 6221b6f8a1

View File

@ -26,10 +26,6 @@ pub use kvm_bindings::{
use serde_derive::{Deserialize, Serialize};
pub use {kvm_ioctls::Cap, kvm_ioctls::Kvm};
// Following are macros that help with getting the ID of a aarch64 core register.
// The core register are represented by the user_pt_regs structure. Look for it in
// arch/arm64/include/uapi/asm/ptrace.h.
// This macro gets the offset of a structure (i.e `str`) member (i.e `field`) without having
// an instance of that structure.
#[macro_export]
@ -53,6 +49,10 @@ macro_rules! offset__of {
});
}
// Following are macros that help with getting the ID of a aarch64 core register.
// The core register are represented by the user_pt_regs structure. Look for it in
// arch/arm64/include/uapi/asm/ptrace.h.
// Get the ID of a core register
#[macro_export]
macro_rules! arm64_core_reg_id {