From: "pradeep singh rautela" Subject: Re: TCP state between domU and client Date: Tue, 24 Apr 2007 19:00:22 +0530 Message-ID: <6bc632150704240630i7c73505v2150393f7a4b114f@mail.gmail.com> References: <6bc632150704240542p49376ce7u8bb2572989023e8a@mail.gmail.com> <907625E08839C4409CE5768403633E0B018E1C52@sefsexmb1.amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1035640859==" Return-path: In-Reply-To: <907625E08839C4409CE5768403633E0B018E1C52@sefsexmb1.amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Petersson, Mats" Cc: xen-devel List-Id: xen-devel@lists.xenproject.org --===============1035640859== Content-Type: multipart/alternative; boundary="----=_Part_221470_26108951.1177421422534" ------=_Part_221470_26108951.1177421422534 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 4/24/07, Petersson, Mats wrote: > > > > > -----Original Message----- > > From: xen-devel-bounces@lists.xensource.com > > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of > > pradeep singh rautela > > Sent: 24 April 2007 13:43 > > To: xen-devel > > Subject: [Xen-devel] TCP state between domU and client > > > > Hi All, > > > > I have a query. > > How is a TCP connection state maintained across domUs and a > > remote client? > > Any pointers to the code will be really helpful. > > This is ABSOLUTELY the same as if you have a connection between a > "bare-metal" machine, it's handled in the TCP-layer which is unchanged > between Xen and native Linux. If you don't understand how that works, > then you probably need to look at documentation of how the Linux > TCP-stack works. For the TCP-layer, there's no need to understand if a > machine is a real physical machine or a virtual machine. got it. > > > Second question ,Can I run a Xen hypervisor inside a domU, > > making this domU as the host and subsequent domUs as guests > > running over this guest domU ? Just asking this out of curiosity. > > Yes, no, maybe. You can (so I've been told, I haven't tried) run > Xenified Linux on top of a HVM DomU. Obviously, any guest on top of that > would not be able to use the HVM feature, as that is a "single-layer". > > But for para-virtual domains, you can't run the hypervisor on top of > itself, because the hypervisor needs Ring0 (the most privileged > protection level). Any subsequent load would fail to control this level, > so it's not possible to run the hypervisor at this level. Thank a lot Mats ~psr It is also pretty pointless (aside from the fun and games you can have > with it, and I guess it's proving a point, in the same way as compiling > the source for the compiler with itself proves that the compiler is > working pretty well [This can also be more useful, as the compiler is > perhaps able to do optimization that isn't available in the previous > compiler]). > > -- > Mats > > > > Thank you > > > > ~psr > > > > > > -- > > --- > > pradeep singh rautela > > > > "Genius is 1% inspiration, and 99% perspiration" - not me :) > > > > > -- --- pradeep singh rautela "Genius is 1% inspiration, and 99% perspiration" - not me :) ------=_Part_221470_26108951.1177421422534 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On 4/24/07, Petersson, Mats <Mats.Petersson@amd.com> wrote:


> -----Original Message-----
> From: xen-devel-bounces@lists.xensource.com
> [mailto: xen-devel-bounces@lists.xensource.com] On Behalf Of
> pradeep singh rautela
> Sent: 24 April 2007 13:43
> To: xen-devel
> Subject: [Xen-devel] TCP state between domU and client
>
> Hi All,
>
> I have a query.
> How is a TCP connection state maintained across domUs and a
> remote client?
> Any pointers to the code will be really helpful.

This is ABSOLUTELY the same as if you have a connection between a
"bare-metal" machine, it's handled in the TCP-layer which is unchanged
between Xen and native Linux. If you don't understand how that works,
then you probably need to look at documentation of how the Linux
TCP-stack works. For the TCP-layer, there's no need to understand if a
machine is a real physical machine or a virtual machine.

got it.
 

>
> Second question ,Can I run a Xen hypervisor inside a domU,
> making this domU as the host and subsequent domUs  as guests
> running over this guest domU ? Just asking this out of curiosity.

Yes, no, maybe. You can (so I've been told, I haven't tried) run
Xenified Linux on top of a HVM DomU. Obviously, any guest on top of that
would not be able to use the HVM feature, as that is a "single-layer".

But for para-virtual domains, you can't run the hypervisor on top of
itself, because the hypervisor needs Ring0 (the most privileged
protection level). Any subsequent load would fail to control this level,
so it's not possible to run the hypervisor at this level.

Thank a lot Mats

~psr

It is also pretty pointless (aside from the fun and games you can have
with it, and I guess it's proving a point, in the same way as compiling
the source for the compiler with itself proves that the compiler is
working pretty well [This can also be more useful, as the compiler is
perhaps able to do optimization that isn't available in the previous
compiler]).

--
Mats
>
> Thank you
>
> ~psr
>
>
> --
> ---
> pradeep singh rautela
>
> "Genius is 1% inspiration, and 99% perspiration" - not me :)
>





--
---
pradeep singh rautela

"Genius is 1% inspiration, and 99% perspiration" - not me :) ------=_Part_221470_26108951.1177421422534-- --===============1035640859== 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 --===============1035640859==--