From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-la0-f43.google.com ([209.85.215.43]) by pp; Sat Feb 21 13:46:18 EST 2015 Received: by labgf13 with SMTP id gf13so11835894lab.9 for <9front@9front.org>; Sat, 21 Feb 2015 10:46:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=JjLIsZeL107l/4WJLZ/bF3ALCtFbQqTCiu4ajiISsqQ=; b=O/xLsX4zOjrlG4hWA0tESIHi5tVOSWthm7Tx0GNlxBtrlfJVnnigEAsoI2o0BUTh0n me3xhf6llWK+Iyi3HEZ1XalP9BP/309k9nCvAkAxQxBzPQALQSKTgdK4BBbJSv8AdOLY 53z18aT1cmgsPkqg6WMYX+nIIaZdQymzEf8Jb+/qNbZLBkbqHbFjYVhGDcQE/oUsfQTk 1ateMvdYRCslYO44iZa/bM3oMp34GYVg78kjvfpom2H5XvKcWMP8nU3tmfWA4e8e8RRZ Gt/qBhwVH7xqJY16zmWUKGaJkpFYDW+jp1xDfjJLyC5Fa57YCgal5UdvRZ3U3hCFxPIG ZAZA== X-Gm-Message-State: ALoCoQkrpU8lYSr/yjsiY5ImwwAWfWhIAluCW6DxUo+lOyWn/8geQoYOEnt3glYNeKaD3OizhpHg MIME-Version: 1.0 X-Received: by 10.112.198.66 with SMTP id ja2mr3006083lbc.39.1424544372084; Sat, 21 Feb 2015 10:46:12 -0800 (PST) Received: by 10.114.12.37 with HTTP; Sat, 21 Feb 2015 10:46:12 -0800 (PST) In-Reply-To: <21f8ac56c3ec66454834bd0d850220e3@felloff.net> References: <21f8ac56c3ec66454834bd0d850220e3@felloff.net> Date: Sat, 21 Feb 2015 19:46:12 +0100 Message-ID: List-ID: <9front.9front.org> X-Glyph: ➈ X-Bullshit: non-blocking anonymous storage Subject: Re: [9front] 9front on Xen 4.4 HVM From: Giacomo Tesio To: 9front@9front.org Content-Type: text/plain; charset=UTF-8 Thanks for your help cinap. It's an interesting dive into the kernel internals. Btw, I've tried various combinations of networks drivers (virtio-net or rtl) and plan9.ini options but with no success. Now I'm planning to write a plan9.ini menu with the following configurations trying one after another looking for a working solution. As far as I have undestood, I should test 1) *npmp= 2) *nomsi= 3) *acpi= and the 4 combinations of them, right? Is there anything else that I can do to identify and fix the issue? I assigned to the 9front guest only one cpu, to reduce the variables, but actually, if to run on xen 9front must use a single cpu, then the disadvantage of the pv guest will be lower, and I could give it a try too. Strangely, looks like I'm the first to try installing plan9 on xen in the last few years... Giacomo 2015-02-21 12:51 GMT+01:00 : > well, that sounds like a interrupt problem indeed. when you send > packets, all the driver does is to put packets in transmit ring > and optionally kick the card with some register that it should start > transmitting. > > but receiving works by the card issuing a interrupt and then the > driver looks in the receive ring if there are new packets from the > card. > > if interrupt couldnt be enabled (because if broken mp tables), then > we wont receive anything. but sending might still work because it > doesnt need an interrupt. > > the relation with mp is that mp systems use the apic interrupt > controller instead of the legacy pic controller (it is mandatory > as you need to use the apic to bootstrap the other processors). > > enabling interrupt on pic is easy. you read the irq register > from the pci config space (that the bios programmed for you)... > sometimes, pci interrupt router needs to be programmed. > > apic is a bit more complicated than pic because there can be multiple > apic controllers (and multiple processors/lapic's) and we require > tables (from bios) to find the mapping from pci bus interrupt > lines to the apics (which can then be programmed to send interrupts > to the lapics/processors). > > and then theres msi interrupts that *some* devices support that > do not require any tables. you program register in pci config > space for the device and you'r done. this also works only with > apic. > > when you specify *acpi= in plan9.ini, then the kernel will use > the acpi tables instead of the mp tables. > > when you use *nomp=, then we will use legacy pic interrupt controller > and only one cpu can be used (this is also what happens when we cannot > find mp table). > > -- > cinap