* Re: PVH questions
2013-01-28 15:09 ` Stefano Stabellini
@ 2013-01-28 16:06 ` Konrad Rzeszutek Wilk
2013-01-28 16:20 ` Jan Beulich
2013-01-28 16:17 ` Samuel Thibault
` (2 subsequent siblings)
3 siblings, 1 reply; 17+ messages in thread
From: Konrad Rzeszutek Wilk @ 2013-01-28 16:06 UTC (permalink / raw)
To: Stefano Stabellini; +Cc: Samuel Thibault, xen-devel@lists.xen.org
On Mon, Jan 28, 2013 at 03:09:57PM +0000, Stefano Stabellini wrote:
> On Mon, 28 Jan 2013, Samuel Thibault wrote:
> > Hello,
> >
> > I've had a look at PVH support, and I have a few questions:
> >
> > - events are still dispatched the PV way through the callback, right?
>
> No, they are injected as an X86 vector (0xf3).
This is a non-PVH question, but the X86 vector injection only works
on CPU0 right? Which means that for HVM backends all of the events
are coalesced in one vector and worst yet - they are not perCPU - so
end up with IPI-ing the other CPUs. Stefano, you were the original
author of this - what would be needed to get this to work across
multitple CPUs and such?
>
>
> > - I guess FPU errors don't trigger an INT13, so I don't need to handle
> > that?
>
> I think that's right, but Mukesh can confirm this.
>
>
> > - How about the console and store MFNs from the boot info? Are they
> > still MFNs, or actually PFNs?
>
> PFNs
>
>
> > - How about PV network in non-copy mode? It used to be done
> > with a page transfer, which the frontend would free, does
> > XENMEM_decrease_reservation still use MFNs, or PFNs?
>
> PFNs
>
> Mukesh, did I get it right?
> Would you be up for writing down these basic pieces of information
> regarding the PVH interface on a wiki page?
> So that other kernel hackers like Samuel can port their favourite open
> source kernel to it?
> Maybe add something about the shared_info page and the grant_table too.
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: PVH questions
2013-01-28 16:06 ` Konrad Rzeszutek Wilk
@ 2013-01-28 16:20 ` Jan Beulich
2013-01-28 16:31 ` Stefano Stabellini
0 siblings, 1 reply; 17+ messages in thread
From: Jan Beulich @ 2013-01-28 16:20 UTC (permalink / raw)
To: Stefano Stabellini, Konrad Rzeszutek Wilk
Cc: Samuel Thibault, xen-devel@lists.xen.org
>>> On 28.01.13 at 17:06, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> On Mon, Jan 28, 2013 at 03:09:57PM +0000, Stefano Stabellini wrote:
>> On Mon, 28 Jan 2013, Samuel Thibault wrote:
>> > Hello,
>> >
>> > I've had a look at PVH support, and I have a few questions:
>> >
>> > - events are still dispatched the PV way through the callback, right?
>>
>> No, they are injected as an X86 vector (0xf3).
>
> This is a non-PVH question, but the X86 vector injection only works
> on CPU0 right? Which means that for HVM backends all of the events
> are coalesced in one vector and worst yet - they are not perCPU - so
> end up with IPI-ing the other CPUs. Stefano, you were the original
> author of this - what would be needed to get this to work across
> multitple CPUs and such?
Iirc the vector callback was added to overcome precisely that
limitation of the original PCI IRQ delivery method.
Jan
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: PVH questions
2013-01-28 16:20 ` Jan Beulich
@ 2013-01-28 16:31 ` Stefano Stabellini
0 siblings, 0 replies; 17+ messages in thread
From: Stefano Stabellini @ 2013-01-28 16:31 UTC (permalink / raw)
To: Jan Beulich
Cc: Samuel Thibault, Konrad Rzeszutek Wilk, xen-devel@lists.xen.org,
Stefano Stabellini
On Mon, 28 Jan 2013, Jan Beulich wrote:
> >>> On 28.01.13 at 17:06, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> > On Mon, Jan 28, 2013 at 03:09:57PM +0000, Stefano Stabellini wrote:
> >> On Mon, 28 Jan 2013, Samuel Thibault wrote:
> >> > Hello,
> >> >
> >> > I've had a look at PVH support, and I have a few questions:
> >> >
> >> > - events are still dispatched the PV way through the callback, right?
> >>
> >> No, they are injected as an X86 vector (0xf3).
> >
> > This is a non-PVH question, but the X86 vector injection only works
> > on CPU0 right? Which means that for HVM backends all of the events
> > are coalesced in one vector and worst yet - they are not perCPU - so
> > end up with IPI-ing the other CPUs. Stefano, you were the original
> > author of this - what would be needed to get this to work across
> > multitple CPUs and such?
>
> Iirc the vector callback was added to overcome precisely that
> limitation of the original PCI IRQ delivery method.
That's right: the vector callback should already work on any guest CPUs.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: PVH questions
2013-01-28 15:09 ` Stefano Stabellini
2013-01-28 16:06 ` Konrad Rzeszutek Wilk
@ 2013-01-28 16:17 ` Samuel Thibault
2013-01-29 2:42 ` Mukesh Rathor
2013-01-31 1:02 ` Samuel Thibault
3 siblings, 0 replies; 17+ messages in thread
From: Samuel Thibault @ 2013-01-28 16:17 UTC (permalink / raw)
To: Stefano Stabellini; +Cc: Konrad Rzeszutek Wilk, xen-devel@lists.xen.org
Stefano Stabellini, le Mon 28 Jan 2013 15:09:57 +0000, a écrit :
> On Mon, 28 Jan 2013, Samuel Thibault wrote:
> > I've had a look at PVH support, and I have a few questions:
> >
> > - events are still dispatched the PV way through the callback, right?
>
> No, they are injected as an X86 vector (0xf3).
Without any error code being pushed on the stack, I guess?
This is a detail that had catched me in the past with vector 0x0f :)
Samuel
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: PVH questions
2013-01-28 15:09 ` Stefano Stabellini
2013-01-28 16:06 ` Konrad Rzeszutek Wilk
2013-01-28 16:17 ` Samuel Thibault
@ 2013-01-29 2:42 ` Mukesh Rathor
2013-01-31 1:02 ` Samuel Thibault
3 siblings, 0 replies; 17+ messages in thread
From: Mukesh Rathor @ 2013-01-29 2:42 UTC (permalink / raw)
To: Stefano Stabellini
Cc: Samuel Thibault, Konrad Rzeszutek Wilk, xen-devel@lists.xen.org
On Mon, 28 Jan 2013 15:09:57 +0000
Stefano Stabellini <stefano.stabellini@eu.citrix.com> wrote:
> On Mon, 28 Jan 2013, Samuel Thibault wrote:
> > Hello,
> >
> > I've had a look at PVH support, and I have a few questions:
> >
> > - events are still dispatched the PV way through the callback,
> > right?
>
> No, they are injected as an X86 vector (0xf3).
>
>
> > - I guess FPU errors don't trigger an INT13, so I don't need to
> > handle that?
>
> I think that's right, but Mukesh can confirm this.
>
>
> > - How about the console and store MFNs from the boot info? Are they
> > still MFNs, or actually PFNs?
>
> PFNs
>
>
> > - How about PV network in non-copy mode? It used to be done
> > with a page transfer, which the frontend would free, does
> > XENMEM_decrease_reservation still use MFNs, or PFNs?
>
> PFNs
>
> Mukesh, did I get it right?
Yes.
> Would you be up for writing down these basic pieces of information
> regarding the PVH interface on a wiki page?
> So that other kernel hackers like Samuel can port their favourite open
> source kernel to it?
> Maybe add something about the shared_info page and the grant_table
> too.
Sure. Lets collect questions and I'll do that after my version 2 patch
is out.
thaks,
mukesh
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: PVH questions
2013-01-28 15:09 ` Stefano Stabellini
` (2 preceding siblings ...)
2013-01-29 2:42 ` Mukesh Rathor
@ 2013-01-31 1:02 ` Samuel Thibault
2013-01-31 1:06 ` Samuel Thibault
2013-01-31 11:51 ` Stefano Stabellini
3 siblings, 2 replies; 17+ messages in thread
From: Samuel Thibault @ 2013-01-31 1:02 UTC (permalink / raw)
To: Stefano Stabellini; +Cc: Konrad Rzeszutek Wilk, xen-devel@lists.xen.org
Stefano Stabellini, le Mon 28 Jan 2013 15:09:57 +0000, a écrit :
> On Mon, 28 Jan 2013, Samuel Thibault wrote:
> > Hello,
> >
> > I've had a look at PVH support, and I have a few questions:
> >
> > - events are still dispatched the PV way through the callback, right?
>
> No, they are injected as an X86 vector (0xf3).
But is that mandatory? Can't we still call set_callbacks?
Samuel
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: PVH questions
2013-01-31 1:02 ` Samuel Thibault
@ 2013-01-31 1:06 ` Samuel Thibault
2013-01-31 11:51 ` Stefano Stabellini
1 sibling, 0 replies; 17+ messages in thread
From: Samuel Thibault @ 2013-01-31 1:06 UTC (permalink / raw)
To: Stefano Stabellini, xen-devel@lists.xen.org, Mukesh Rathor,
Konrad Rzeszutek Wilk
Samuel Thibault, le Thu 31 Jan 2013 02:02:28 +0100, a écrit :
> Stefano Stabellini, le Mon 28 Jan 2013 15:09:57 +0000, a écrit :
> > On Mon, 28 Jan 2013, Samuel Thibault wrote:
> > > Hello,
> > >
> > > I've had a look at PVH support, and I have a few questions:
> > >
> > > - events are still dispatched the PV way through the callback, right?
> >
> > No, they are injected as an X86 vector (0xf3).
>
> But is that mandatory? Can't we still call set_callbacks?
(Mmm, I guess it's not so simple with VMENTER)
Samuel
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: PVH questions
2013-01-31 1:02 ` Samuel Thibault
2013-01-31 1:06 ` Samuel Thibault
@ 2013-01-31 11:51 ` Stefano Stabellini
1 sibling, 0 replies; 17+ messages in thread
From: Stefano Stabellini @ 2013-01-31 11:51 UTC (permalink / raw)
To: Samuel Thibault
Cc: xen-devel@lists.xen.org, Konrad Rzeszutek Wilk,
Stefano Stabellini
[-- Attachment #1: Type: text/plain, Size: 676 bytes --]
On Thu, 31 Jan 2013, Samuel Thibault wrote:
> Stefano Stabellini, le Mon 28 Jan 2013 15:09:57 +0000, a écrit :
> > On Mon, 28 Jan 2013, Samuel Thibault wrote:
> > > Hello,
> > >
> > > I've had a look at PVH support, and I have a few questions:
> > >
> > > - events are still dispatched the PV way through the callback, right?
> >
> > No, they are injected as an X86 vector (0xf3).
>
> But is that mandatory? Can't we still call set_callbacks?
The vector injection is mandatory, but you can choose the vector
number using HVMOP_set_param HVM_PARAM_CALLBACK_IRQ, like I wrote in
the other email.
HYPERVISOR_set_callbacks shouldn't be called for PVH guests.
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 17+ messages in thread