-
tsoome
great. panic in fifo_read() because fnp->fn_mp is NULL, which should not happen according to this ASSERT...
-
denk
guys, could you test bhyve?
-
denk
lenovo# bhyve -HPD -s 0:0,hostbridge,model=amd -s 31,lpc -l bootrom,/usr/share/bhyve/uefi-rom.bin -c 4 -m 4g test
-
denk
Assertion failed: err == 0, file rtc.c, line 125, function rtc_init
-
denk
without -u ioctl() returns EINVAL in the function
-
denk
561: ioctl(3, (('v'<<16)|('m'<<8)|16), 0xFFFFFC7FFFDF2560) Err#22 EINVAL
-
denk
Assertion failed: err == 0, file rtc.c, line 125, function rtc_init
-
denk
561: write(2, " A s s e r t i o n f a".., 68) = 68
-
andyf
What's your system clock set to?
-
denk
my local timezone
-
denk
lenovo# date
-
denk
Tue Feb 20 17:53:48 MSK 2024
-
jbk
hrm.. truss -v i don't think will show the timespec_t being passed
-
andyf
Can you try wrapping that command in dtrace to see what is actually being passed through to the kernel? Something like: dtrace -n 'vrtc_set_time:entry{print(*args[1])}' -c 'bhyve -HPD ...'
-
denk
-
jbk
but it looks like that fails w/ EINVAL if tv_sec < 0 or tv_nsec > NANOSEC
-
andyf
The only EINVAL return seems to be for .. yeah, what jbk said :)
-
denk
jbk: +1
-
jbk
oh
-
jbk
hrm
-
jbk
i think we might have an uninitialized variable there
-
jbk
err no
-
denk
-
denk
dtrace result
-
andyf
So the `tv_sec` value is the problem
-
jbk
yeah
-
jbk
unfortunately i've got my daily morning team meeting in 2 mins
-
jbk
and we just had a long weekend, so it's almost certainly going to run long.. so i'll have to step aside for the moment
-
jbk
the one thing would be to know if rtc.use_localtime is set or not
-
jbk
as that could alter the value of ts
-
jbk
(to track down where the -1 is coming from)
-
denk
file a bug for the future
-
andyf
denk - run the bhyve command with an added `-o config.dump=1`
-
andyf
that will dump out the final configuration, and then look for and `rtc` keys there
-
denk
-
andyf
Not set, so what appears to be happening is that `clock_gettime(CLOCK_REALTIME, ts)` is returning an invalid value. We can check that with dtrace too
-
andyf
It's a bit longer but hopefully I got this right
-
andyf
dtrace -n 'pid$target::clock_gettime:e
-
andyf
ntry{self->ts = args[1]}' -n 'pid$target::clock_gettime:return{print(*self->ts)}
-
andyf
' -c 'bhyve -HPD ...'
-
andyf
dtrace -n 'pid$target::clock_gettime:entry{self->ts = args[1]}' -n 'pid$target::clock_gettime:return{print(*self->ts)}' -c 'bhyve -HPD ...'
-
denk
andyf: I guess the bug confirmed, isn't it?
-
andyf
If that latest dtrace shows that the system call is returning -1 in the seconds field, that implies a kernel bug somewhere but it will need more investigation to find the cause.
-
andyf
bhyve could show a better error message, but it doesn't seem to be at fault here
-
andyf
There are tests for clock_gettime() so it would definitely be worth running them on that system
-
andyf
/opt/os-tests/tests/clock_gettime.64 for example, if you have system/test/ostest installed
-
denk
I did not install any test on that laptop, sorry
-
andyf
Does that last dtrace line show anything?
-
andyf
-
denk
-
andyf
Missed the `-c` before the command
-
denk
-
andyf
Well that looks ok. Can you use both dtrace lines together? Add this to the one you just ran: -n 'vrtc_set_time:entry{print(*args[1])}'
-
denk
let's try to it
-
denk
-
andyf
Well, I can't explain that based on the code I'm looking at in illumos-gate -
github.com/illumos/illumos-gate/blo…r/usr/src/cmd/bhyve/rtc.c#L122-L123
-
andyf
The timestamp is right when it comes back from the kernel, but the seconds element gets replaced with -1 before the call to vm_rtc_settime()
-
andyf
At this point I think I would start disassembling that function and using instruction tracing to work out what is happening
-
andyf
I can't replicate it on omnios or helios. Are you using openindiana?
-
denk
nope, dilos
-
denk
thanks anyway for your time
-
andyf
I think you need to look for differences around there, or in libvmmapi then. Good luck
-
gitomat
[illumos-gate] 16294 Appease pkglint regarding secondary python version -- Andy Fiddaman <illumos⊙fn>
-
hirigaray
so... how many of you are running helios to poke around?
-
hirigaray
hello by the way lol
-
antranigv
hirigaray hello
-
antranigv
hirigaray not helios, but I'm running OmniOS and SmartOS :)
-
antranigv
I should try running helios
-
hirigaray
i did install helios on my spare x220 and it's running
-
hirigaray
but it's also my first illumos distro... so, probably not the right place to start
-
antranigv
I should try booting it in bhyve
-
antranigv
hirigaray how did you install it?
-
hirigaray
-
hirigaray
theres instructions there, but basically, i just downloaded the vga iso, booted it up and installed it
-
hirigaray
no issues at all, i was very happy
-
antranigv
hirigaray nice!
-
hirigaray
but now I am not sure what exactly I can/should do with it :D I am basically exploring illumos
-
hirigaray
learning all the illumos basics