Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BXMHy-0000Cr-2r for qemu-devel@nongnu.org; Mon, 07 Jun 2004 11:43:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BXMHu-0000AD-DG for qemu-devel@nongnu.org; Mon, 07 Jun 2004 11:43:53 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BXMHu-0000A7-AF for qemu-devel@nongnu.org; Mon, 07 Jun 2004 11:43:50 -0400 Received: from [147.102.222.220] (helo=diomedes.noc.ntua.gr) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BXMHA-0003Tc-Cx for qemu-devel@nongnu.org; Mon, 07 Jun 2004 11:43:04 -0400 Received: from dblab.ece.ntua.gr (ithaca.dbnet.ece.ntua.gr [147.102.12.1]) by diomedes.noc.ntua.gr (8.12.9p1/8.12.9) with ESMTP id i57F1gGC099465 for ; Mon, 7 Jun 2004 18:01:42 +0300 (EEST) (envelope-from estama@dblab.ece.ntua.gr) Received: from [147.102.12.171] (dhcp-171.dbnet.ece.ntua.gr [147.102.12.171]) by dblab.ece.ntua.gr (8.12.11/8.12.11) with ESMTP id i57F1g4I080580 for ; Mon, 7 Jun 2004 18:01:42 +0300 (EEST) (envelope-from estama@dblab.ece.ntua.gr) Message-ID: <40C4830C.7070908@dblab.ece.ntua.gr> Date: Mon, 07 Jun 2004 18:00:28 +0300 From: Elefterios Stamatogiannakis MIME-Version: 1.0 Subject: Re: [Qemu-devel] Status of user-mode networking for win32 References: <200406071528.27501.jm@poure.com> <40C4753F.5070401@dblab.ece.ntua.gr> <20040607144551.GB10410@cs.unibo.it> In-Reply-To: <20040607144551.GB10410@cs.unibo.it> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Mmmmmm. If i understand correctly ne2000 links the guest with the host. This connection works for me because i can get a dhcp lease from the qemu-slirp throught ne2000. I can also ping the dhcp server. My problem is with the host -> internet connection from what i can understand. Qemu doesn't seem to open a "real" socket with the outside world at all. Also all the above are using win2k as a host with linux as a guest. teris. Renzo Davoli wrote: > On Mon, Jun 07, 2004 at 05:01:35PM +0300, Elefterios Stamatogiannakis wrote: > >> The problem is that it doesn't seem to connect to the outside world. > > I have seen with a packet sniffer that the packet payload was 16 bits > misaligned. > > I have tried the workaround here included as a patch and > Win98+vdeqemu pci works. > > I am trying to figure out if this is a correct patch or it is the > writel/readl call parameter to be wrong. (word sized transfers should be > aligned...) > > renzo > --------------- > --- hw/ne2000.c.orig 2004-06-07 16:14:28.000000000 +0200 > +++ hw/ne2000.c 2004-06-07 16:27:14.000000000 +0200 > @@ -401,7 +401,8 @@ > static inline void ne2000_mem_writel(NE2000State *s, uint32_t addr, > uint32_t val) > { > - addr &= ~3; /* XXX: check exact behaviour if not even */ > + /*addr &= ~3; XXX: check exact behaviour if not even */ > + addr &= ~1; /* XXX: check exact behaviour if not even */ > if (addr < 32 || > (addr >= NE2000_PMEM_START && addr < NE2000_MEM_SIZE)) { > *(uint32_t *)(s->mem + addr) = cpu_to_le32(val); > @@ -431,7 +432,8 @@ > > static inline uint32_t ne2000_mem_readl(NE2000State *s, uint32_t addr) > { > - addr &= ~3; /* XXX: check exact behaviour if not even */ > + /*addr &= ~3; XXX: check exact behaviour if not even */ > + addr &= ~1; /* XXX: check exact behaviour if not even */ > if (addr < 32 || > (addr >= NE2000_PMEM_START && addr < NE2000_MEM_SIZE)) { > return le32_to_cpu(*(uint32_t *)(s->mem + addr)); > > > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel