All of lore.kernel.org
 help / color / mirror / Atom feed
* Questions regarding XEN subsystems..
@ 2015-10-23 17:16 Mike
  2015-10-23 17:25 ` Andrew Cooper
  0 siblings, 1 reply; 2+ messages in thread
From: Mike @ 2015-10-23 17:16 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 209 bytes --]

Hello,

I'm doing some reviewing of XEN source code.  Does x86_emulate() (from
x86_emulate.c) execute on every guest, or is this whenever a machine
doesn't have hardware assisted virtualization?

Thanks,
Mike

[-- Attachment #1.2: Type: text/html, Size: 298 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] 2+ messages in thread

* Re: Questions regarding XEN subsystems..
  2015-10-23 17:16 Questions regarding XEN subsystems Mike
@ 2015-10-23 17:25 ` Andrew Cooper
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cooper @ 2015-10-23 17:25 UTC (permalink / raw)
  To: Mike, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 909 bytes --]

On 23/10/15 18:16, Mike wrote:
> Hello,
>
> I'm doing some reviewing of XEN source code.  Does x86_emulate() (from
> x86_emulate.c) execute on every guest, or is this whenever a machine
> doesn't have hardware assisted virtualization?

By default, guests do not have instructions emulated.  They run on the
real hardware.

There are situations which occur, (as a side effect of virtualisation),
when it traps into Xen.  e.g. updating pagetables while shadow paging is
in use, a write hitting an MMIO page emulated by Qemu, etc.

In such circumstances, the instruction which faulted must be emulated so
Xen can work out what the guest did, and apply the appropriate action. 
e.g. update the pagetable as requested or forward an io request to qemu.

Especially for the SIMD instructions, x86_emulate() is not capable of
providing a software alternative to an instruction not supported by the
hardware.

~Andrew

[-- Attachment #1.2: Type: text/html, Size: 1609 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] 2+ messages in thread

end of thread, other threads:[~2015-10-23 17:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-23 17:16 Questions regarding XEN subsystems Mike
2015-10-23 17:25 ` Andrew Cooper

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.