* KVM syscalls
@ 2021-07-11 17:36 Simon Connah
2021-07-11 17:52 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Simon Connah @ 2021-07-11 17:36 UTC (permalink / raw)
To: kernelnewbies@kernelnewbies.org
[-- Attachment #1.1.1: Type: text/plain, Size: 348 bytes --]
Hi,
I hope this is an appropriate place to post this question. I want to make a very simple frontend to KVM, but I have no idea what syscalls the Linux kernel exposes to allow userspace programs to work with KVM virtual machines. Can someone point me in the right direction, please? I have no idea where to look for this information.
Simon.
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: KVM syscalls
2021-07-11 17:36 KVM syscalls Simon Connah
@ 2021-07-11 17:52 ` Greg KH
2021-07-11 19:18 ` Simon Connah
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2021-07-11 17:52 UTC (permalink / raw)
To: Simon Connah; +Cc: kernelnewbies@kernelnewbies.org
On Sun, Jul 11, 2021 at 05:36:12PM +0000, Simon Connah wrote:
> Hi,
>
> I hope this is an appropriate place to post this question. I want to make a very simple frontend to KVM, but I have no idea what syscalls the Linux kernel exposes to allow userspace programs to work with KVM virtual machines. Can someone point me in the right direction, please? I have no idea where to look for this information.
>
Look at the include/uapi/linux/kvm* files, that is the interface between
userspace and the kernel for KVM.
But you might want to look at using something like libvirt, which
handles most of this already for you. Or look at the source for libvirt
if you want to do it all yourself.
Good luck!
greg k-h
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: KVM syscalls
2021-07-11 17:52 ` Greg KH
@ 2021-07-11 19:18 ` Simon Connah
0 siblings, 0 replies; 3+ messages in thread
From: Simon Connah @ 2021-07-11 19:18 UTC (permalink / raw)
To: Greg KH; +Cc: kernelnewbies@kernelnewbies.org
[-- Attachment #1.1.1: Type: text/plain, Size: 1101 bytes --]
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Sunday, July 11th, 2021 at 18:52, Greg KH <greg@kroah.com> wrote:
> On Sun, Jul 11, 2021 at 05:36:12PM +0000, Simon Connah wrote:
>
> > Hi,
> >
> > I hope this is an appropriate place to post this question. I want to make a very simple frontend to KVM, but I have no idea what syscalls the Linux kernel exposes to allow userspace programs to work with KVM virtual machines. Can someone point me in the right direction, please? I have no idea where to look for this information.
>
> Look at the include/uapi/linux/kvm* files, that is the interface between
>
> userspace and the kernel for KVM.
>
> But you might want to look at using something like libvirt, which
>
> handles most of this already for you. Or look at the source for libvirt
>
> if you want to do it all yourself.
>
> Good luck!
>
> greg k-h
Thank you, Greg. That was very helpful. I was going to try and avoid libvirt and roll my own software and see how I get on (I wanted a project to learn Rust with).
Simon.
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-07-11 19:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-11 17:36 KVM syscalls Simon Connah
2021-07-11 17:52 ` Greg KH
2021-07-11 19:18 ` Simon Connah
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.