Re: [PATCH 05/17] virt: acrn: Introduce ACRN HSM basic driver

2020-08-30 Thread Shuo A Liu
Hi Dave, On Sat 29.Aug'20 at 9:12:22 -0700, Dave Hansen wrote: On 8/29/20 3:46 AM, Shuo A Liu wrote: On Fri 28.Aug'20 at 12:25:59 +0200, Greg Kroah-Hartman wrote: On Tue, Aug 25, 2020 at 10:45:05AM +0800, shuo.a@intel.com wrote: +static long acrn_dev_ioctl(struct file *filp, unsigned int

Re: [PATCH 05/17] virt: acrn: Introduce ACRN HSM basic driver

2020-08-29 Thread Dave Hansen
On 8/29/20 3:46 AM, Shuo A Liu wrote: > On Fri 28.Aug'20 at 12:25:59 +0200, Greg Kroah-Hartman wrote: >> On Tue, Aug 25, 2020 at 10:45:05AM +0800, shuo.a@intel.com wrote: >>> +static long acrn_dev_ioctl(struct file *filp, unsigned int cmd, >>> +   unsigned long ioctl_param) >>> +{ >

Re: [PATCH 05/17] virt: acrn: Introduce ACRN HSM basic driver

2020-08-29 Thread Shuo A Liu
Hi Greg, On Fri 28.Aug'20 at 12:25:59 +0200, Greg Kroah-Hartman wrote: On Tue, Aug 25, 2020 at 10:45:05AM +0800, shuo.a@intel.com wrote: +static long acrn_dev_ioctl(struct file *filp, unsigned int cmd, + unsigned long ioctl_param) +{ + if (cmd == ACRN_IOCTL_GE

Re: [PATCH 05/17] virt: acrn: Introduce ACRN HSM basic driver

2020-08-28 Thread Greg Kroah-Hartman
On Tue, Aug 25, 2020 at 10:45:05AM +0800, shuo.a@intel.com wrote: > +static long acrn_dev_ioctl(struct file *filp, unsigned int cmd, > +unsigned long ioctl_param) > +{ > + if (cmd == ACRN_IOCTL_GET_API_VERSION) { > + if (copy_to_user((void __user *)ioctl_

[PATCH 05/17] virt: acrn: Introduce ACRN HSM basic driver

2020-08-24 Thread shuo . a . liu
From: Shuo Liu ACRN Hypervisor Service Module (HSM) is a kernel module in Service VM which communicates with ACRN userspace through ioctls and talks to ACRN Hypervisor through hypercalls. Add a basic HSM driver which allows Service VM userspace to communicate with ACRN. The following patches wil