diff options
author | sephe <sephe@FreeBSD.org> | 2017-02-21 02:15:58 +0000 |
---|---|---|
committer | sephe <sephe@FreeBSD.org> | 2017-02-21 02:15:58 +0000 |
commit | 3421658e7a78f61b5da3afde75c88bcfbf419eca (patch) | |
tree | 9a9431f1138aa41acb5fd1dd4dfd6453ae9ae693 /sys/dev/hyperv/include | |
parent | 2c8109bc38532d079c2863e35eb0ec524fa33754 (diff) | |
download | FreeBSD-src-3421658e7a78f61b5da3afde75c88bcfbf419eca.zip FreeBSD-src-3421658e7a78f61b5da3afde75c88bcfbf419eca.tar.gz |
MFC 311743
hyperv: Add method to read 64bit Hyper-V specific time value.
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D9057
Diffstat (limited to 'sys/dev/hyperv/include')
-rw-r--r-- | sys/dev/hyperv/include/hyperv.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/dev/hyperv/include/hyperv.h b/sys/dev/hyperv/include/hyperv.h index 0eda9f0..f0161fc 100644 --- a/sys/dev/hyperv/include/hyperv.h +++ b/sys/dev/hyperv/include/hyperv.h @@ -79,9 +79,17 @@ struct hyperv_guid { #define HYPERV_GUID_STRLEN 40 -int hyperv_guid2str(const struct hyperv_guid *, char *, size_t); +typedef uint64_t (*hyperv_tc64_t)(void); -extern u_int hyperv_features; /* CPUID_HV_MSR_ */ +int hyperv_guid2str(const struct hyperv_guid *, char *, + size_t); + +/* + * hyperv_tc64 could be NULL, if there were no suitable Hyper-V + * specific timecounter. + */ +extern hyperv_tc64_t hyperv_tc64; +extern u_int hyperv_features; /* CPUID_HV_MSR_ */ #endif /* _KERNEL */ |