* no definition of virtualization exception in exception table
@ 2016-04-28 2:37 Big Strong
2016-04-28 8:53 ` George Dunlap
0 siblings, 1 reply; 4+ messages in thread
From: Big Strong @ 2016-04-28 2:37 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 515 bytes --]
There is a #VE exception defined in p2086 of Intel Software Development
Manual, however, no definition of exception handler is availble in Xen 4.6.
<http://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=xen/arch/x86/x86_64/entry.S;h=d0f3259efe8b63a152fb413696b66cfb6a382345;hb=9772c480a71ad38cc2c342e4c2e78c2475de7268#l658>Should
I define the handler by myself by modifying the source code of xen, or is
there a way to define the handler of the reserved IDT vectors (0-31, #VE is
20) without modifying the source code?
[-- Attachment #1.2: Type: text/html, Size: 553 bytes --]
[-- 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] 4+ messages in thread
* Re: no definition of virtualization exception in exception table
2016-04-28 2:37 no definition of virtualization exception in exception table Big Strong
@ 2016-04-28 8:53 ` George Dunlap
2016-04-28 9:03 ` Andrew Cooper
0 siblings, 1 reply; 4+ messages in thread
From: George Dunlap @ 2016-04-28 8:53 UTC (permalink / raw)
To: Big Strong; +Cc: xen-devel
On Thu, Apr 28, 2016 at 3:37 AM, Big Strong <fangtuo90@gmail.com> wrote:
> There is a #VE exception defined in p2086 of Intel Software Development
> Manual, however, no definition of exception handler is availble in Xen 4.6.
> Should I define the handler by myself by modifying the source code of xen,
> or is there a way to define the handler of the reserved IDT vectors (0-31,
> #VE is 20) without modifying the source code?
What are you actually trying to do?
Xen shouldn't be generating #VEs itself, so it doesn't need a #VE
handler. Those should only be generated by guests in HVM mode (if I'm
remembering things correctly). In those cases the #VE will either be
delivered directly to the guest, or it will cause a VMEXIT.
-George
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: no definition of virtualization exception in exception table
2016-04-28 8:53 ` George Dunlap
@ 2016-04-28 9:03 ` Andrew Cooper
2016-04-28 10:45 ` Big Strong
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Cooper @ 2016-04-28 9:03 UTC (permalink / raw)
To: George Dunlap, Big Strong; +Cc: xen-devel
On 28/04/16 09:53, George Dunlap wrote:
> On Thu, Apr 28, 2016 at 3:37 AM, Big Strong <fangtuo90@gmail.com> wrote:
>> There is a #VE exception defined in p2086 of Intel Software Development
>> Manual, however, no definition of exception handler is availble in Xen 4.6.
>> Should I define the handler by myself by modifying the source code of xen,
>> or is there a way to define the handler of the reserved IDT vectors (0-31,
>> #VE is 20) without modifying the source code?
> What are you actually trying to do?
>
> Xen shouldn't be generating #VEs itself, so it doesn't need a #VE
> handler. Those should only be generated by guests in HVM mode (if I'm
> remembering things correctly). In those cases the #VE will either be
> delivered directly to the guest, or it will cause a VMEXIT.
Correct. #VE occurs from a EPT permission violation when appropriate
controls are set up, and are either become a VMEXIT or an in-guest #VE
depending on the .surpress_ve bit in a leaf epte.
Unless you are nesting Xen inside another hypervisor on Intel hardware,
and have opted in to receiving #VE's, you won't encounter any.
~Andrew
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: no definition of virtualization exception in exception table
2016-04-28 9:03 ` Andrew Cooper
@ 2016-04-28 10:45 ` Big Strong
0 siblings, 0 replies; 4+ messages in thread
From: Big Strong @ 2016-04-28 10:45 UTC (permalink / raw)
To: Andrew Cooper; +Cc: George Dunlap, xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1280 bytes --]
Got it. Thanks for the replying.
2016-04-28 17:03 GMT+08:00 Andrew Cooper <andrew.cooper3@citrix.com>:
> On 28/04/16 09:53, George Dunlap wrote:
> > On Thu, Apr 28, 2016 at 3:37 AM, Big Strong <fangtuo90@gmail.com> wrote:
> >> There is a #VE exception defined in p2086 of Intel Software Development
> >> Manual, however, no definition of exception handler is availble in Xen
> 4.6.
> >> Should I define the handler by myself by modifying the source code of
> xen,
> >> or is there a way to define the handler of the reserved IDT vectors
> (0-31,
> >> #VE is 20) without modifying the source code?
> > What are you actually trying to do?
> >
> > Xen shouldn't be generating #VEs itself, so it doesn't need a #VE
> > handler. Those should only be generated by guests in HVM mode (if I'm
> > remembering things correctly). In those cases the #VE will either be
> > delivered directly to the guest, or it will cause a VMEXIT.
>
> Correct. #VE occurs from a EPT permission violation when appropriate
> controls are set up, and are either become a VMEXIT or an in-guest #VE
> depending on the .surpress_ve bit in a leaf epte.
>
> Unless you are nesting Xen inside another hypervisor on Intel hardware,
> and have opted in to receiving #VE's, you won't encounter any.
>
> ~Andrew
>
[-- Attachment #1.2: Type: text/html, Size: 1841 bytes --]
[-- 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] 4+ messages in thread
end of thread, other threads:[~2016-04-28 10:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-28 2:37 no definition of virtualization exception in exception table Big Strong
2016-04-28 8:53 ` George Dunlap
2016-04-28 9:03 ` Andrew Cooper
2016-04-28 10:45 ` Big Strong
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.