diff mbox

KVM/MIPS32: Sync up with latest KVM API changes

Message ID 1363313356-32435-1-git-send-email-sanjayl@kymasys.com (mailing list archive)
State New, archived
Headers show

Commit Message

Sanjay Lal March 15, 2013, 2:09 a.m. UTC
- Rename KVM_MEMORY_SLOTS -> KVM_USER_MEM_SLOTS
- Fix kvm_arch_{prepare,commit}_memory_region()
- Also remove kvm_arch_set_memory_region which was unused.

Signed-off-by: Sanjay Lal <sanjayl@kymasys.com>
---
 arch/mips/include/asm/kvm_host.h |  2 +-
 arch/mips/kvm/kvm_mips.c         | 12 ++----------
 2 files changed, 3 insertions(+), 11 deletions(-)

Comments

Jonas Gorski March 18, 2013, 4:04 p.m. UTC | #1
On 15 March 2013 03:09, Sanjay Lal <sanjayl@kymasys.com> wrote:
> - Rename KVM_MEMORY_SLOTS -> KVM_USER_MEM_SLOTS
> - Fix kvm_arch_{prepare,commit}_memory_region()
> - Also remove kvm_arch_set_memory_region which was unused.

I just stumbled upon the build issue caused by the first item and can
confirm that this patch fixes it.

I guess this is a replacement for "KVM/MIPS32: define
KVM_USER_MEM_SLOTS" (which doesn't apply anyway because of missing
spaces)? If yes, then you should mark the old one as superseded in
http://patchwork.linux-mips.org/. And maybe include here that it fixes
a build issue.


Regards
Jonas
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Sanjay Lal March 18, 2013, 4:10 p.m. UTC | #2
On Mar 18, 2013, at 12:04 PM, Jonas Gorski wrote:

> On 15 March 2013 03:09, Sanjay Lal <sanjayl@kymasys.com> wrote:
>> - Rename KVM_MEMORY_SLOTS -> KVM_USER_MEM_SLOTS
>> - Fix kvm_arch_{prepare,commit}_memory_region()
>> - Also remove kvm_arch_set_memory_region which was unused.
> 
> I just stumbled upon the build issue caused by the first item and can
> confirm that this patch fixes it.
> 
> I guess this is a replacement for "KVM/MIPS32: define
> KVM_USER_MEM_SLOTS" (which doesn't apply anyway because of missing
> spaces)? If yes, then you should mark the old one as superseded in
> http://patchwork.linux-mips.org/. And maybe include here that it fixes
> a build issue.
> 
> 
> Regards
> Jonas
> 

Hi Jonas, will do.

Regards and thanks
Sanjay

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/mips/include/asm/kvm_host.h b/arch/mips/include/asm/kvm_host.h
index c8cddd1..143875c 100644
--- a/arch/mips/include/asm/kvm_host.h
+++ b/arch/mips/include/asm/kvm_host.h
@@ -21,7 +21,7 @@ 
 
 
 #define KVM_MAX_VCPUS		1
-#define KVM_MEMORY_SLOTS	8
+#define KVM_USER_MEM_SLOTS	8
 /* memory slots that does not exposed to userspace */
 #define KVM_PRIVATE_MEM_SLOTS 	0
 
diff --git a/arch/mips/kvm/kvm_mips.c b/arch/mips/kvm/kvm_mips.c
index 15ee558..2e60b1c 100644
--- a/arch/mips/kvm/kvm_mips.c
+++ b/arch/mips/kvm/kvm_mips.c
@@ -198,14 +198,6 @@  kvm_arch_dev_ioctl(struct file *filp, unsigned int ioctl, unsigned long arg)
 	return -EINVAL;
 }
 
-int
-kvm_arch_set_memory_region(struct kvm *kvm,
-			   struct kvm_userspace_memory_region *mem,
-			   struct kvm_memory_slot old, int user_alloc)
-{
-	return 0;
-}
-
 void kvm_arch_free_memslot(struct kvm_memory_slot *free,
 			   struct kvm_memory_slot *dont)
 {
@@ -220,14 +212,14 @@  int kvm_arch_prepare_memory_region(struct kvm *kvm,
 				   struct kvm_memory_slot *memslot,
 				   struct kvm_memory_slot old,
 				   struct kvm_userspace_memory_region *mem,
-				   int user_alloc)
+				   bool user_alloc)
 {
 	return 0;
 }
 
 void kvm_arch_commit_memory_region(struct kvm *kvm,
 				   struct kvm_userspace_memory_region *mem,
-				   struct kvm_memory_slot old, int user_alloc)
+				   struct kvm_memory_slot old, bool user_alloc)
 {
 	unsigned long npages = 0;
 	int i, err = 0;