From: Mike Wray <mike.wray@hp.com>
To: Arun Sharma <arun.sharma@intel.com>
Cc: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>, xen-devel@lists.xensource.com
Subject: Re: VMX device models not getting created anymore?
Date: Mon, 20 Jun 2005 12:13:50 +0100 [thread overview]
Message-ID: <42B6A4EE.4040203@hp.com> (raw)
In-Reply-To: <42B32FE6.2090308@intel.com>
Arun Sharma wrote:
> Arun Sharma wrote:
>
>> That seems to be the problem. If I add some logging, I see:
>>
>> [2005-06-17 12:06:07 xend] INFO (channel:32) created event channel:
>> <EventChannel dom1:0:19 dom2:5:2>
>> [2005-06-17 12:06:07 xend] INFO (channel:32) created event channel:
>> <EventChannel dom1:0:20 dom2:5:3>
>
> [..]
>
>>
>> Things get more interesting, because self.device_channel['port1'] for
>> the second channel returns 19 instead of 20.
>>
>
> This statement is not true. I got confused because the only the first
> event channel shows up in xm list --long.
>
> The real issue is the hard coding in:
>
> xen/include/public/io/ioreq.h:
>
> #define IOPACKET_PORT 2
>
> This was true before your changes went in. After your changes, xen
> started sending IOPACKET events on:
>
> <EventChannel dom1:0:19 dom2:5:2>
>
> but the user space device models were listening on:
>
> <EventChannel dom1:0:20 dom2:5:3>
>
> However, if I subtract -1, everything magically works :)
Having to add or subtract 1 to make something work is almost always
not the right way to fix a problem - because it dosen't address
the real issue.
> I think the quick fix is to redefine IOPACKET_PORT to be 3. Will send a
> patch to remove the hard coding ASAP.
That's not the fix. That just replaces one hard-coded constant with another, when
it shouldn't be hard-coded at all. It's going to break again if any other interdomain
port is allocated.
The port to use should be passed to the domain as a parameter.
This is what is done with the domain controller port,
and the xenstore port.
The correct fix is to add the device model port as a parameter to
xc_vmx_build. In fact this already has control_evtchn as a parameter,
but ignores it - so you could use that. You could probably re-use
the start_info field for it too as vmx domains don't seem to be using
the control channel otherwise:
Set domain_controller_evtchn in xc_vmx_build from control_evtchn, and use
domain->start_info->domain_controller_evtchn intead of IOPACKET_PORT.
In xend the vmx code can simply pass the domain control evtchn like the
other build functions, since the existing control evtchn isn't being used.
Hope this helps,
Mike
next prev parent reply other threads:[~2005-06-20 11:13 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-10 21:48 VMX device models not getting created anymore? Ian Pratt
2005-06-15 14:30 ` Mike Wray
2005-06-15 17:09 ` Arun Sharma
2005-06-16 8:56 ` Mike Wray
2005-06-16 17:35 ` Arun Sharma
2005-06-17 13:07 ` Mike Wray
2005-06-17 19:28 ` Arun Sharma
2005-06-17 20:17 ` Arun Sharma
2005-06-17 21:54 ` cannot concatenate 'str' and 'Nonetype' object with creating domain Jurgen Stroo
2005-06-17 22:16 ` Jurgen Stroo
2005-06-20 11:13 ` Mike Wray [this message]
2005-06-21 21:01 ` VMX device models not getting created anymore? Arun Sharma
2005-06-22 8:34 ` Mike Wray
2005-06-20 10:52 ` Mike Wray
-- strict thread matches above, loose matches on Subject: below --
2005-06-15 17:12 Ian Pratt
2005-06-15 18:02 ` Arun Sharma
2005-06-10 21:22 Arun Sharma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42B6A4EE.4040203@hp.com \
--to=mike.wray@hp.com \
--cc=arun.sharma@intel.com \
--cc=m+Ian.Pratt@cl.cam.ac.uk \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.