virt: acrn: Replace obsolete memalign() with posix_memalign()memalign() is obsolete according to its manpage.Replace memalign() with posix_memalign() and remove malloc.h includethat was there fo
virt: acrn: Replace obsolete memalign() with posix_memalign()memalign() is obsolete according to its manpage.Replace memalign() with posix_memalign() and remove malloc.h includethat was there for memalign().As a pointer is passed into posix_memalign(), initialize *p to NULLto silence a warning about the function's return value being used asuninitialized (which is not valid anyway because the error is properlychecked before p is returned).Signed-off-by: Deming Wang <wangdeming@inspur.com>Link: https://lore.kernel.org/r/20230412073041.2168-1-wangdeming@inspur.comSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
show more ...
virt: acrn: Mark the uuid field as unusedAfter the commits for userspace (see Link tags below) the uuid fieldis not being used in the ACRN code. Update kernel to reflect thesechanges, i.e. do the
virt: acrn: Mark the uuid field as unusedAfter the commits for userspace (see Link tags below) the uuid fieldis not being used in the ACRN code. Update kernel to reflect thesechanges, i.e. do the following:- adding a comment explaining that it's not used anymore- replacing the specific type by a raw buffer- updating the example code accordinglyThe advertised field confused users and actually never been used.So the wrong part here is that kernel puts something which userspacenever used and hence this may confuse a reader of this code.Note, that there is only a single tool that had been prepared a yearago for these forthcoming changes in the kernel.Link: https://github.com/projectacrn/acrn-hypervisor/commit/da0d24326ed6Link: https://github.com/projectacrn/acrn-hypervisor/commit/bb0327e70097Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>Acked-by: Rafael J. Wysocki <rafael@kernel.org>Link: https://lore.kernel.org/r/20221116162956.72658-1-andriy.shevchenko@linux.intel.comSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sample/acrn: Introduce a sample of HSM ioctl interface usageLaunch a simple guest (with several instructions as payload) on ACRNwith demonstration ioctl usage.Signed-off-by: Shuo Liu <shuo.a.liu
sample/acrn: Introduce a sample of HSM ioctl interface usageLaunch a simple guest (with several instructions as payload) on ACRNwith demonstration ioctl usage.Signed-off-by: Shuo Liu <shuo.a.liu@intel.com>Link: https://lore.kernel.org/r/20210207031040.49576-19-shuo.a.liu@intel.comSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>