-
gitomat
[illumos-gate] 17903 loader: expose addresses of firmware tables in loader env -- Toomas Soome <tsoome⊙mc>
-
DptPirate
Hello. I can't seem to find a way to get Illumos (Tribblix) to work with KVM/qemu on a Linux host. It always panics after the welcome message after loading the kernel. I've tried all kinds of combinations of virt-install options (--os-variant openindiana,solaris10/11, i440fx, q35... ) but nothing works. Information on this is extremely sparse on search engines. Is there a magic virt-install incantation and best practices to get it to work?
-
DptPirate
-
denk
a better way is to share the panic info
-
DptPirate
-
denk
you can boot with -kv flags, it will stop in kmdb instead of rebooting
-
denk
somebody broke src.illumos.org, I got 502 bad gateway
-
DptPirate
-
denk
Bad kernel fault at addr=0xfffffe0b8b006370
-
denk
type 0xfffffe0b8b006370::whatis
-
denk
or without 0x...
-
DptPirate
fffffe0b8b006370 is unknown
-
andyf
Can you show the output of "$C -vt" ?
-
andyf
(quotes are mine)
-
DptPirate
-
andyf
and "::regs"?
-
DptPirate
-
andyf
startup_modules+10a::dis
-
denk
I would disassemble startup_modules near the point 0x10a to locate it in the source code
-
andyf
I think this is going to be the smbios_open() call
-
denk
we don't see it in the backtrace, it is somewhere else
-
denk
90% that is an unexpected field for the parser
-
DptPirate
Would you like me to type in more commands in the debugger?
-
andyf
Yes, please do "startup_modules+10a::dis"
-
DptPirate
-
denk
indeed, the problem somewhere in smbios_open()
-
denk
*is somewhere
-
denk
there are 6 points with bcopy() inside the function
-
andyf
DptPirate - if qemu has options to control the smbios information presented to the guest I suggest playing with a few of them to see if you can get past this, but it is a bug that it panics.
-
tsoome
does 'show' from loader oK prompt list smbios data?
-
DptPirate
tsoome: "kmdb: failed to dereference symbol: unknown symbol name"
-
DptPirate
andyf: I'll have to investigate this.
-
tsoome
not from mdb but from loader ok prompt (press esc in boot menu)
-
DptPirate
-
DptPirate
It looks like there is smbios info in that dump
-
tsoome
yes, its bios boot and you do have smbios.
-
DptPirate
Would using EFI instead help?
-
tsoome
wont hurt to try.
-
DptPirate
ok I'll try that in a bit.
-
DptPirate
Unfortunately doesn't get to the boat loader (
privatebin.net/?0726237e6e2439bd#37…iaQKTbgSmkGqzuVfrhvtWAEq2KXL4RWh5Xa). And using EFI somehow hosed libvirtd.
-
tsoome
7 is device error - device did report an error condition.
-
gitomat
[illumos-gate] 18027 smbd: dereferencing freed memory -- Toomas Soome <tsoome⊙mc>
-
jbk
it wouldn't be the first time virtualized media doesn't behave correctly
-
jbk
though i wonder if maybe the VM config is missing some parameters
-
jbk
-
fenix
→ CODE REVIEW 4679: 18011 ahci could handle buggy emulators better (NEW) |
illumos.org/issues/18011
-
danmcd
^^^ done
-
jbk
thanks
-
richlowe
so I'm more stupid even than usual lately, and I have a question: Why is `ctrun nightly ...` insufficient to 1) catch the children of make(1) in nightly's contract, 2) keep the contract up until they all quit?
-
gitomat
[illumos-gate] 18040 vtfontcvt: struct file_header needs __nonstring attribute -- Toomas Soome <tsoome⊙mc>
-
gitomat
[illumos-gate] 17992 libdevinfo: enable smatch and fix issues -- Andy Fiddaman <illumos⊙fn>
-
gitomat
[illumos-gate] 13157 maxbw can kill link with hires tick -- Kyle Simpson <kyle⊙oc>
-
gitomat
[illumos-gate] 18078 snoop should report drops when capturing to file -- Ryan Zezeski <ryan⊙zc>
-
richlowe
I guess the person who approved 18078 didn't copy the list?
-
richlowe
or is my mail fucking up?
-
danmcd
No... turns out MY mail is fucking up. Engaging with my local mail-runners now. I'm super-pissed.
-
danmcd
Four mails got gagged, the fourth was a test email.
-
sommerfeld
richlowe: the ctrun thing is mystifying (as I don't see how children wouldn't get attached barring something in an intermediate process detaching them). Unless the newtask invocation does something weird to the contract..
-
jbk
if there's a long enough running child, could you use ps to look at the contract ids of the children?
-
jbk
or maybe ptree -c[g] ?
-
iximeow
i tripped over
illumos.org/issues/18083 just now and i'm wondering what a good way to improve things would be. maybe just changing pbind -u output when a pid has >1 (bound?) lwp?
-
fenix
→
BUG 18083: pbind -u is confusing with LWPs (New)
-
iximeow
i struggle to imagine processor_bind() returning One Of The Previously Bound Processors to be useful if LWPs are bound in interesting ways, but going and just changing *that* feels pretty reckless :D
-
rmustacc
Specifically you didn't specify an lwp right?
-
iximeow
right, just unbound the whole pid
-
rmustacc
I think it's probably impractical for it to report all unbindings.
-
rmustacc
Which doesn't answer the question.
-
rmustacc
But maybe reduces the state?
-
rmustacc
s/state/space
-
iximeow
why do you think it's impractical? that's actually one of the options i was considering. it's just annoying to go through each lwp when we really want to unbind them all. that's what we'd do with something like pid/0-
-
iximeow
that's just clumsy when we know we want P_PID and the old bindings aren't necessarily that interesting
-
rmustacc
Well, I assume you could have probably at least 10k+ threads with bindings.
-
rmustacc
And so that's a lot of data to copy out.
-
iximeow
oh, yeah
-
rmustacc
And you don't even know how much memory to hold to get it all.
-
rmustacc
The other thing and the reason it's differnt with walking all threads is that you're able to do it in one atomic-ish action.
-
rmustacc
Where as the other mechanism allows the process reign to move and have others intervene.
-
iximeow
yeah
-
iximeow
i was wondering what happens if you unbind `pid/0-` while the process spawns more and binds them. don't love it
-
richlowe
it's almost like being less specific there would at least let you not be confused
-
richlowe
if it wasn't trying to help, you'd have been fine
-
rmustacc
I wonder if we could change add a return flag to basically say there was a lot.
-
rmustacc
Yeah. Basically it seems that what's more useful is being less helpful when there was more than one unbinding.
-
iximeow
yeah. i'm happy to go have pbind just say "process id $PID: was bound, now not bound" when processor_bind() succeeds and returned an old binding
-
iximeow
rmustacc: are you imagining a sentinel obind to say there was more than one processor unbound in the action?
-
rmustacc
Kind of yeah.
-
rmustacc
Some variant of none.
-
rmustacc
Dunno exactly. Just thinking out loud.
-
sommerfeld
something like "threads were bound to multiple cpus, now not bound"
-
iximeow
seems reasonable
-
rmustacc
In this case it'd be threads, but it'd be whatever the constinuents of the id type were.