All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 00/13] add support for Hypervisor.framework in QEMU
@ 2017-08-30  8:26 Sergio Andres Gomez Del Real
  2017-08-30  8:26 ` [Qemu-devel] [PATCH v2 01/13] hvf: add support for Hypervisor.framework in the configure script Sergio Andres Gomez Del Real
                   ` (15 more replies)
  0 siblings, 16 replies; 53+ messages in thread
From: Sergio Andres Gomez Del Real @ 2017-08-30  8:26 UTC (permalink / raw)
  To: qemu-devel; +Cc: Sergio Andres Gomez Del Real

================
Changes in v2:
 (1) Removed legacy option "-enable-hvf" in favor of "-M accel=hvf"
 (2) Added missing copyright headers; replace fprintfs for error_report;
     improved commit description.
 (3) Moved patch that adds compilation rules in Makefile.objs right after
     the patch that adds the new files from Google's repo.
 (4) Removed conditional macros from cpus.c and cpu.c
 (5) Moved patch that fixes coding style to patch # 3
 (6) Fix commit message in apic patch
 (7) Squash some commits to avoid code churn
================

The following patchset adds to QEMU the supporting for macOS's native
hypervisor, Hypervisor.framework (hvf). The code base is taken from
Google's Android emulator at
https://android.googlesource.com/platform/external/qemu/+/emu-master-dev.

Apart from general code refactoring, some additional features were implemented:
retrieve the set of features supported by host cpu and hvf (cpuid);
dirty page tracking for VGA memory area; reimplementation of the event
injection mechanism to allow injection of exceptions during vmexits, which is
exemplified by the injection of a GP fault when the guest vmexits due to
execution of the vmcall instruction; changing the emulator's use of CPUState
structure in favor of CPUX86State, so as to in the future remove data structures
that are uselessly specific to hvf and unified some of the state between kvm/tcg
and hvf.
Some features initially planned to implement that didn't make it include:
page fault handling in the emulator and implementing the dummy_signal to handle
the SIG_IPI signal without race conditions. Hopefully these can be implemented
in the near future.

Sergio Andres Gomez Del Real (13):
  hvf: add support for Hypervisor.framework in the configure script
  hvf: add code base from Google's QEMU repository
  hvf: add compilation rules to Makefile.objs
  hvf: run hvf code through checkpatch.pl and fix style issues
  hvf: add fields to CPUState and CPUX86State; add definitions
  hvf: use new helper functions for put/get xsave
  apic: add function to apic that will be used by hvf
  hvf: implement hvf_get_supported_cpuid
  hvf: refactor cpuid code
  hvf: implement vga dirty page tracking
  hvf: move fields from CPUState to CPUX86State
  hvf: refactor event injection code for hvf
  hvf: inject General Protection Fault when vmexit through vmcall

 configure                           |   38 +
 cpus.c                              |   92 +-
 hw/intc/apic.c                      |   11 +
 include/hw/i386/apic.h              |    1 +
 include/qom/cpu.h                   |    2 +
 include/sysemu/hvf.h                |  107 ++
 qemu-options.hx                     |   10 +-
 target/i386/Makefile.objs           |    1 +
 target/i386/cpu-qom.h               |    4 +-
 target/i386/cpu.c                   |   83 +-
 target/i386/cpu.h                   |   30 +
 target/i386/hvf-all.c               | 1136 ++++++++++++++++++
 target/i386/hvf-i386.h              |   48 +
 target/i386/hvf-utils/Makefile.objs |    1 +
 target/i386/hvf-utils/README.md     |    7 +
 target/i386/hvf-utils/vmcs.h        |  371 ++++++
 target/i386/hvf-utils/vmx.h         |  222 ++++
 target/i386/hvf-utils/x86.c         |  184 +++
 target/i386/hvf-utils/x86.h         |  476 ++++++++
 target/i386/hvf-utils/x86_cpuid.c   |  417 +++++++
 target/i386/hvf-utils/x86_cpuid.h   |   52 +
 target/i386/hvf-utils/x86_decode.c  | 2186 +++++++++++++++++++++++++++++++++++
 target/i386/hvf-utils/x86_decode.h  |  325 ++++++
 target/i386/hvf-utils/x86_descr.c   |  124 ++
 target/i386/hvf-utils/x86_descr.h   |   55 +
 target/i386/hvf-utils/x86_emu.c     | 1536 ++++++++++++++++++++++++
 target/i386/hvf-utils/x86_emu.h     |   49 +
 target/i386/hvf-utils/x86_flags.c   |  333 ++++++
 target/i386/hvf-utils/x86_flags.h   |  243 ++++
 target/i386/hvf-utils/x86_gen.h     |   53 +
 target/i386/hvf-utils/x86_mmu.c     |  273 +++++
 target/i386/hvf-utils/x86_mmu.h     |   45 +
 target/i386/hvf-utils/x86hvf.c      |  463 ++++++++
 target/i386/hvf-utils/x86hvf.h      |   39 +
 target/i386/kvm.c                   |    2 -
 35 files changed, 8987 insertions(+), 32 deletions(-)
 create mode 100644 include/sysemu/hvf.h
 create mode 100644 target/i386/hvf-all.c
 create mode 100644 target/i386/hvf-i386.h
 create mode 100644 target/i386/hvf-utils/Makefile.objs
 create mode 100644 target/i386/hvf-utils/README.md
 create mode 100644 target/i386/hvf-utils/vmcs.h
 create mode 100644 target/i386/hvf-utils/vmx.h
 create mode 100644 target/i386/hvf-utils/x86.c
 create mode 100644 target/i386/hvf-utils/x86.h
 create mode 100644 target/i386/hvf-utils/x86_cpuid.c
 create mode 100644 target/i386/hvf-utils/x86_cpuid.h
 create mode 100644 target/i386/hvf-utils/x86_decode.c
 create mode 100644 target/i386/hvf-utils/x86_decode.h
 create mode 100644 target/i386/hvf-utils/x86_descr.c
 create mode 100644 target/i386/hvf-utils/x86_descr.h
 create mode 100644 target/i386/hvf-utils/x86_emu.c
 create mode 100644 target/i386/hvf-utils/x86_emu.h
 create mode 100644 target/i386/hvf-utils/x86_flags.c
 create mode 100644 target/i386/hvf-utils/x86_flags.h
 create mode 100644 target/i386/hvf-utils/x86_gen.h
 create mode 100644 target/i386/hvf-utils/x86_mmu.c
 create mode 100644 target/i386/hvf-utils/x86_mmu.h
 create mode 100644 target/i386/hvf-utils/x86hvf.c
 create mode 100644 target/i386/hvf-utils/x86hvf.h

-- 
2.14.1

^ permalink raw reply	[flat|nested] 53+ messages in thread

end of thread, other threads:[~2017-09-08 21:49 UTC | newest]

Thread overview: 53+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-30  8:26 [Qemu-devel] [PATCH v2 00/13] add support for Hypervisor.framework in QEMU Sergio Andres Gomez Del Real
2017-08-30  8:26 ` [Qemu-devel] [PATCH v2 01/13] hvf: add support for Hypervisor.framework in the configure script Sergio Andres Gomez Del Real
2017-08-30 10:18   ` Stefan Hajnoczi
2017-08-30  8:26 ` [Qemu-devel] [PATCH v2 02/13] hvf: add code base from Google's QEMU repository Sergio Andres Gomez Del Real
2017-08-30 14:07   ` Daniel P. Berrange
2017-08-31  7:42     ` Stefan Hajnoczi
2017-08-31 11:26       ` Paolo Bonzini
2017-08-31 12:01         ` Izik Eidus
2017-08-31 21:21           ` Paolo Bonzini
2017-08-31 21:39             ` Izik Eidus
2017-09-03 16:16               ` Izik Eidus
2017-09-03 16:35                 ` Paolo Bonzini
2017-09-03 16:53                   ` Izik Eidus
     [not found]                     ` <CABgObfaDuLvaxpb-GmefsNcoUsjJi3y_oAnfYuQU8LQcGtx9zQ@mail.gmail.com>
2017-09-03 17:13                       ` Paolo Bonzini
2017-09-03 18:49                         ` Izik Eidus
     [not found]                           ` <CABgObfZTRAF7NJea=-SyNy67ZXFZVgoQLRjgswvPSs14euq+zw@mail.gmail.com>
