[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] RE: [Xen-users] 3D acceleration
Very clear explanation there - :) However could this all be solved if the graphics card driver just asked for the correct address? ie if Nvidia added Xen Aware windows drivers and you "passthroughed" your VGA card to domU then it *should just work*? Cheers Dave --snip-- You don't have to have a Xenified driver if there is an IOMMU in the system. But those don't exist today in most systems (IBM has one, but it's only used in LARGE multiprocessor systems - and there's no support in Xen for it anyways - yet at least). So to explain why: Let's say you have a Dom0 that has 256MB of memory, and a DomU that also has 256MB of memory. The DomU will think that the memory starts at zero, because Xen will fake the memory configuration for the domain when it's starting. There are mechanisms (called shadow-paging) to hide the actual memory configuration from the guest, and the guest _WILL_ believe that it's got memory from 0 ... 256MB. Now, the driver for the graphics card will be given a bitmap in user-memory to draw to the video-card. Since we assume this is a "fancy" graphics card, it can do direct memory access (DMA) from the main memory into the video-memory. So the driver will just say "at address XXXXX you can find a bitmap, please DMA it into video memory at address YYYYY". However, XXXXX is a PHYSICAL address within the guest memory - but the ACTUAL physical address that the guest doesn't know about is 256MB + XXXXX. But neither the guest, nor the graphcis card knows that the Guest address is not ACTUAL physical address... So what gets drawn to your screen in this case, would be whatever is at physical address XXXXX - not the INTENDED XXXXX+256MB - and you'll probably find that at XXXXX is some completely different type of data, so the screen will look like someone spilt a bunch of mixed pixels and swept them up into a pile... Or put another way, rubbish will appear on the screen. Does that make it clear? -- Mats _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |