Skip to contentSkip to conversation

Questions about writing to GCMD_REG in iommu.c

DISCUSSION Neo Jia 2 participants 2 messages Jul 13, 2008 – Jul 14, 2008

lore
Share & tools
lore

Neo Jia

author
#0 lore raw

hi,

I am reading through the code of writing GCMD_REG in iommu.c for VT-d on xen-unstable tip. According to the Intel VT-d spec. it looks that we have to make sure that only one bit of this register is modified at one time with one register write. But the current code doesn't do that kind of checking, right?

Thanks,
Neo

Signature · 2 lines
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!
#1 lore raw

Current code has guaranteed this. After writing GCMD_REG, there is a checking to make sure hardware completing it. Can you point out the code which misses the check?

Randy (Weidong)

Quoted 10 lines · Neo Jia

hi,

I am reading through the code of writing GCMD_REG in iommu.c for VT-d on xen-unstable tip. According to the Intel VT-d spec. it looks that we have to make sure that only one bit of this register is modified at one time with one register write. But the current code doesn't do that kind of checking, right?

Thanks,
Neo