Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

Commit 82aa669

Browse files
rbradfordandreeaflorescu
authored andcommitted
x86_64: Rename from x86 for consistency
This will break the API but makes it consistent with different architectures (so it matches the kernel arch name that it was generated from). Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
1 parent 4328d85 commit 82aa669

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
extern crate vmm_sys_util;
1313

1414
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
15-
mod x86;
15+
mod x86_64;
1616
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
17-
pub use self::x86::*;
17+
pub use self::x86_64::*;
1818

1919
#[cfg(any(target_arch = "aarch", target_arch = "aarch64"))]
2020
mod arm64;
File renamed without changes.

src/x86/fam_wrappers.rs renamed to src/x86_64/fam_wrappers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use vmm_sys_util::fam::{FamStruct, FamStructWrapper};
55

6-
use x86::bindings::*;
6+
use x86_64::bindings::*;
77

88
/// Maximum number of CPUID entries that can be returned by a call to KVM ioctls.
99
///
@@ -97,7 +97,7 @@ pub type MsrList = FamStructWrapper<kvm_msr_list>;
9797
#[cfg(test)]
9898
mod tests {
9999
use super::{CpuId, MsrList, Msrs};
100-
use x86::bindings::kvm_cpuid_entry2;
100+
use x86_64::bindings::kvm_cpuid_entry2;
101101

102102
#[test]
103103
fn test_cpuid_eq() {
File renamed without changes.

0 commit comments

Comments
 (0)