Changeset View
Changeset View
Standalone View
Standalone View
sys/x86/include/kvm.h
- This file was added.
/*- | |||||
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD | |||||
* | |||||
imp: 2014? 2021 would be more appropriate, imho. Here and below (likewise with all rights reserved… | |||||
Done Inline Actions2014 was when I wrote this that keeping it seems appropriate. I'm fine too with saying there's nothing really copyrightable in this file too. bryanv: 2014 was when I wrote this that keeping it seems appropriate. I'm fine too with saying there's… | |||||
Done Inline ActionsPlease add * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) YYYY whoever * Right after the /*- line, before the Redistribution line. That goes for kvm_clock.c as well. rpokala: Please add
```
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) YYYY… | |||||
* Copyright (c) 2014 Bryan Venteicher <bryanv@freebsd.org> | |||||
Done Inline ActionsThis was the custom at the time, but is no longer. Please consider dropping it. imp: This was the custom at the time, but is no longer. Please consider dropping it. | |||||
Done Inline ActionsThat's fine. bryanv: That's fine. | |||||
* Copyright (c) 2021 Mathieu Chouquet-Stringer | |||||
* | |||||
* Redistribution and use in source and binary forms, with or without | |||||
* modification, are permitted provided that the following conditions | |||||
* are met: | |||||
* 1. Redistributions of source code must retain the above copyright | |||||
* notice, this list of conditions and the following disclaimer. | |||||
* 2. Redistributions in binary form must reproduce the above copyright | |||||
* notice, this list of conditions and the following disclaimer in the | |||||
* documentation and/or other materials provided with the distribution. | |||||
* | |||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND | |||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | |||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |||||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |||||
* SUCH DAMAGE. | |||||
*/ | |||||
#ifndef _X86_KVM_H_ | |||||
#define _X86_KVM_H_ | |||||
#define KVM_CPUID_FEATURES_LEAF 0x40000001 | |||||
#define KVM_FEATURE_CLOCKSOURCE 0x00000001 | |||||
#define KVM_FEATURE_CLOCKSOURCE2 0x00000008 | |||||
/* Deprecated: for the CLOCKSOURCE feature. */ | |||||
#define KVM_MSR_WALL_CLOCK 0x11 | |||||
#define KVM_MSR_SYSTEM_TIME 0x12 | |||||
#define KVM_MSR_WALL_CLOCK_NEW 0x4b564d00 | |||||
#define KVM_MSR_SYSTEM_TIME_NEW 0x4b564d01 | |||||
#endif /* !_X86_KVM_H_ */ |
2014? 2021 would be more appropriate, imho. Here and below (likewise with all rights reserved comment below)