A tale of 3 consoles

Apr 29, 2008

The big three consoles, scaled according to how much hardware oomph they pack:

And now in terms of 2007 sales:

Yays for Nintendo.

Brazen broccoli bandit

Apr 28, 2008

This guy is an urban hero. If he’s destroying it, that is. If he’s just eating it, he’s a bit weird.

"Our Ecosystem Rocks!"

Apr 25, 2008

Awesomely bad from Microsoft:

If that’s really supposed to be Bruce Springsteen … well … no.

It makes my overlord’s song, “The Power Of Sun”, seem really, really good.

Rumour has it

Apr 24, 2008

That Haddaway is making a comeback. With a single. Featuring Dr. Alban.

That’s right.

Zaitcev, you can.

Apr 23, 2008

zaitcev: I know you’re not entirely serious, but I don’t know why Ted’s post has put the dampers on anything. Fact is, it’s still open source, you can still fix things, and you can still get them into the main codebase. Or fork. Even better, you’ve been through SMI code review, so you’d be super familiar :)

Ted’s post is wrong in many ways of course. It didn’t take 3 years to get a distributed SCM for the sources out there. I don’t believe for an instant he’s stupid enough to think that getting external committers set up is as simple as “setting up a Mercurial server” (I can assume you remember Teamware). The low rate of contributions is not primarily a result of the cumbersome request sponsor process.

You can’t call something astroturfing when it’s actually doing useful work, just because that rate is fairly low. Especially when you look at how DTrace and ZFS have been ported everywhere (except Linux).

(Update: I would have preferred to reply as a comment, but you have anonymous comments disabled, and LiveJournal is still broken when it comes to openid. I didn’t use my work blog as that’s for content not chit-chat.)

Facebook grew a stupid bar at the bottom

Apr 23, 2008

No, Facebook, I’m not going to use Facebook Chat. Piss off.

Life Imitates Art; Stuff Of Nightmares

Apr 23, 2008

Compare and contrast:

versus:

Time Warner Delivers Modem Cockroaches.

It’s weird enough when the imaginary becomes real. When it’s Chris Morris, it’s genuinely terrifying.

Ha-ha, says Nelson

Apr 21, 2008

It’s Monday, and that means it’s time to point and laugh at religious people again.

xVM Under The Hood: seg_mf

Apr 18, 2008
An occasional series wherein I'll describe a part of the xVM implementation. Today, I'll be talking about seg_mf. You may want to read through my explanation of live migration and MMU virtualization first.

The control domain (dom0) often needs access to memory pages that belong to a running guest domain. The most obvious example of this is in constructing the domain during boot, but it's also needed for mapping the shared virtual guest console page, generating guest domain core dumps, etc.

This is implemented via the privcmd driver. Each process that needs to map some area of a guest domain's memory maps a range of anonymous virtual memory. The process then sends a request to the driver to map in a given range or set of machine frames into the given virtual address range. The two requests (IOCTL_PRIVCMD_MMAP and IOCTL_PRIVCMD_MMAP_BATCH) are more or less the same, although the latter allows the user to track MFNs that couldn't be mapped (see below).

Both ioctl()s hook into the seg_mf code. This is a normal Solaris segment driver (see Solaris Internals) with a hook that's used to store the arrays of MFN values that each VA range is to be backed by. This segment driver is a little unusual though: it does not support demand faulting. That is, every page in the segment is faulted in (and locked in) at the time of the ioctl(). This is needed to support the error-reporting interface described below, but it also helps simplify the driver significantly.

To fault the range, we go through each page-size chunk in the mapping. We need to establish a mapping from the virtual address of the chunk to the actual machine frame holding the page owned by the guest domain. This happens in segmf_faultpage(). The HAT isn't used to our strange request, so we load a temporary mapping at the given VA, and replace that with a mapping to the real underlying MFN via HYPERVISOR_update_va_mapping_otherdomain().

Normally, the MFNs given via the ioctl() should be mappable. One exception is HVM live migration. This was implemented, somewhat confusingly, to use the same interfaces but pass GMFNs not MFNs. In particular, for HVM guests, a guest MFN (what a guest thinks is a real machine frame number) is actually a pseudo-physical frame number. As a result, due to ballooning, or PV drivers, etc., this GMFN may not have a real MFN backing it, so the attempt to map it will fail. We mark the MFN as failed in the outgoing array of IOCTL_PRIVCMD_MMAP_BATCH and let the client deal with it. This is generally OK, since the iterative nature of live migration means we can still get to all the pages we need.

One nice enhancement would be to extend pmap to recognise such mappings. In particular qemu-dm has a bunch of such mappings. It'd be relatively easy to mark such mappings as coming from seg_mf. Extra marks for listing the MFN ranges too, though that's a little harder :)

Tags:

The Most Unwanted Song

Apr 18, 2008

The Most Unwanted Song. I’m in the office, so haven’t actually heard it yet. I’m sure it’s awesome though.