diff options
author | Razvan Cojocaru <rzvncj@gmail.com> | 2013-01-17 12:27:00 +0000 |
---|---|---|
committer | Razvan Cojocaru <rzvncj@gmail.com> | 2013-01-17 12:27:00 +0000 |
commit | 41333c800cf5fd34229f06b338ef3ff9a2fd3bde (patch) | |
tree | 85a7dbbfa2a6aae8ff0aaed3bdded750d4c06234 /xen/include/asm-x86/hvm | |
parent | d564b6fe9de6c19158d64d714d3bef9261f5b2e1 (diff) | |
download | xen-41333c800cf5fd34229f06b338ef3ff9a2fd3bde.tar.gz xen-41333c800cf5fd34229f06b338ef3ff9a2fd3bde.tar.bz2 xen-41333c800cf5fd34229f06b338ef3ff9a2fd3bde.zip |
mem_event: Add support for MEM_EVENT_REASON_MSR
Add the new MEM_EVENT_REASON_MSR event type. Works similarly
to the other register events, except event.gla always contains
the MSR address (in addition to event.gfn, which holds the value).
MEM_EVENT_REASON_MSR does not honour the HVMPME_onchangeonly bit,
as doing so would complicate the hvm_msr_write_intercept()
switch-based handling of writes for different MSR addresses,
with little added benefit.
Signed-off-by: Razvan Cojocaru <rzvncj@gmail.com>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
Diffstat (limited to 'xen/include/asm-x86/hvm')
-rw-r--r-- | xen/include/asm-x86/hvm/hvm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/include/asm-x86/hvm/hvm.h b/xen/include/asm-x86/hvm/hvm.h index 50e1f0a865..76e9cc8fbe 100644 --- a/xen/include/asm-x86/hvm/hvm.h +++ b/xen/include/asm-x86/hvm/hvm.h @@ -454,6 +454,7 @@ int hvm_x2apic_msr_write(struct vcpu *v, unsigned int msr, uint64_t msr_content) void hvm_memory_event_cr0(unsigned long value, unsigned long old); void hvm_memory_event_cr3(unsigned long value, unsigned long old); void hvm_memory_event_cr4(unsigned long value, unsigned long old); +void hvm_memory_event_msr(unsigned long msr, unsigned long value); /* Called for current VCPU on int3: returns -1 if no listener */ int hvm_memory_event_int3(unsigned long gla); |