From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: passing through SMBus Date: Mon, 18 Nov 2013 11:33:33 +0000 Message-ID: <5289FB0D.4@citrix.com> References: <5284AC2D.6060304@citrix.com> <528547DE.3050704@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5765249893303931226==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Shailesh Kumar Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org --===============5765249893303931226== Content-Type: multipart/alternative; boundary="------------020000070006010408040308" --------------020000070006010408040308 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit On 18/11/13 06:40, Shailesh Kumar wrote: > Andrew, > > Did I miss to share any details . > Let me know if you have more questions for me . > > waiting for your suggestions. > > thanks > TSK Once again, please do not top post. Qemu has its own chipset emulation. Attempting to shoehorn part of a host chipset into a virtualised guest chipset is unlikely to work. If the Win7 vm is on a headless server, why do you need the local mouse if you are connecting via VNC (I am assuming VNC as you only specified 'ip'). ~Andrew > > > On Thu, Nov 14, 2013 at 11:18 PM, Shailesh Kumar > > wrote: > > My Win7 guest runs on a headless xen hypervisor, so I passthrough > the graphics and all other devices except for HDD. > > May I know what bits and pieces dom0 will be using from SMBus ? > > I communicate between both the domains using ip because I am using > n/w bridge. > > I launch windows using xl create command. > > the reason I need SMBus because synaptic has developed their > latest touchpad driver based on SMBus, There are other devices > which require SMBus for their win drivers to work. > > I looked at qemu code xen-vl-extra.c and pass-through.c and looks > like for device 1f and function 03 it is failing to pass-through. > I also note that dev 1f: func 00 the PCH bus is being getting > passed through in pt-graphics.c and I understand it is in the > interest of the graphics. > > I do not want to hack the qemu to get the function 03 for dev 1f > passed through but I am looking for some neat way of accessing the > SMBus from domU. > > Did I answer you questions ? > > > > > On Thu, Nov 14, 2013 at 1:59 PM, Andrew Cooper > > wrote: > > On 14/11/2013 19:30, Shailesh Kumar wrote: >> I am looking for passingthrough the SMBus to the guest. >> >> > > Please do not drop xen-devel from the CC line, and please do > not top-post. > > Passing though the host SMBus to a VM is almost certainly > going to cause issues. dom0 will likely be using bits and > pieces on the SMBus itself. > > How are you trying to connect to your windows VM ? > > ~Andrew > > >> On Thu, Nov 14, 2013 at 2:55 AM, Andrew Cooper >> > > wrote: >> >> On 14/11/13 03:03, Shailesh Kumar wrote: >>> Hi All, >>> >>> I have a windows 7 as my domU and some windows based >>> drivers are not fully functional (like: touchpad-driver >>> etc ) because they are SMBus based. I was looking at a >>> way to passthrough the SMBus at 00:1f.03 on south bridge >>> ( 00:1f.0), I was debugging at pt-graphics.c and >>> understand that it is detecting the south bridge and >>> passing it through but the other functions for the same >>> dev-id are not getting passed through. Seeking help if >>> someone can help me to get the function '3' also pass >>> through. >>> >>> I am using Xen-4.2.0 and dom-0 linux kernel is 3.9.4. My >>> dom-0 is Fedora-17-64bit based. >>> >>> thanks >>> tsk >> >> Do you mean that you are looking to pass through the host >> SMBus to a guest, or that you are looking for qemu to >> emulate an SMBus? >> >> ~Andrew >> >> > > > --------------020000070006010408040308 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit
On 18/11/13 06:40, Shailesh Kumar wrote:
Andrew, 

Did I miss to share any details . 
Let me know if you have more questions for me .

waiting for your suggestions.

thanks
TSK

Once again, please do not top post.

Qemu has its own chipset emulation.  Attempting to shoehorn part of a host chipset into a virtualised guest chipset is unlikely to work.

If the Win7 vm is on a headless server, why do you need the local mouse if you are connecting via VNC (I am assuming VNC as you only specified 'ip').

~Andrew



On Thu, Nov 14, 2013 at 11:18 PM, Shailesh Kumar <tsaileshkumar@gmail.com> wrote:
My Win7 guest runs on a headless xen hypervisor, so I passthrough the graphics and all other devices except for HDD.

May I know what bits and pieces dom0 will be using from SMBus ? 

I communicate between both the domains using ip because I am using n/w bridge.

I launch windows using xl create command. 

the reason I need SMBus because synaptic has developed their latest touchpad driver based on SMBus, There are other devices which require SMBus for their win drivers to work.

I looked at qemu code xen-vl-extra.c and pass-through.c and looks like for device 1f and function 03 it is failing to pass-through. I also note that dev 1f: func 00 the PCH bus is being getting passed through in pt-graphics.c and I understand it is in the interest of the graphics. 

I do not want to hack the qemu to get the function 03 for dev 1f passed through but I am looking for some neat way of accessing the SMBus from domU. 

Did I answer you questions ? 




On Thu, Nov 14, 2013 at 1:59 PM, Andrew Cooper <andrew.cooper3@citrix.com> wrote:
On 14/11/2013 19:30, Shailesh Kumar wrote:
I am looking for passingthrough the SMBus to the guest.



Please do not drop xen-devel from the CC line, and please do not top-post.

Passing though the host SMBus to a VM is almost certainly going to cause issues.  dom0 will likely be using bits and pieces on the SMBus itself.

How are you trying to connect to your windows VM ?

~Andrew


On Thu, Nov 14, 2013 at 2:55 AM, Andrew Cooper <andrew.cooper3@citrix.com> wrote:
On 14/11/13 03:03, Shailesh Kumar wrote:
Hi All, 

I have a windows 7 as my domU and some windows based drivers are not fully functional (like: touchpad-driver etc ) because they are SMBus based. I was looking at a way to passthrough the SMBus at 00:1f.03 on south bridge ( 00:1f.0), I was debugging at pt-graphics.c and understand that it is detecting the south bridge and passing it through but the other functions for the same dev-id are not getting passed through. Seeking help if someone can help me to get the function '3' also pass through.

I am using Xen-4.2.0 and dom-0 linux kernel is 3.9.4. My dom-0 is Fedora-17-64bit based.

thanks 
tsk

Do you mean that you are looking to pass through the host SMBus to a guest, or that you are looking for qemu to emulate an SMBus?

~Andrew






--------------020000070006010408040308-- --===============5765249893303931226== 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.xen.org http://lists.xen.org/xen-devel --===============5765249893303931226==--