WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Question about HVM network

To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Subject: Re: [Xen-devel] Question about HVM network
From: cc Luit <universalbillow@xxxxxxxxx>
Date: Mon, 7 Nov 2011 22:29:12 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 07 Nov 2011 06:30:14 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=B6lz0dsrxmCS2wftwGu/3z1HgnWUo2WNAFru4Iddg6c=; b=xrEK3ao3156stplEtBSFHu8t2IMfaEFgUb31+KSQQY+w0zpPebm3iA9f3NKphhpfhO z7BfpqS4cCk1K2F/oyb+T/a61Qprjf4sAiCohbdME5ccH1B1nEy7htUuJYNZNz0ww0SZ W1priPLmEhFd8jLtGg0ekj+0VhAz6NXwYnyj4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1320659859.955.4.camel@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <CADWh-PGMZXWnnSqB5zmSTnLSR66EtX9WnXcn=ZZLNQ=P5mGV7g@xxxxxxxxxxxxxx> <1320659859.955.4.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx


On Mon, Nov 7, 2011 at 5:57 PM, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote:
On Sun, 2011-11-06 at 14:12 +0000, cc Luit wrote:
> Hi, all,
>
>
> I've a question about how network of HVM works,
> when hvm startup, I found the qemu register the io port 0xc100-0xc1ff
> to the function rtl8139_ioport_write, is this means qemu emulate the
> rtl8139 NIC to handle network io event?

> I think this is the default. You can select a different emulated NIC
> using e.g. "model=e1000" in your VIF stanza in the guest configuration
> file.

> but when I scp a file to the remote machine, I cannot find any write
> to these ports, so I'm curious how hvm's network works?

> Perhaps you have ended up with PVHVM network driver? This will take
> precedence to the emulated NIC if present.

Thanks, then can you tell me how PVHVM works, and how can I know if I use it?
and I digged into the rtl8139's driver codes and emulated one in qemu-tools, I found that the hvm use the mmio rather than pio to inform the NIC to poll the descriptor, I think that's why there is no write to the port io, but I'm still curious why qemu need to register the ports to those functions?

Ian.

>
>
> first I'm not using the passthrough, so I think that it will use DMA:
> after it write the content to the memory, it will use PIO to write to
> one of the port to tell the qemu it need to start DMA, but there is no
> write to the port, then how does the rtc8139 emulated by qemu know
> when to start the DMA and where is the memory address?
>
>
> hope someone can help me~ thanks in advance.
>
>
> --
> - Luit @ Parallel Processing Institute, Fudan University
>





--
- Luit @ Parallel Processing Institute, Fudan University 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>