Re: [RFC PATCH 11/15] drivers/acrn: add the support of handling emulated ioreq

2019-08-18 Thread Zhao, Yakui
On 2019年08月16日 21:39, Dan Carpenter wrote: On Fri, Aug 16, 2019 at 10:25:52AM +0800, Zhao Yakui wrote: +int acrn_ioreq_create_client(unsigned short vmid, +ioreq_handler_t handler, +void *client_priv, +char

Re: [RFC PATCH 11/15] drivers/acrn: add the support of handling emulated ioreq

2019-08-16 Thread Dan Carpenter
On Fri, Aug 16, 2019 at 10:25:52AM +0800, Zhao Yakui wrote: > +int acrn_ioreq_create_client(unsigned short vmid, > + ioreq_handler_t handler, > + void *client_priv, > + char *name) > +{ > + struct acrn_vm *vm; > +

[RFC PATCH 11/15] drivers/acrn: add the support of handling emulated ioreq

2019-08-15 Thread Zhao Yakui
After guest UOS is booted, the MMIO/IO access will cause that it exits from VMX non-root env into ACRN hypervisor. Then the ACRN hypervisor will inject virtual irq into the Linux guest with ACRN HSM module. The ACRN_HSM handles this virtual irq (which is based on HYPERVISOR_CALLBACK_VECTOR),