<div dir="ltr">No problem :-)<div><br></div><div>In the WSL2 architecture, both the Windows kernel and the Microsoft version of the Linux kernel are run simultaneously on top of Hyper-V (ring 0).</div><div><br></div><div>The Win10 host OS kernel maintains a close (non-separable) integration with Hyper-V, while guest operating systems (which run at the same privilege level) do not, regardless of whether they are running Win10/WinServer/Linux/FreeBSD. This also means that the Win10 host can theoretically cause issues with Hyper-V and vice versa (there was a CVE surrounding that earlier in 2019 I recall, but it was one where it was too difficult for someone to take advantage of practically).</div><div><br></div><div>Thus, the host OS is tied to ring0 in Win10, but guest operating systems are not and need not be started at all times. Thus, the Microsoft version of the LInux kernel (which runs in a Hyper-V VM) is only started on demand when you open that distribution's shell, and stopped when you exit your last connection. You can use the "wsl" command to see this behaviour.</div><div><br></div><div>In Win11 I noticed from the output of "wsl -l -v" that Microsoft version of the Linux kernel is running all the time (even if no distributions are installed in WSL2), and started at boot time, which means it is tied to ring0 like the Win11 host OS. </div><div><br></div><div>What I'm curious about is whether this is the case if you upgrade from a machine that did not have Hyper-V enabled already. If it is, it also means that the underlying Hyper-V hypervisor is now a core component of Win11 (like KVM), and when you install the Hyper-V feature, you're getting the tools and extras only. This makes sense since many programs now require Hyper-V, such as Visual Studio, and Microsoft continues to add hooks in their software for it. </div><div><br></div><div>Each year, it seems less and less absurd that Microsoft may switch to a Linux kernel, so you may have inadvertently made an accurate prediction... </div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 12, 2021 at 12:42 PM Paul Nijjar via kwlug-disc <<a href="mailto:kwlug-disc@kwlug.org">kwlug-disc@kwlug.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Could you elaborate on this? I know what ring 0 is and I know what a<br>
Linux kernel is, but I do not know how to find out more about what is<br>
running in ring 0. Is it some hypervisor?<br>
<br>
I misinterpeted this as "Windows is switching to the Linux kernel" and<br>
now I am profoundly embarrassed. <br>
<br>
- Paul<br>
<br>
On Thu, Jul 22, 2021 at 01:39:05PM -0400, Jason Eckert wrote:<br>
> Since Win11 is running a Linux kernel in ring 0 all the time, you could<br>
> argue that it is, in fact, a Linux distro.<br>
> It's just a matter of time before Systemd takes over all Windows<br>
> configuration ;-)<br>
> <br>
> On Thu, Jul 22, 2021 at 12:54 PM Charles M <<a href="mailto:chaslinux@gmail.com" target="_blank">chaslinux@gmail.com</a>> wrote:<br>
> <br>
> > Not really surprising given that they've been porting tools since at<br>
> > least 2016 from what I remember:<br>
> ><br>
> > <a href="https://www.youtube.com/watch?v=0Gofc7mrnzE" rel="noreferrer" target="_blank">https://www.youtube.com/watch?v=0Gofc7mrnzE</a><br>
> ><br>
> > Not a desktop distribution. But maybe when they get a bunch more tools<br>
> > together we'll see a desktop distribution from them as well.<br>
> ><br>
> > _______________________________________________<br>
> > kwlug-disc mailing list<br>
> > <a href="mailto:kwlug-disc@kwlug.org" target="_blank">kwlug-disc@kwlug.org</a><br>
> > <a href="https://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org" rel="noreferrer" target="_blank">https://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
> ><br>
<br>
> _______________________________________________<br>
> kwlug-disc mailing list<br>
> <a href="mailto:kwlug-disc@kwlug.org" target="_blank">kwlug-disc@kwlug.org</a><br>
> <a href="https://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org" rel="noreferrer" target="_blank">https://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
<br>
<br>
-- <br>
Events: <a href="https://feeds.off-topic.kwlug.org" rel="noreferrer" target="_blank">https://feeds.off-topic.kwlug.org</a> <br>
Housing: <a href="https://unionsd.coop" rel="noreferrer" target="_blank">https://unionsd.coop</a><br>
Blog: <a href="http://pnijjar.freeshell.org" rel="noreferrer" target="_blank">http://pnijjar.freeshell.org</a><br>
<br>
_______________________________________________<br>
kwlug-disc mailing list<br>
<a href="mailto:kwlug-disc@kwlug.org" target="_blank">kwlug-disc@kwlug.org</a><br>
<a href="https://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org" rel="noreferrer" target="_blank">https://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
</blockquote></div>