On Tue, May 20, 2025 at 01:29:56PM +0200, Magnus Kulke wrote: > The MSHV accelerator requires a x86 decoder/emulator in userland to > emulate MMIO instructions. This change contains the implementations for > the generalized i386 instruction decoder/emulator. > > Signed-off-by: Magnus Kulke <magnusku...@linux.microsoft.com> > --- > include/system/mshv.h | 32 ++++ > target/i386/cpu.h | 2 +- > target/i386/emulate/meson.build | 7 +- > target/i386/meson.build | 2 + > target/i386/mshv/meson.build | 7 + > target/i386/mshv/x86.c | 330 ++++++++++++++++++++++++++++++++ > 6 files changed, 377 insertions(+), 3 deletions(-) > create mode 100644 include/system/mshv.h > create mode 100644 target/i386/mshv/meson.build > create mode 100644 target/i386/mshv/x86.c > > diff --git a/include/system/mshv.h b/include/system/mshv.h > new file mode 100644 > index 0000000000..8380b92da2 > --- /dev/null > +++ b/include/system/mshv.h > @@ -0,0 +1,32 @@ > +/* > + * QEMU MSHV support > + * > + * Copyright Microsoft, Corp. 2025 > + * > + * Authors: > + * Ziqiao Zhou <ziqiaoz...@microsoft.com> > + * Magnus Kulke <magnusku...@microsoft.com> > + * Jinank Jain <jinankj...@microsoft.com> > + * > + * This work is licensed under the terms of the GNU GPL, version 2 or later. > + * See the COPYING file in the top-level directory.
FYI, for new files we now require use of SPDX-License-Identifier, and omission of any manually written license boilerplate text. checkpatch.pl is supposed to be warning about this, but it is buggy & incomplete right now, but fixes for that are pending to correctly warn about this. With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|