Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
HermitCore
uhyve
Commits
7d8cb112
Commit
7d8cb112
authored
Jan 22, 2021
by
Jens Breitbart
Browse files
sync::atomic::spin_loop_hint -> hint::spin_loop
Replaced std::sync::atomic::spin_loop_hint as it is deprecated.
parent
f8cca7a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/uhyve.rs
View file @
7d8cb112
...
...
@@ -10,7 +10,7 @@ extern crate rftrace;
extern
crate
rftrace_frontend
;
use
std
::
env
;
use
std
::
sync
::
atomic
::
spin_loop_
hint
;
use
std
::
hint
;
use
std
::
sync
::
Arc
;
use
std
::
thread
;
...
...
@@ -273,7 +273,7 @@ fn main() {
// only one core is able to enter startup code
// => the wait for the predecessor core
while
tid
!=
vm
.cpu_online
()
{
spin_loop
_hint
();
hint
::
spin_loop
();
}
// jump into the VM and excute code of the guest
...
...
src/linux/uhyve.rs
View file @
7d8cb112
...
...
@@ -14,13 +14,13 @@ use kvm_ioctls::VmFd;
use
log
::
debug
;
use
nix
::
sys
::
mman
::
*
;
use
std
::
convert
::
TryInto
;
use
std
::
hint
;
use
std
::
mem
;
use
std
::
net
::
Ipv4Addr
;
use
std
::
os
::
raw
::
c_void
;
use
std
::
ptr
;
use
std
::
ptr
::{
read_volatile
,
write_volatile
};
use
std
::
str
::
FromStr
;
use
std
::
sync
::
atomic
::
spin_loop_hint
;
use
std
::
sync
::
mpsc
::
sync_channel
;
use
std
::
sync
::{
Arc
,
Mutex
};
use
std
::
thread
;
...
...
@@ -104,7 +104,7 @@ impl UhyveNetwork {
evtfd
.write
(
1
)
.expect
(
"Unable to trigger interrupt"
);
}
else
{
spin_loop
_hint
();
hint
::
spin_loop
();
}
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment