mbox series

[v1,0/2] i386: Make PIT and PIC the property of common x86 base machine type

Message ID 20220111073528.1771552-1-xiaoyao.li@intel.com (mailing list archive)
Headers show
Series i386: Make PIT and PIC the property of common x86 base machine type | expand

Message

Xiaoyao Li Jan. 11, 2022, 7:35 a.m. UTC
For PIT, it's straightforward to merge microvm::pit and
pc_machine::pit_enabled into x86ms::pit

For PIC, move microvm::pic to x86ms:pic, which gives PC machine the
ability to dis-/en-able PIC and it's the preparation for future TDX
support.

Xiaoyao Li (2):
  hw/i386: Make pit a property of common x86 base machine type
  hw/i386: Make pic a property of common x86 base machine type

 hw/i386/microvm.c         | 54 ++-------------------------------------
 hw/i386/pc.c              | 24 +++--------------
 hw/i386/pc_piix.c         |  4 ++-
 hw/i386/pc_q35.c          |  4 ++-
 hw/i386/x86.c             | 50 ++++++++++++++++++++++++++++++++++++
 include/hw/i386/microvm.h |  4 ---
 include/hw/i386/pc.h      |  2 --
 include/hw/i386/x86.h     |  4 +++
 8 files changed, 65 insertions(+), 81 deletions(-)

Comments

Xiaoyao Li Feb. 14, 2022, 2:45 p.m. UTC | #1
ping.

On 1/11/2022 3:35 PM, Xiaoyao Li wrote:
> For PIT, it's straightforward to merge microvm::pit and
> pc_machine::pit_enabled into x86ms::pit
> 
> For PIC, move microvm::pic to x86ms:pic, which gives PC machine the
> ability to dis-/en-able PIC and it's the preparation for future TDX
> support.
> 
> Xiaoyao Li (2):
>    hw/i386: Make pit a property of common x86 base machine type
>    hw/i386: Make pic a property of common x86 base machine type
> 
>   hw/i386/microvm.c         | 54 ++-------------------------------------
>   hw/i386/pc.c              | 24 +++--------------
>   hw/i386/pc_piix.c         |  4 ++-
>   hw/i386/pc_q35.c          |  4 ++-
>   hw/i386/x86.c             | 50 ++++++++++++++++++++++++++++++++++++
>   include/hw/i386/microvm.h |  4 ---
>   include/hw/i386/pc.h      |  2 --
>   include/hw/i386/x86.h     |  4 +++
>   8 files changed, 65 insertions(+), 81 deletions(-)
>