Skip to content

Commit d68c276

Browse files
committed
refactor: move kvm.rs and mshv.rs into subdirectories
Move kvm.rs → kvm/x86_64.rs and mshv.rs → mshv/x86_64.rs, adding mod.rs files that re-export through the x86_64 submodule. This prepares the virtual machine backends for architecture-specific implementations. Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
1 parent 0138328 commit d68c276

4 files changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
Copyright 2025 The Hyperlight Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
#[cfg(target_arch = "x86_64")]
18+
mod x86_64;
19+
#[cfg(target_arch = "x86_64")]
20+
pub(crate) use x86_64::*;

src/hyperlight_host/src/hypervisor/virtual_machine/kvm.rs renamed to src/hyperlight_host/src/hypervisor/virtual_machine/kvm/x86_64.rs

File renamed without changes.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
Copyright 2025 The Hyperlight Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
#[cfg(target_arch = "x86_64")]
18+
mod x86_64;
19+
#[cfg(target_arch = "x86_64")]
20+
pub(crate) use x86_64::*;

src/hyperlight_host/src/hypervisor/virtual_machine/mshv.rs renamed to src/hyperlight_host/src/hypervisor/virtual_machine/mshv/x86_64.rs

File renamed without changes.

0 commit comments

Comments
 (0)