Skip to content

Commit 7285b11

Browse files
committed
Some fixes
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent 899d31b commit 7285b11

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

src/hyperlight_host/src/error.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
#[cfg(mshv3)]
18-
extern crate mshv_ioctls;
19-
2017
use std::array::TryFromSliceError;
2118
use std::cell::{BorrowError, BorrowMutError};
2219
use std::convert::Infallible;

src/hyperlight_host/src/hypervisor/regs/fpu.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
16-
#[cfg(mshv3)]
17-
extern crate mshv_bindings;
18-
#[cfg(mshv3)]
19-
extern crate mshv_ioctls;
2016

2117
#[cfg(target_os = "windows")]
2218
use std::collections::HashSet;

src/hyperlight_host/src/mem/memory_region.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
#[cfg(mshv3)]
18-
extern crate mshv_bindings;
19-
#[cfg(mshv3)]
20-
extern crate mshv_ioctls;
21-
2217
use std::ops::Range;
2318

2419
use bitflags::bitflags;
@@ -30,9 +25,8 @@ use kvm_bindings::{KVM_MEM_READONLY, kvm_userspace_memory_region};
3025
#[cfg(mshv3)]
3126
use mshv_bindings::{
3227
MSHV_SET_MEM_BIT_EXECUTABLE, MSHV_SET_MEM_BIT_UNMAP, MSHV_SET_MEM_BIT_WRITABLE,
28+
hv_x64_memory_intercept_message, mshv_user_mem_region,
3329
};
34-
#[cfg(mshv3)]
35-
use mshv_bindings::{hv_x64_memory_intercept_message, mshv_user_mem_region};
3630
#[cfg(target_os = "windows")]
3731
use windows::Win32::System::Hypervisor::{self, WHV_MEMORY_ACCESS_TYPE};
3832

0 commit comments

Comments
 (0)