[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH v2 02/10] x86/HVM: Rename vlapic_read_aligned() to vlapic_reg_read()



Rename vlapic_read_aligned() to vlapic_reg_read() to make it a pair of
vlapic_reg_write().

Signed-off-by: Janakarajan Natarajan <Janakarajan.Natarajan@xxxxxxx>
---
 xen/arch/x86/hvm/vlapic.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/xen/arch/x86/hvm/vlapic.c b/xen/arch/x86/hvm/vlapic.c
index 1b9f00a0e4..c9b6461cbf 100644
--- a/xen/arch/x86/hvm/vlapic.c
+++ b/xen/arch/x86/hvm/vlapic.c
@@ -592,7 +592,7 @@ static void vlapic_set_tdcr(struct vlapic *vlapic, unsigned 
int val)
                 "timer_divisor: %d", vlapic->hw.timer_divisor);
 }
 
-static uint32_t vlapic_read_aligned(const struct vlapic *vlapic,
+static uint32_t vlapic_reg_read(const struct vlapic *vlapic,
                                     unsigned int offset)
 {
     switch ( offset )
@@ -627,7 +627,7 @@ static int vlapic_read(
     if ( offset > (APIC_TDCR + 0x3) )
         goto out;
 
-    tmp = vlapic_read_aligned(vlapic, offset & ~3);
+    tmp = vlapic_reg_read(vlapic, offset & ~3);
 
     switch ( len )
     {
@@ -691,10 +691,10 @@ int hvm_x2apic_msr_read(struct vcpu *v, unsigned int msr, 
uint64_t *msr_content)
         return X86EMUL_UNHANDLEABLE;
 
     if ( offset == APIC_ICR )
-        high = vlapic_read_aligned(vlapic, APIC_ICR2);
+        high = vlapic_reg_read(vlapic, APIC_ICR2);
 
     *msr_content = ((uint64_t)high << 32) |
-                   vlapic_read_aligned(vlapic, offset);
+                   vlapic_reg_read(vlapic, offset);
 
     return X86EMUL_OKAY;
 }
@@ -926,7 +926,7 @@ static int vlapic_write(struct vcpu *v, unsigned long 
address,
      */
     if ( unlikely(len != 4) )
     {
-        unsigned int tmp = vlapic_read_aligned(vlapic, offset & ~3);
+        unsigned int tmp = vlapic_reg_read(vlapic, offset & ~3);
         unsigned char alignment = (offset & 3) * 8;
 
         switch ( len )
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.