diff options
author | Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> | 2014-07-09 16:08:37 +0530 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-09-08 12:50:47 +0200 |
commit | ef9514431d33e52eb611f799670ca86618c1b7d9 (patch) | |
tree | cd948a7104dcf75cf29f62fa0b8a349b5c9bcb84 /target-ppc/kvm_ppc.h | |
parent | 7d0cd464a756f3d47f308d7c47eb888b573a9fe4 (diff) | |
download | qemu-ef9514431d33e52eb611f799670ca86618c1b7d9.zip qemu-ef9514431d33e52eb611f799670ca86618c1b7d9.tar.gz qemu-ef9514431d33e52eb611f799670ca86618c1b7d9.tar.bz2 |
spapr: add uuid/host details to device tree
Useful for identifying the guest/host uniquely within the
guest. Adding following properties to the guest root node.
vm,uuid - uuid of the guest
host-model - Host model number
host-serial - Host machine serial number
hypervisor type - Tells its "kvm"
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc/kvm_ppc.h')
-rw-r--r-- | target-ppc/kvm_ppc.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/target-ppc/kvm_ppc.h b/target-ppc/kvm_ppc.h index d9516e7..2e0224c 100644 --- a/target-ppc/kvm_ppc.h +++ b/target-ppc/kvm_ppc.h @@ -19,6 +19,8 @@ uint32_t kvmppc_get_tbfreq(void); uint64_t kvmppc_get_clockfreq(void); uint32_t kvmppc_get_vmx(void); uint32_t kvmppc_get_dfp(void); +bool kvmppc_get_host_model(char **buf); +bool kvmppc_get_host_serial(char **buf); int kvmppc_get_hasidle(CPUPPCState *env); int kvmppc_get_hypercall(CPUPPCState *env, uint8_t *buf, int buf_len); int kvmppc_set_interrupt(PowerPCCPU *cpu, int irq, int level); @@ -60,6 +62,16 @@ static inline uint32_t kvmppc_get_tbfreq(void) return 0; } +static inline bool kvmppc_get_host_model(char **buf) +{ + return false; +} + +static inline bool kvmppc_get_host_serial(char **buf) +{ + return false; +} + static inline uint64_t kvmppc_get_clockfreq(void) { return 0; |