Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm just playing around with the QEMU system emulator, and taking a look at the IDE disk emulation, specifically at the DMA disk accesses.

I'm a little confused as to how DMA requests are actually addressed.

For example, the first DMA request made by the OS is to sector zero.

Now on the physical disk, sector zero is the MBR, however on the logical disk, sector zero is the volume boot record.

So my question is this; when Windows, or any OS for that matter makes a DMA request to the disk, is it addressing a logical partition, or the physical disk?

I hope that makes sense!

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You're question is a little unclear, as I think you're misunderstanding what DMA is.

DMA isn't making requests to the disk, it's providing Direct Access to the Memory instead of going to the CPU first.

Since DMA is a hardware-level data transfer method, then as long as the drive, HDD controller, MB, driver and OS all support DMA transfers, the file-system on the drive doesn't matter.

More info:

share|improve this answer
    
Yes, reading it back now I can see how it's a bit unclear. So I think I can infer from your answer that the controller will be performing DMA disk transfers based on the physical sector number of the drive? Thanks –  Tony Jul 13 '13 at 14:43
    
In general yes it'd have to be physical, because it's a hardware-level technology that doesn't care about the file-system itself. :) –  Ƭᴇcʜιᴇ007 Jul 13 '13 at 14:48
    
Thanks for the info. I was a bit confused as I was seeing the first read to sector zero, then reads to sector 2 and 7, which are both empty, and as the MBR is only 512 bytes in size, I was a little confused as to what it was looking for. –  Tony Jul 13 '13 at 14:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.