From: =?gbk?B?wfXWvr2o?= Subject: question about dom0 accessing physical device Date: Mon, 10 Nov 2008 11:02:54 +0800 (CST) Message-ID: <33085703.356261226286174239.JavaMail.coremail@bj163app84.163.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0992950922==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============0992950922== Content-Type: multipart/alternative; boundary="----=_Part_96325_21567683.1226286174238" ------=_Part_96325_21567683.1226286174238 Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: quoted-printable Hello all, It seems to me that when dom0 uses in/out instructions, GP fault will occur= , And Xen will check the io accessing permissions, and then performs the op= eration for dom0.=20 My question is : why not use the io-bitmap which is in TSS, to allow dom0 = to access the physical devices' IO ports?=20 As to the mmio, the MMU virtualization can also allow dom0 to map device m= emory areas to its virtual memory space, so that there will be no VMM inter= vence either. why the above approaches are not adopted by Xen? Would anyone tell me the = reason? Thanks a lot. =20 -- The Following is added by the ISP. Please ignore them! =D2=D4=CF=C2=D0=C5=CF=A2=D3=C9=D3=CA=BC=FE=B7=FE=CE=F1=C6=F7=CC=E1=B9=A9=C9= =CC=D7=D4=B6=AF=CC=ED=BC=D3,=D3=EB=B1=BE=D3=CA=BC=FE=C4=DA=C8=DD=CE=DE=B9= =D8! ------=_Part_96325_21567683.1226286174238 Content-Type: text/html; charset=gbk Content-Transfer-Encoding: quoted-printable Hello all,
It seems to me that when d= om0 uses in/out instructions, GP fault will&n= bsp;occur, And Xen will check the io acc= essing permissions, and then performs the ope= ration for dom0. 
My question is : wh= y not use the  io-bitmap which is i= n TSS, to allow dom0 to access the = physical devices' IO ports? 
As to the&nbs= p;mmio,  the MMU virtualization can also = ;allow dom0 to map device memory areas t= o its virtual memory space, so that ther= e will be no VMM intervence either.
why&nb= sp; the above approaches are not adopted = ;by Xen? Would anyone tell me the reason= ?
Thanks a lot.
 
 --    T= he Following is added by the ISP.
 &n= bsp;         Please ignor= e them!

=D2=D4=CF=C2=D0=C5=CF=A2=D3=C9=D3=CA=BC=FE=B7=FE=CE=F1= =C6=F7=CC=E1=B9=A9=C9=CC=D7=D4=B6=AF=CC=ED=BC=D3,=D3=EB=B1=BE=D3=CA=BC=FE= =C4=DA=C8=DD=CE=DE=B9=D8!

=20
[=B9=E3=B8=E6] =BD=F0=C7=EF=D7=EE=B9=D8=D7=A2= =C2=A5=C5=CC-=B7=BF=B2=BB=CA=A4=B7=BF ------=_Part_96325_21567683.1226286174238-- --===============0992950922== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0992950922==--