arch:x86:kvm:i8254.h Fix typo in kvm_pit
PATCH 1/1 arch:x86:kvm:i8254.h Fix typo in kvm_pit
The below patch changes base_addresss to base_address.
Note: I have grepped for base_addresss and nothing shows up, grepping for base_address gets me lots of output, telling me that this is a typo, but could be wrong.
--- arch/x86/kvm/i8254.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kvm/i8254.h +1 -1
@@ -33,7 +33,7 @@ struct kvm_kpit_state { };struct kvm_pit { -unsigned long base_addresss; +unsigned long base_address;struct kvm_io_device dev;struct kvm_io_device speaker_dev;struct kvm *kvm;
Signature · 1 line
1.7.4.1
Quoted 16 lines · Justin P. Mattock
The below patch changes
base_addressstobase_address.
Note: I have grepped forbase_addresssand nothing shows up, grepping forbase_addressgets me lots of output, telling me that this is a typo, but could be wrong.Signed-off-by Justin P. Mattock<[email protected]>--- arch/x86/kvm/i8254.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/x86/kvm/i8254.h +0
-0
arch/x86/kvm/i8254.h struct kvm_kpit_state { · line 39
Quoted 8 lines
arch/x86/kvm/i8254.h +1
-1@@ -33,7 +33,7 @@ struct kvm_kpit_state { };struct kvm_pit { -unsigned long base_addresss; +unsigned long base_address;struct kvm_io_device dev;struct kvm_io_device speaker_dev;struct kvm *kvm;
Why not remove the variable completely?
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 19 lines · Avi Kivity
Quoted 18 lines · Justin P. Mattock
The below patch changes
base_addressstobase_address.
Note: I have grepped forbase_addresssand nothing shows up, grepping forbase_addressgets me lots of output, telling me that this is a typo, but could be wrong.Signed-off-by Justin P. Mattock<[email protected]>---
arch/x86/kvm/i8254.h| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)arch/x86/kvm/i8254.h +0
-0@@ -33,7 +33,7 @@ struct kvm_kpit_state { };
Quoted 9 lines
arch/x86/kvm/i8254.h struct kvm_kpit_state { · line 39
Quoted 6 lines
arch/x86/kvm/i8254.h +1
-1struct kvm_pit { -unsigned long base_addresss; +unsigned long base_address;struct kvm_io_device dev;struct kvm_io_device speaker_dev;struct kvm *kvm;Why not remove the variable completely?
didnt even think to completely remove the variable(figured it was used somewhere).I will look at that and resend with removal of the variable for you..
Justin P. Mattock
Quoted 30 lines · Justin P. Mattock
Quoted 19 lines · Avi Kivity
Quoted 18 lines · Justin P. Mattock
The below patch changes
base_addressstobase_address.
Note: I have grepped forbase_addresssand nothing shows up, grepping forbase_addressgets me lots of output, telling me that this is a typo, but could be wrong.Signed-off-by Justin P. Mattock<[email protected]>---
arch/x86/kvm/i8254.h| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)arch/x86/kvm/i8254.h +0
-0@@ -33,7 +33,7 @@ struct kvm_kpit_state { };Quoted 9 lines
arch/x86/kvm/i8254.h struct kvm_kpit_state { · line 39
Quoted 6 lines
arch/x86/kvm/i8254.h +1
-1struct kvm_pit { -unsigned long base_addresss; +unsigned long base_address;struct kvm_io_device dev;struct kvm_io_device speaker_dev;struct kvm *kvm;Why not remove the variable completely?
Quoted 1 line
didnt even think to completely remove the variable(figured it was used somewhere).I will look at that and resend with removal of the variable for you..
Well if it was used, you ought to have changed all of the users, no?
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 31 lines · Avi Kivity
Quoted 30 lines · Justin P. Mattock
Quoted 28 lines · Avi Kivity
Quoted 16 lines · Justin P. Mattock
The below patch changes
base_addressstobase_address.
Note: I have grepped forbase_addresssand nothing shows up, grepping forbase_addressgets me lots of output, telling me that this is a typo, but could be wrong.Signed-off-by Justin P. Mattock<[email protected]>---
arch/x86/kvm/i8254.h| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)arch/x86/kvm/i8254.h +0
-0arch/x86/kvm/i8254.h struct kvm_kpit_state { · line 39
Quoted 8 lines
arch/x86/kvm/i8254.h +1
-1@@ -33,7 +33,7 @@ struct kvm_kpit_state { };struct kvm_pit { -unsigned long base_addresss; +unsigned long base_address;struct kvm_io_device dev;struct kvm_io_device speaker_dev;struct kvm *kvm;Why not remove the variable completely?
Quoted 6 lines
Quoted 3 lines
didnt even think to completely remove the variable(figured it was used somewhere).I will look at that and resend with removal of the variable for you..
Well if it was used, you ought to have changed all of the users, no?
at the moment I see:
(keep in mind my reading skills only go so far!)
grep -Re base_address kvm/* -nkvm/ioapic.c:276: return ((addr >= ioapic->base_address &&kvm/ioapic.c:277: (addr < ioapic->base_address + IOAPIC_MEM_LENGTH)));kvm/ioapic.c:371: ioapic->base_address = IOAPIC_DEFAULT_BASE_ADDRESS;kvm/ioapic.h:38: u64 base_address;
so changing base_addresss; to base_address; gets kvm_ioapic_reset to function correctly as well as ioapic_in_range? (but could be wrong)
Justin P. Mattock
Quoted 28 lines · Avi Kivity
Quoted 28 lines
Quoted 27 lines
Quoted 16 lines
The below patch changes
base_addressstobase_address.
Note: I have grepped forbase_addresssand nothing shows up, grepping forbase_addressgets me lots of output, telling me that this is a typo, but could be wrong.Signed-off-by Justin P. Mattock<[email protected]>---
arch/x86/kvm/i8254.h| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)arch/x86/kvm/i8254.h +0
-0arch/x86/kvm/i8254.h struct kvm_kpit_state { · line 39
Quoted 8 lines
arch/x86/kvm/i8254.h +1
-1@@ -33,7 +33,7 @@ struct kvm_kpit_state { };struct kvm_pit { -unsigned long base_addresss; +unsigned long base_address;struct kvm_io_device dev;struct kvm_io_device speaker_dev;struct kvm *kvm;Why not remove the variable completely?
Quoted 5 lines
Quoted 3 lines
didnt even think to completely remove the variable(figured it was used somewhere).I will look at that and resend with removal of the variable for you..
Well if it was used, you ought to have changed all of the users, no?
I am afraid Justin is not trying to compile-test his patches (I got this suspicion after last patchset trying to remove all the includes of version.h).
Signature · 2 lines
Jiri Kosina SUSE Labs, Novell Inc.
Quoted 34 lines · Jiri Kosina
Quoted 32 lines · Avi Kivity
Quoted 31 lines
Quoted 18 lines
Quoted 18 lines
The below patch changes
base_addressstobase_address.
Note: I have grepped forbase_addresssand nothing shows up, grepping forbase_addressgets me lots of output, telling me that this is a typo, but could be wrong.Signed-off-by Justin P. Mattock<[email protected]>---
arch/x86/kvm/i8254.h| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)arch/x86/kvm/i8254.h +0
-0@@ -33,7 +33,7 @@ struct kvm_kpit_state { };Quoted 9 lines
arch/x86/kvm/i8254.h struct kvm_kpit_state { · line 39
Quoted 6 lines
arch/x86/kvm/i8254.h +1
-1struct kvm_pit { -unsigned long base_addresss; +unsigned long base_address;struct kvm_io_device dev;struct kvm_io_device speaker_dev;struct kvm *kvm;Why not remove the variable completely?
didnt even think to completely remove the variable(figured it was used somewhere).I will look at that and resend with removal of the variable for you..
Quoted 6 lines
Quoted 1 line
Well if it was used, you ought to have changed all of the users, no?
I am afraid Justin is not trying to compile-test his patches (I got this suspicion after last patchset trying to remove all the includes of
version.h).
I do remember to do that, but I will be honest there are ones that I totally forgot, then remembered after sending out the patch(I admit it I am guilty of that)
Think having a checklist is the best thing to follow when doing a patch (telling yourself "yeah Ill remember to do that", never is the best way.
Justin P. Mattock
Quoted 42 lines · Justin P. Mattock
Quoted 31 lines · Avi Kivity
Quoted 30 lines · Justin P. Mattock
Quoted 28 lines · Avi Kivity
Quoted 16 lines · Justin P. Mattock
The below patch changes
base_addressstobase_address.
Note: I have grepped forbase_addresssand nothing shows up, grepping forbase_addressgets me lots of output, telling me that this is a typo, but could be wrong.Signed-off-by Justin P. Mattock<[email protected]>---
arch/x86/kvm/i8254.h| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)arch/x86/kvm/i8254.h +0
-0arch/x86/kvm/i8254.h struct kvm_kpit_state { · line 39
Quoted 8 lines
arch/x86/kvm/i8254.h +1
-1@@ -33,7 +33,7 @@ struct kvm_kpit_state { };struct kvm_pit { -unsigned long base_addresss; +unsigned long base_address;struct kvm_io_device dev;struct kvm_io_device speaker_dev;struct kvm *kvm;Why not remove the variable completely?
Quoted 6 lines
Quoted 3 lines
didnt even think to completely remove the variable(figured it was used somewhere).I will look at that and resend with removal of the variable for you..
Well if it was used, you ought to have changed all of the users, no?
at the moment I see:
(keep in mind my reading skills only go so far!)
Quoted 9 lines
grep -Re
base_addresskvm/* -nkvm/ioapic.c:276: return ((addr >=ioapic->base_address&&kvm/ioapic.c:277: (addr <ioapic->base_address+IOAPIC_MEM_LENGTH)));kvm/ioapic.c:371:ioapic->base_address=IOAPIC_DEFAULT_BASE_ADDRESS;kvm/ioapic.h:38: u64base_address;so changing
base_addresss; tobase_address; getskvm_ioapic_resetto function correctly as well asioapic_in_range? (but could be wrong)
Can you explain how kvm_ioapic_reset() would be affected by the change?
Really, you need to understand what you're doing before sending patches.
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 49 lines · Avi Kivity
Quoted 48 lines · Justin P. Mattock
Quoted 31 lines · Avi Kivity
Quoted 30 lines · Justin P. Mattock
Quoted 28 lines · Avi Kivity
Quoted 16 lines · Justin P. Mattock
The below patch changes
base_addressstobase_address.
Note: I have grepped forbase_addresssand nothing shows up, grepping forbase_addressgets me lots of output, telling me that this is a typo, but could be wrong.Signed-off-by Justin P. Mattock<[email protected]>---
arch/x86/kvm/i8254.h| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)arch/x86/kvm/i8254.h +0
-0arch/x86/kvm/i8254.h struct kvm_kpit_state { · line 39
Quoted 8 lines
arch/x86/kvm/i8254.h +1
-1@@ -33,7 +33,7 @@ struct kvm_kpit_state { };struct kvm_pit { -unsigned long base_addresss; +unsigned long base_address;struct kvm_io_device dev;struct kvm_io_device speaker_dev;struct kvm *kvm;Why not remove the variable completely?
Quoted 6 lines
Quoted 3 lines
didnt even think to completely remove the variable(figured it was used somewhere).I will look at that and resend with removal of the variable for you..
Well if it was used, you ought to have changed all of the users, no?
at the moment I see:
(keep in mind my reading skills only go so far!)grep -Re
base_addresskvm/* -nkvm/ioapic.c:276: return ((addr >=ioapic->base_address&&kvm/ioapic.c:277: (addr <ioapic->base_address+IOAPIC_MEM_LENGTH)));kvm/ioapic.c:371:ioapic->base_address=IOAPIC_DEFAULT_BASE_ADDRESS;kvm/ioapic.h:38: u64base_address;
Quoted 9 lines
Quoted 4 lines
so changing
base_addresss; tobase_address; getskvm_ioapic_resetto function correctly as well asioapic_in_range?
(but could be wrong)Can you explain how
kvm_ioapic_reset()would be affected by the change?Really, you need to understand what you're doing before sending patches.
well looking at the code:virt/kvm/ioapic.c @@276
static inline int ioapic_in_range(struct kvm_ioapic *ioapic, gpa_t addr)
{
return ((addr >= ioapic->base_address &&
(addr < ioapic->base_address + IOAPIC_MEM_LENGTH)));
}I see: base_address in there but looking more at the code its for something completely different..
Justin P. Mattock