Messages in this thread | | | Date | Mon, 12 Aug 2013 19:08:18 +0200 | From | Jan Kiszka <> | Subject | Re: [PATCH] tile: support KVM for tilegx |
| |
On 2013-08-12 17:24, Chris Metcalf wrote: > This change provides the initial framework support for KVM on tilegx. > Basic virtual disk and networking is supported. > > Signed-off-by: Chris Metcalf <cmetcalf@tilera.com> > ---
...
> diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h > index acccd08..d3879c5 100644 > --- a/include/uapi/linux/kvm.h > +++ b/include/uapi/linux/kvm.h > @@ -171,6 +171,7 @@ struct kvm_pit_config { > #define KVM_EXIT_WATCHDOG 21 > #define KVM_EXIT_S390_TSCH 22 > #define KVM_EXIT_EPR 23 > +#define KVM_EXIT_AGAIN 24 > > /* For KVM_EXIT_INTERNAL_ERROR */ > /* Emulate instruction failed. */ > @@ -1012,6 +1013,8 @@ struct kvm_s390_ucas_mapping { > #define KVM_KVMCLOCK_CTRL _IO(KVMIO, 0xad) > #define KVM_ARM_VCPU_INIT _IOW(KVMIO, 0xae, struct kvm_vcpu_init) > #define KVM_GET_REG_LIST _IOWR(KVMIO, 0xb0, struct kvm_reg_list) > +/* Reset some SPR registers for tilegx */ > +#define KVM_TILE_RESET_SPR _IO(KVMIO, 0xa8)
The KVM way of doing this is typically GET/SET_SPR, i.e. a way to read/write the registers from userspace. This will be required for migration support anyway, I bet.
Jan
-- Siemens AG, Corporate Technology, CT RTC ITP SES-DE Corporate Competence Center Embedded Linux
| |