Skip to contentSkip to conversation

Arch-neutral name for hardware interrupt support

DISCUSSION Andrew Cooper 8 participants 9 messages Nov 1, 2021 – Nov 4, 2021

lore
Share & tools
lore
#0 lore raw

Hello,

On ARM, the GIC is a hard prerequisite for VMs.

I can't remember what the state of RISCV is, but IIRC there is still some debate over how interrupts are expected to work under virt.

On x86, the story is very different.  PV have no hardware assistance, while HVM hardware assistance depends on hardware support.  Therefore we want to introduce a new CDF flag so we can control the setting per domain, rather than globally as it is done now.

This brings us to the question of what a suitable architecture name would be.

Hardware Virtual Interrupts is a little too close to Hardware Virtual (Machine) Introspection, and Hardware Assisted Interrupts (mirroring HAP) doesn't seem great either.

Thoughts / ideas / suggestions?

~Andrew

#1 lore raw

+Bertrand

Quoted 12 lines · Andrew Cooper

Hello,

On ARM, the GIC is a hard prerequisite for VMs.

I can't remember what the state of RISCV is, but IIRC there is still some debate over how interrupts are expected to work under virt.

On x86, the story is very different.  PV have no hardware assistance, while HVM hardware assistance depends on hardware support.  Therefore we want to introduce a new CDF flag so we can control the setting per domain, rather than globally as it is done now.

Quoted 8 lines

This brings us to the question of what a suitable architecture name would be.

Hardware Virtual Interrupts is a little too close to Hardware Virtual (Machine) Introspection, and Hardware Assisted Interrupts (mirroring HAP) doesn't seem great either.

Thoughts / ideas / suggestions?

Maybe "hardware-enabled virtualized interrupts"

#4 lore raw
In reply to Andrew Cooper
Quoted 7 lines · Andrew Cooper

Hello,

On ARM, the GIC is a hard prerequisite for VMs.

I can't remember what the state of RISCV is, but IIRC there is still some debate over how interrupts are expected to work under virt.

Yes sir, that addition to the spec is not yet released (publically) AFAICT.

#2 lore raw
In reply to Stefano Stabellini
Quoted 10 lines · Stefano Stabellini

+Bertrand

Quoted 6 lines · Andrew Cooper

Hello,

On ARM, the GIC is a hard prerequisite for VMs.

I can't remember what the state of RISCV is, but IIRC there is still some debate over how interrupts are expected to work under virt.

We are getting there, the current draft is pretty stable:
https://github.com/riscv/riscv-aia/

Quoted 9 lines
Quoted 9 lines

On x86, the story is very different. PV have no hardware assistance, while HVM hardware assistance depends on hardware support. Therefore we want to introduce a new CDF flag so we can control the setting per domain, rather than globally as it is done now.

This brings us to the question of what a suitable architecture name would be.

Quoted 7 lines
Quoted 5 lines

Hardware Virtual Interrupts is a little too close to Hardware Virtual (Machine) Introspection, and Hardware Assisted Interrupts (mirroring HAP) doesn't seem great either.

Thoughts / ideas / suggestions?

Maybe "hardware-enabled virtualized interrupts"

hardware-supported virtualised interrupts (HSV Interrupts)

Alistair

#3 lore raw

Hi,

Quoted 31 lines · Alistair Francis
Quoted 10 lines · Stefano Stabellini

+Bertrand

Quoted 6 lines · Andrew Cooper

Hello,

On ARM, the GIC is a hard prerequisite for VMs.

I can't remember what the state of RISCV is, but IIRC there is still some debate over how interrupts are expected to work under virt.

We are getting there, the current draft is pretty stable:
https://github.com/riscv/riscv-aia/

Quoted 13 lines
Quoted 13 lines

On x86, the story is very different. PV have no hardware assistance, while HVM hardware assistance depends on hardware support. Therefore we want to introduce a new CDF flag so we can control the setting per domain, rather than globally as it is done now.

This brings us to the question of what a suitable architecture name would be.

Hardware Virtual Interrupts is a little too close to Hardware Virtual (Machine) Introspection, and Hardware Assisted Interrupts (mirroring HAP) doesn't seem great either.

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Thoughts / ideas / suggestions?

Maybe "hardware-enabled virtualized interrupts"

hardware-supported virtualised interrupts (HSV Interrupts)

Both propositions are ok I think but I have a preference for supported.

Cheers
Bertrand

Quoted 2 lines

Alistair

#5 lore raw
In reply to Andrew Cooper
Quoted 12 lines · Andrew Cooper

Hello,

On ARM, the GIC is a hard prerequisite for VMs.

I can't remember what the state of RISCV is, but IIRC there is still some debate over how interrupts are expected to work under virt.

On x86, the story is very different.  PV have no hardware assistance, while HVM hardware assistance depends on hardware support.  Therefore we want to introduce a new CDF flag so we can control the setting per domain, rather than globally as it is done now.

Quoted 8 lines

This brings us to the question of what a suitable architecture name would be.

Hardware Virtual Interrupts is a little too close to Hardware Virtual (Machine) Introspection, and Hardware Assisted Interrupts (mirroring HAP) doesn't seem great either.

Thoughts / ideas / suggestions?

Is this going to cover both hardware assisted interrupt controller and assisted interrupt delivery (ie: APIC virtualization and posted interrupts in x86 speak) or just one of them?

Thanks, Roger.

#8 lore raw
In reply to Andrew Cooper
Quoted 12 lines · Andrew Cooper

Hello,

On ARM, the GIC is a hard prerequisite for VMs.

I can't remember what the state of RISCV is, but IIRC there is still some debate over how interrupts are expected to work under virt.

On x86, the story is very different.  PV have no hardware assistance, while HVM hardware assistance depends on hardware support.  Therefore we want to introduce a new CDF flag so we can control the setting per domain, rather than globally as it is done now.

Quoted 8 lines

This brings us to the question of what a suitable architecture name would be.

Hardware Virtual Interrupts is a little too close to Hardware Virtual (Machine) Introspection, and Hardware Assisted Interrupts (mirroring HAP) doesn't seem great either.

Thoughts / ideas / suggestions?

As per the subject of your mail simply "hwint"? But, as Roger says, a good name certainly depends on the scope of what exactly you want to cover.

Jan

#6 lore raw
In reply to Roger Pau Monné
Quoted 20 lines · Roger Pau Monné
Quoted 19 lines · Andrew Cooper

Hello,

On ARM, the GIC is a hard prerequisite for VMs.

I can't remember what the state of RISCV is, but IIRC there is still some debate over how interrupts are expected to work under virt.

On x86, the story is very different.  PV have no hardware assistance, while HVM hardware assistance depends on hardware support.  Therefore we want to introduce a new CDF flag so we can control the setting per domain, rather than globally as it is done now.

This brings us to the question of what a suitable architecture name would be.

Hardware Virtual Interrupts is a little too close to Hardware Virtual (Machine) Introspection, and Hardware Assisted Interrupts (mirroring HAP) doesn't seem great either.

Quoted 6 lines
Quoted 1 line

Thoughts / ideas / suggestions?

Is this going to cover both hardware assisted interrupt controller and assisted interrupt delivery (ie: APIC virtualization and posted interrupts in x86 speak) or just one of them?

Thanks, Roger.

It's not going to cover IOMMU posted interrupts, only CPU posted interrupts.

Jane.

#7 lore raw
Quoted 21 lines · Jane Malalane
Quoted 20 lines · Roger Pau Monné
Quoted 19 lines · Andrew Cooper

Hello,

On ARM, the GIC is a hard prerequisite for VMs.

I can't remember what the state of RISCV is, but IIRC there is still some debate over how interrupts are expected to work under virt.

On x86, the story is very different.  PV have no hardware assistance, while HVM hardware assistance depends on hardware support.  Therefore we want to introduce a new CDF flag so we can control the setting per domain, rather than globally as it is done now.

This brings us to the question of what a suitable architecture name would be.

Hardware Virtual Interrupts is a little too close to Hardware Virtual (Machine) Introspection, and Hardware Assisted Interrupts (mirroring HAP) doesn't seem great either.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

Thoughts / ideas / suggestions?

Is this going to cover both hardware assisted interrupt controller and assisted interrupt delivery (ie: APIC virtualization and posted interrupts in x86 speak) or just one of them?

Thanks, Roger.

It's not going to cover IOMMU posted interrupts, only CPU posted interrupts.

IMO it needs to be something like Hardware {assisted,virtual} interrupt controller, or some such, to differentiate from IOMMU posted interrupts, which will likely use Hardware {assisted,virtual} interrupts. So:

* Hardware {assisted,virtual} interrupt controller: all APIC related hardware assisted emulation.
* Hardware {assisted,virtual} interrupts: IOMMU posted interrupts.

I prefer assisted rather than virtual, but I'm not a native speaker so my taste could go against what most prefer.

Regards, Roger.