klange changed the topic of #osdev to: Operating System Development || Don't ask to ask---just ask! || For 3+ LoC, use a pastebin (for example https://gist.github.com/) || Stats + Old logs: http://osdev-logs.qzx.com New Logs: https://libera.irclog.whitequark.org/osdev || Visit https://wiki.osdev.org and https://forum.osdev.org || Books: https://wiki.osdev.org/Books
<geist> instead of just talking about it. i have a whole list of things to Get DUN
<zid> I would do but I am waiting for nikolar to turn his eeepc back on
<zid> he spent like 3 days very helpfully running a usb stick back and forth to his eeepc while we tested usb code
<zid> and then he sort of gaveup and refuses to run any more builds :p
<nikolar> I've been busy on
<nikolar> *ok
<nikolar> Lol
<zid> for a month :P
* mjg burps
<mjg> if i was really into gaming i would get a dedicated rig for it
<mjg> and allow the rootkits in there
netbsduser`` has quit [Ping timeout: 260 seconds]
teardown has quit [Remote host closed the connection]
teardown has joined #osdev
the_oz has joined #osdev
karenw has joined #osdev
reya82 has joined #osdev
marr-ales-fios has joined #osdev
marr-ales-fios has quit [Quit: Konversation terminated!]
MarchHare has quit [Ping timeout: 260 seconds]
teardown has quit [Remote host closed the connection]
teardown has joined #osdev
karenw has quit [Ping timeout: 260 seconds]
reya82 has quit [Quit: reya82]
teardown has quit [Remote host closed the connection]
teardown has joined #osdev
<Ermine> there's a page in ms docs on how to install windows bootloader
<clever> i read that one a few years back, i was wanting to configure it to chainload linux or grub
<clever> instead, i discovered that the windows bootloader can boot windows, from some VM disk image files
marr-ales-fios has joined #osdev
xvmt has quit [Ping timeout: 260 seconds]
goliath has joined #osdev
Lucretia has joined #osdev
leon has quit [Remote host closed the connection]
leon has joined #osdev
argantantua has quit [Quit: WeeChat 4.6.3]
<sortie> mjacob: Yep :)
<sortie> There's a 16 bit id for the vendor, and a 16 bit id for the device :)
<sortie> Your drivers look up ids they understand
GeDaMo has joined #osdev
marr-ales-fios has quit [Remote host closed the connection]
marr-ales-fios has joined #osdev
<heat> TIL C23 added elifdef
<heat> truly the best standard ever
marr-ales-fios has quit [Quit: Konversation terminated!]
<nikolar> c23 is sucky
<nikolar> bloody nullptr in c
<heat> dude, shut up. #elifdef.
<heat> i don't need to say anything else
<sortie> heat what about elifndef?
<heat> also there
<sortie> :O
<heat> they didn't fuck it up this time around!
<sortie> please tell me modern compilers allow those in system headers and don't fail because oh no you had -std=c99
<nikolar> heat: what did they not fuck up
<geist> heat: accept #pragma once into your heart
<nikolar> no
<sortie> no.'
<geist> let it take the wheel
<heat> yes!
Left_Turn has joined #osdev
Left_Turn has quit [Max SendQ exceeded]
JerryXia1 has quit [Ping timeout: 252 seconds]
JerryXiao has joined #osdev
<froggey> #pragma once, #pragma twice, #pragma thrice, #pragma never, #pragma sometimes, #pragma always
luser9 has left #osdev [Leaving]
netbsduser`` has joined #osdev
reya82 has joined #osdev
<reya82> good morning; how could I do QEMU passthru of devices for osdev?
<bslsk05> ​www.google.com: Google Search
<reya82> and more importantly, should I?
<heat> maybe?
<reya82> Uh yes, that only uses virt manager through
<heat> not really
<reya82> i couldn't find a "qemu-command line" only solution - atleast
<heat> the arch linux (btw) wiki tells you how to use the qemu command line for this kind of stuff, i think
<heat> i've done it before with virt-manager, because i can't be arsed to configure everything manually
<reya82> i see
<n00by> sortie: this was really helpful, i was confused until i read their answer https://stackoverflow.com/a/49622327/22663567
<bslsk05> ​stackoverflow.com: c - Can endianness refer to the order of bits in a byte? - Stack Overflow
reya82 has quit [Quit: reya82]
<sortie> n00by: :) Bitness is generally something one does not have to think about since the hardware takes care of it, and you get a number between 0 and 255 inclusive that has the usual mathematical properties, and thus its exact representation doesn't matter (and you can't observe it)
<heat> > you can't observe it
* heat laughs in sidechannel
<n00by> well, heat's a pro
<n00by> ah, now i see it, thanks sortie :3
<nikolar> i've done gpu passthrough with just qemu before
<nikolar> it's certainly possible
<heat> oh definitely
* sortie is a pro too, the difference between heat and me is who gets paid and who does whatever they want :)
<heat> it's just a pain though
<nikolar> not realyl
<nikolar> the pain is that no one documents it online and every tutorial is about virt-manager
<heat> i went through a whole process with setting up intel vGPUs
<heat> that was most definitely a PITA
<heat> (ending up in a vfio-pci-ish passthrough with QEMU)
<nikolar> > -device vfio-pci,host=07:00.1
<nikolar> that's basically all you need to do with qemu
<nikolar> you need to set up iommus and blacklist the device
<nikolar> or bind it to vfio or something i forgor the details
<heat> i generally like using QEMU directly but for fuckier stuff virt-manager can take it
<nikolar> but you'd need to do that regardless of wether you're using qemu or virt-manger
<heat> not really
<heat> i'm 70% sure with virt-manager it Just Works or something
<nikolar> unless virt-manager can unbind the kernel drivers and remap iommus or whatever then no, it doesn't just work
<heat> why would it not be able to?
<nikolar> iommu stuff is in your bios
<n00by> sortie: stuff he said about sidechannel black magic is actually not that common and i guess it would require probing the internals via "guessing" of some sort
<nikolar> n00by: it's far more commoon than you think
<heat> you don't need to set up shit in your BIOS, generally
<nikolar> it usually requires physical access so it's not *that* much of an issue
<nikolar> heat: you do, for iommu junk
<heat> iommu groups are already set up
<nikolar> at least i had to
<heat> at least wherever i've tried
<sortie> n00by: You can read about https://en.wikipedia.org/wiki/Spectre_(security_vulnerability) and https://en.wikipedia.org/wiki/Meltdown_(security_vulnerability) if you'd like to know more, but it's defense against the dark arts
<n00by> oh yeah sure, i heard about those.
<n00by> > Bit order is only meaningful when bits are serialized, for example via a serial or SPI or I2C bus; one after another.
<n00by> no, like how would you get this information without jtag access?
<nikolar> ??
<n00by> the stackoverflow access i linked, had this part
<n00by> answer*
<n00by> i TBH, think the sidechannel stuff is unrelated
<sortie> The side channel stuff is largely unrelated yeah. My point is that you don't get this information, n00by, because the bit representation in bytes is not observable
<n00by> nikolar: without a hardware debugger it's generally not possible (i've heard) to get the physical machine state
<heat> just because you haven't had a side channel in the memory controller because of internal bit ordering
<heat> does not mean you'll never find one
<nikolar> yea
<heat> rowhammer is a perfect example actually, so yeah it does matter
<heat> abstractions leak like all the fucking time
<sortie> rocket science isn't sidechannel attacks
<sortie> sure you got delta v but have you ever read the server private keys straight from an isolated sandbox in a virtual machine
<sortie> ask heat a question like 'I'm thinking about a number between 0 and 255' and he's already using your credit card numbers because you speculated about talking to him
<nikolar> heat: oh wow
<nikolar> how did i not know about rowhammer until now
<heat> no clue!
<nikolar> sick
<heat> it's the greatest thing ever
<nikolar> absolutely
<n00by> sortie: LOL
<nikolar> sortie: well generally, heat would need to tell you to do stuff like take your credit card out of your pocket or whatever
<nikolar> there has to be some related operation
<sortie> nikolar: heat can just speculate all that about me
<heat> guys please send me pics of the front and back of your credit cards
<heat> thanks
<nikolar> i don't have a credit card :(
<heat> also can you send me a SIM + pin for your phone number?
<sortie> oh no I looked at the front of my credit cards
<nikolar> sortie: now you're exploitable
<sortie> quickly, heat, measure my reaction time when looking at my credit cartds
<heat> 3D secure is such a pain when you're trying to commit fraud
<sortie> We need to start a wiki page with heat facts
<nikolar> kek
<sortie> Try 3D secure when trying to rebase fraud
Left_Turn has joined #osdev
corinne has quit [Remote host closed the connection]
corinne has joined #osdev
<gog> i hate payment systems they can fuck off
<gog> except adyen they work great
<mjg> i feel vindicated
<heat> you can't spell HATREDSUNMICROSYSTEMS without SUN MICROSYSTEMS
<nikolar> heat felt attacked
<heat> why would i
<nikolar> don't know
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 248 seconds]
<Ermine> sus microsystems
<gog> somogus+
<gog> openvent
<heat> grog
<heat> grog
<heat> grog
<n00by> lol
<n00by> edsger dijkstra, the weirdest name in all of cs, i never say it because i know i'd always fuck it up
<gog> deykstra
<gog> ij is one letter in duch
<heat> deysenutz
<Ermine> Dutch names are weird indeed
<n00by> gog: ah, how do i find the difference between 'i' and 'y'? the first syllable is like really loud in his name
<gog> if you see ij together it's roughly equivalent to the sound 'ey' would make in english i think
<gog> but maybe shorter idk how to explain it
<n00by> i almost get it though (had to practice it :P)
<gog> i think it might be like icelandic where the first syllable is emphasized unless there's an accented vowel
<n00by> i see, fanks
the_oz has quit [Ping timeout: 252 seconds]
the_oz has joined #osdev
edr has joined #osdev
SanchayanMaity has quit [Quit: Connection closed for inactivity]
netbsduser`` has quit [Ping timeout: 272 seconds]
muffin has joined #osdev
muffin has quit [Quit: leaving]
netbsduser`` has joined #osdev
xvmt has joined #osdev
karenw has joined #osdev
xvmt has quit [Ping timeout: 244 seconds]
xvmt has joined #osdev
msv has quit [Remote host closed the connection]
msv has joined #osdev
msv has quit [Remote host closed the connection]
msv has joined #osdev
goliath has quit [Quit: SIGSEGV]
xvmt_ has joined #osdev
xvmt has quit [Ping timeout: 260 seconds]
xvmt_ is now known as xvmt
the_oz has quit [Read error: Connection reset by peer]
xenos1984 has quit [Ping timeout: 244 seconds]
xenos1984 has joined #osdev
the_oz has joined #osdev
jcea has joined #osdev
jcea has quit [Ping timeout: 272 seconds]
n00by_ has joined #osdev
jcea has joined #osdev
n00by has quit [Ping timeout: 276 seconds]
karenw has quit [Ping timeout: 245 seconds]
corinne has quit [Remote host closed the connection]
corinne has joined #osdev
slow99 has quit [Ping timeout: 260 seconds]
divine has joined #osdev
jcea has quit [Ping timeout: 276 seconds]
corinne has quit [Remote host closed the connection]
corinne has joined #osdev
xenos1984 has quit [Ping timeout: 248 seconds]
<n00by_> yo, hows everybody doing :D
<nikolar> oi
<n00by_> hey nikolar :)
<nikolar> hello
corinne has quit [Remote host closed the connection]
corinne has joined #osdev
<n00by_> > projects promoting programming in natural language are intrinsically doomed to fail!
<n00by_> i like it, yeah llama == incompetent_normie
xenos1984 has joined #osdev
<GeDaMo> I remember a quote along the lines of "If you make it possible for programmers to program in English, you will find that programmers cannot program in English" :P
<n00by_> heh, vide coding. more like chimp keyboard assault lol
<n00by_> vibe*
steelswords94361 has quit [Quit: Ping timeout (120 seconds)]
navi has quit [Read error: Connection reset by peer]
navi has joined #osdev
steelswords94361 has joined #osdev
<n00by_> uh, is there any document that expands on what the sysV abi already contains?
<zid> expands it to what?
<zid> GeDaMo: pretty much exactly what cobol proved
<zid> just because you can write business logic in english, doesn't mean that execs can suddenly do it, they ended up still needing programmers
<nikolar> hey, cobol is still relevant
<zid> yes, proving it didn't work
<zid> the point of cobol was "we wouldn't need programmers if it was in english, you'd just have the secretary do it while you signed the business contract"
<n00by_> zid: like the chapter 8 in the latest edition titled "execution environment" just says "not done yet"
<zid> sure you have.. an up to date pdf?
<n00by_> > AMD64 ABI 1.0 – March 12, 2025 – 14:05
<nikolar> link me
<zid> use the elf pdf
<zid> it describes what the actual execution environment will be
<n00by_> file:///home/eax/Downloads/abi.pdf
<n00by_> oops
<n00by_> srry
<nikolar> lol
<nikolar> thanls
<bslsk05> ​gitlab.com: x86 psABIs / x86-64 psABI · GitLab
<zid> What aux vectors you have available etc is up to the OS ofc though
<zid> https://lwn.net/Articles/631631/ There's a decent article about what linux's is like
<bslsk05> ​lwn.net: How programs get run: ELF binaries [LWN.net]
<n00by_> thanx zid, ill read that
<zid> (mainly ld.so complexities)
<kof673> i'm guessing that is a dig at cobol lol > projects promoting programming in natural language
nur has quit [Remote host closed the connection]
<heat> kernie the kernel
FreeFull has quit []
<nikolar> bernie the bernel
<heat> feel the bern
<zid> usbie the usbnel, nikolar
alloutofnickels has quit [Quit: Leaving]
karenw has joined #osdev
nyah has quit [Remote host closed the connection]
<mjacob> Many examples using EDK 2 seem to add the application to MdeModulePkg. Is this common practice or should I create my own package?
GeDaMo has quit [Quit: 0wt 0f v0w3ls.]
divine has quit [Remote host closed the connection]
netbsduser`` has quit [Read error: Connection reset by peer]
jcea has joined #osdev
jcea has quit [Ping timeout: 268 seconds]
divine has joined #osdev
<sortie> build-aux/installtest.sh is still some of the coolest tech I built for my OS: It automatically runs my OS installer and installs it into a virtual machine harddisk image, using a configuration file with answers for unattended operation. My CI runs it before publishing releases, making sure my builds are functional. It also tests upgrading one release to another.
<heat> weekly post by the Ministry of Truth of the Democratic Republic of Sortix
<sortie> minicat true
<sortie> sortix has always been at war with our best friends over at onyx
<heat> HAVE YOU HEARD OF THE GREAT BUILD-AUX/INSTALLTEST.SH BUILT BY GREAT LEADER JONAS SORTIE TERMANSEN TO DEFEAT EVIL ONYX STATE THAT WANTS TO DESTROY OUR GREAT REPUBLIC AND WAY OF LIVING
<zid> Heatix
<sortie> it is a cool script tho
<zid> Tell nikolar to watch Snatch
<bslsk05> ​gitlab.com: build-aux/installtest.sh · main · sortix / Sortix · GitLab
<heat> TRAITORS LIKE ERMINE THAT CROSS THE BORDER FROM THE DEMOCRATIC REPUBLIC OF SORTIX TO THE FEDERAL REPUBLIC OF ONYX WILL PAY
<sortie> Most hobby systems can't be installed or upgraded, and I got a really nice script that quality controls that it works :)
<sortie> I may have been a test and release infrastructure engineer at the local Google so Sortix totally has crazy CI
<heat> nah bro onyx can totes be installed
<heat> open linux from scratch
<heat> and kinda follow it except when it doesn't apply
<sortie> heat, bro where's my onyx that I can ssh into?
<heat> it's not
<sortie> I just want that, along with tar, make, and a compiler toolchain
<heat> but i wrote a nice patch to port glibc commits to onyx
<bslsk05> ​gist.github.com: port-linux-sysdeps-commit.sh · GitHub
<heat> beautiful
<heat> s/patch/script/
<bslsk05> ​<heat*> but i wrote a nice script to port glibc commits to onyx
<sortie> It is bash but you do get credit for SPDX-License-Identifer
<sortie> sed -i s/${linuxdeps//\//\\\/}/${onyxdeps//\//\\\/}/g $patch ← oh! I remember you being proud of that line \o/
<sortie> I like nice support scripts like that, heat :)
<heat> it's super nice that git format-patch can just filter by file there
<sortie> format-patch is op
<heat> it saved some patchutils invocations
<sortie> git noobs be like "oh it's commit push and merge" and real pros be like "WE'RE GOING BACK IN TIME"
<sortie> git rebase and, god forbid, git filter-branch is way more insane than your common impossible-to-understand time travel movie
<sortie> git rebase is a time machine, git filter-branch is god's power to reimagine the universe
<heat> real pros use format-patch and send-email
<heat> it's what Linus would've wanted
<zid> just don't filter-branch so much that linus suspends your security clearance
<heat> heh
<sortie> I like git send email but I dislike it doesn't result in the same commit on the other end
<heat> it's not supposed to
<sortie> But push does
<heat> you want the maintainer to add his signed-off-by
<heat> AS LINUS INTENEDD
<heat> INTENDED
<sortie> It could have reproduced the commit exactly with the same metadata and then the maintainer -s could be added in the merge
<sortie> As Linus intended
<zid> but then you could STEAL MY PATCHES
<sortie> SHARING IS CARING
<heat> linus definitely didn't intend that!
<sortie> linus is an ideal not a person
<zid> I read that wrong because of the lack of comma
<zid> Linus is an ideal "not a person"
<heat> that's what an anti-linus such as yourself would say
<sortie> i use lowercase shit posting not commas
<heat> with your terse commit messages
<Ermine> I've got brainwashed by onyx propaganda
<Ermine> now i'm voteless
<heat> you're voteless? you're voteful
<sortie> I was born in 1991, year of the Linux, and I started Sortix in 2011 before I turned 20
<zid> I am older than germany, sortie is younger
<sortie> zid, that's false, technically Germany as it exists today is a continuation of the federal republic of germany
<Ermine> heat: not in democratic republic of sortix
<zid> nope, I am older than Germany
<heat> zid was born in 1870
<sortie> zid, how old are you?
<zid> 2 years older than you :P
<zid> berlin wall fell in late 89
<sortie> is that you taylor swift
<heat> close enough
<heat> welcome taylor swift!
<heat> Signed-off-by: Taylor Swift <tswift@gmail.com>
<sortie> zid, indeed, but funny thing is that west germany continued to exist, and east germany stopped to exist and was just merged into west germany
<Ermine> zid born just in time to witness berlin wall fall
<zid> German reunification (German: Deutsche Wiedervereinigung) was the process of re-establishing Germany as a single sovereign state, which began on 9 November 1989 and culminated on 3 October 1990 with the dissolution of the German Democratic Republic
<zid> Read it and weep
<sortie> zid be born in 1989 'look at me making the berlin wall fall'
<sortie> sortie be born in 1991 'bro hold my beer'
<heat> hey sortie did you drink beer here in portugal
<zid> also chauchachcesecu was killed in december 89
<sortie> heat, I think I did have one
<zid> so I am older than fake communism too
<heat> sortie: i'm going to need a rating here
<zid> does portugal make beer
<Ermine> who got killed?
<heat> yeah we have beers
<zid> or do you just import it all from central europe
<heat> Ermine: ceausecu
<sortie> Unfortunately I had more beers in spain for various reasons
<sortie> I very much liked the spanish lemon beer
<heat> ceausescu
<heat> jesus
<zid> Ceaușescu
<heat> there's this app where beer snobs rate beers
<sortie> I got drunk with a friend drinking lemon beer on George Orwell's plaza
<zid> has he ever had a real beer
<heat> and they rate every popular beer around 3 out of 5
<zid> or just a shitty lager
<heat> guinness gets a 3.70 because of the brits
<heat> it's so stupid
<zid> guinness is okay
<heat> but the most insulting bit is that they think sagres < superbock
<heat> when in reality it's sagres > superbock
<zid> at least it isn't a shitty lager
<sortie> heat, unfortunately I think I just had a random beer in Lisbon looking over the coast, don't think it was anything in particular, but I recall liking it (it's beer)
<zid> superbock is better, got it
* kof673 mixes absolute C with super[l]ock
<Ermine> well, anyway, any communism out there is fake
<zid> heat: did you find a can of john smiths yet
<heat> superblock
<sortie> heat, I can pop down and we can have that beer I owe ya?
<kof673> yes *superb[lock]
<heat> sure thing
<heat> as long as it's sagres
<zid> actual beer
<heat> it looks nice
<sortie> sagres looks nice
<zid> I will drink a superbock
<zid> for you heat
<Ermine> #osdev beer meeting
<heat> i particularly prefer sagres because it's so much lighter
<sortie> Did I think about Sortic marketing videos earlier today? Yes I did
<heat> so you can drink more of them
<sortie> I wanted to feature Sortix senior technical advisor heat
<zid> tesco sells it
<sortie> I'm technically in-between on alcohol policies such as whether I drink
<heat> interview with heat
<zid> Sagres Cerveja Premium Portugese Lager 24 x 330ml
<zid> £55
<sortie> I stopped for a while and not I'm not really drinking but uh I don't have a policy
<sortie> *and now I'm not
<zid> heat, £55 is like a year's wages in portugal, how can you afford it
<heat> i actually got on the waiting list for superbock's on-tap home thingy
<zid> a mini keg?
<heat> basically a little device you can use to have your own homemade tap beer
<heat> yeah
<zid> I like a mini keg
<heat> also fyi it's not that expensive here
<zid> (I figured)
<heat> 24x 25cl = 11 euro
<zid> The only minikegs asda has atm are budweiser and stella artois, bleh
<Ermine> when you see smol number in pounds, remember that pound is beeg
<heat> pound is not that beeg compared to the euro
<zid> 85p each
<zid> bargain
<heat> it's bigger, but roughly the same for low quantities
<heat> i was completely lost in the czech republic currency wise
<zid> what do they use, sheep still?
<heat> 7200 CZK is roughly 330 euro
<zid> they're.. 3.4p each, oof
<heat> 300-400 CZK is roughly a whole lunch
<zid> I guess.. 300:1
<zid> vs gbp
<heat> so 12 eur
<zid> would work out okay
<zid> but then you have to factor in I AM IN A CITY
<zid> so you're comparing to like, petrol station prices
<zid> not supermarket prices
<heat> what
<zid> heat you live in an expensive city you wouldn't understand
<Ermine> hm, it's 106 rubles. Dis it use to be like 150 or i'm hallucinating?..
<zid> but for us normal folk, we have local shops that are cheap, and THE BIG CITY is expensive
<zid> and if you're on holiday
<zid> you should be comparing prices against BIG CITY prices, not LOCAL SHOP prices
<heat> sure
<zid> so you need to double upconvert
<zid> and maybe add holiday tax too
<heat> i'm not comparing prices though
<zid> why convert then
<zid> just fuckin, pay for things
<heat> just saying the currency had me fucking lost
<zid> it has number
<heat> i had no idea what things actually cost
<zid> you give number
<heat> so i just went along with it
<zid> That's what I just said!
<heat> yeah the problem is that i do not own czech krona
<zid> Either you try to quantify it in terms of your own monies, or you just ignore it all and go broke in foreignland
<heat> because i'm not in the czech republic
<zid> You used to be able to use big mac price as ruler
<zid> but mcdonalds went fucking insane
<zid> tripled in price here in the past year or two
<zid> then their profits went down and they complained about it, no joke
<heat> vienna was in general really expensive
<heat> BUT
<heat> they had a nice combo menu in mcdonalds for 6 eur
<heat> fucking great deal
<zid> You get to claim VAT back if you're not lazy about it if you come to the UK btw
<the_oz> oh great another country's tax system
<the_oz> sounds fun
<the_oz> you need to come here and pay our taxes too
the_oz has quit [Ping timeout: 248 seconds]
the_oz has joined #osdev
<Ermine> Which part of london is BIG CITY? East or West?
<zid> london prices are another 10x on top of city prices
<zid> we don't go to london
<Ermine> expectable
jcea has joined #osdev
<zid> If you restrict it to the actually populated bits of london you can get some crazy spikes
<zid> like £2 in wraxham vs £19 in london
<zid> wrexham*
Yoofie6464463823 has joined #osdev
Yoofie646446382 has quit [Ping timeout: 252 seconds]
Yoofie6464463823 is now known as Yoofie646446382
Yoofie646446382 has quit [Ping timeout: 260 seconds]
Yoofie646446382 has joined #osdev
Lucretia has quit [Remote host closed the connection]
Turn_Left has quit [Read error: Connection reset by peer]
corinne has quit [Remote host closed the connection]
corinne has joined #osdev