* [PATCH] KVM/MIPS32: Sync up with latest KVM API changes
@ 2013-03-15 2:09 Sanjay Lal
2013-03-18 16:04 ` Jonas Gorski
0 siblings, 1 reply; 3+ messages in thread
From: Sanjay Lal @ 2013-03-15 2:09 UTC (permalink / raw)
To: kvm; +Cc: linux-mips, Gleb Natapov, Marcelo Tosatti, Ralf Baechle, Sanjay Lal
- 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(-)
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;
--
1.7.11.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] KVM/MIPS32: Sync up with latest KVM API changes
2013-03-15 2:09 [PATCH] KVM/MIPS32: Sync up with latest KVM API changes Sanjay Lal
@ 2013-03-18 16:04 ` Jonas Gorski
2013-03-18 16:10 ` Sanjay Lal
0 siblings, 1 reply; 3+ messages in thread
From: Jonas Gorski @ 2013-03-18 16:04 UTC (permalink / raw)
To: Sanjay Lal; +Cc: kvm, linux-mips, Gleb Natapov, Marcelo Tosatti, Ralf Baechle
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] KVM/MIPS32: Sync up with latest KVM API changes
2013-03-18 16:04 ` Jonas Gorski
@ 2013-03-18 16:10 ` Sanjay Lal
0 siblings, 0 replies; 3+ messages in thread
From: Sanjay Lal @ 2013-03-18 16:10 UTC (permalink / raw)
To: Jonas Gorski; +Cc: kvm, linux-mips, Gleb Natapov, Marcelo Tosatti, Ralf Baechle
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-18 17:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-15 2:09 [PATCH] KVM/MIPS32: Sync up with latest KVM API changes Sanjay Lal
2013-03-18 16:04 ` Jonas Gorski
2013-03-18 16:10 ` Sanjay Lal
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.