2017-09-04  6:47                             ` Paolo Bonzini
2017-09-06 13:28                               ` Izik Eidus
     [not found]                                 ` <CABgObfac1_DfU1JSu6AeocYQWEqQURxdFt2JPDHzEXG15EOPwQ@mail.gmail.com>
2017-09-06 14:28                                   ` Paolo Bonzini
2017-09-06 14:45                                     ` Izik Eidus
2017-08-31 21:41             ` Sergio Andrés Gómez del Real
2017-08-31 22:02               ` Frank Yang
2017-08-31 22:10                 ` Izik Eidus
2017-09-01  9:18                   ` Daniel P. Berrange
2017-09-01 17:59               ` Izik Eidus
2017-09-03  6:23                 ` Paolo Bonzini
2017-09-03 13:00                   ` Izik Eidus
2017-09-03 16:33                     ` Sergio Andrés Gómez del Real
2017-09-03 16:38                       ` Sergio Andrés Gómez del Real
2017-09-03  2:26             ` Izik Eidus
2017-08-31  7:54   ` Stefan Hajnoczi
2017-08-30  8:26 ` [Qemu-devel] [PATCH v2 03/13] hvf: add compilation rules to Makefile.objs Sergio Andres Gomez Del Real
2017-08-30 10:22   ` Stefan Hajnoczi
2017-08-30 10:26   ` Stefan Hajnoczi
2017-08-30  8:26 ` [Qemu-devel] [PATCH v2 04/13] hvf: run hvf code through checkpatch.pl and fix style issues Sergio Andres Gomez Del Real
2017-08-31  8:01   ` Stefan Hajnoczi
2017-08-30  8:26 ` [Qemu-devel] [PATCH v2 05/13] hvf: add fields to CPUState and CPUX86State; add definitions Sergio Andres Gomez Del Real
2017-08-30 10:24   ` Stefan Hajnoczi
2017-08-30  8:26 ` [Qemu-devel] [PATCH v2 06/13] hvf: use new helper functions for put/get xsave Sergio Andres Gomez Del Real
2017-08-30  8:26 ` [Qemu-devel] [PATCH v2 07/13] apic: add function to apic that will be used by hvf Sergio Andres Gomez Del Real
2017-08-31  8:07   ` Stefan Hajnoczi
2017-08-30  8:26 ` [Qemu-devel] [PATCH v2 08/13] hvf: implement hvf_get_supported_cpuid Sergio Andres Gomez Del Real
2017-08-30  8:26 ` [Qemu-devel] [PATCH v2 09/13] hvf: refactor cpuid code Sergio Andres Gomez Del Real
2017-08-31  8:12   ` Stefan Hajnoczi
2017-08-30  8:26 ` [Qemu-devel] [PATCH v2 10/13] hvf: implement vga dirty page tracking Sergio Andres Gomez Del Real
2017-08-31  8:20   ` Stefan Hajnoczi
2017-08-30  8:27 ` [Qemu-devel] [PATCH v2 11/13] hvf: move fields from CPUState to CPUX86State Sergio Andres Gomez Del Real
2017-08-31  9:18   ` Stefan Hajnoczi
2017-08-30  8:27 ` [Qemu-devel] [PATCH v2 12/13] hvf: refactor event injection code for hvf Sergio Andres Gomez Del Real
2017-08-30  8:27 ` [Qemu-devel] [PATCH v2 13/13] hvf: inject General Protection Fault when vmexit through vmcall Sergio Andres Gomez Del Real
2017-08-30 13:49 ` [Qemu-devel] [PATCH v2 00/13] add support for Hypervisor.framework in QEMU no-reply
2017-08-30 14:14 ` no-reply
2017-08-31  9:34 ` Stefan Hajnoczi
2017-09-08 21:49   ` Sergio Andrés Gómez del Real

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.