[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20061024213850.GA7529@hexapodia.org>
Date: Tue, 24 Oct 2006 14:38:50 -0700
From: Andy Isaacson <adi@...apodia.org>
To: Arnd Bergmann <arnd@...db.de>
Cc: Avi Kivity <avi@...ranet.com>, Muli Ben-Yehuda <muli@...ibm.com>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: kvm_create() (was Re: [PATCH 0/7] KVM: Kernel-based Virtual Machine)
I don't have much clue what the context of this is, but one chunk caught
my eye:
On Sat, Oct 21, 2006 at 06:16:27PM +0200, Arnd Bergmann wrote:
> Your example above could translate to something like:
>
> int kvm_fd = kvm_create("/kvm/my_vcpu")
> int mem_fd = openat(kvm_fd, "mem", O_RDWR);
Based just on this snippet, it seems to me that kvm_create() could be
simply:
open("/kvm/my_vcpu", O_CREAT | O_EXCL | O_DIRECTORY, 0777);
(Which currently seems to silently mask out O_DIRECTORY, but seems to me
should be a synonym for mkdir().)
-andy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists