From 031ec76d1cdc6422aac7ed19f2d5b831db669c95 Mon Sep 17 00:00:00 2001 From: Asias He Date: Tue, 1 Jun 2010 20:41:59 +0400 Subject: [PATCH] kvm__setup_sregs: fix indentation Signed-off-by: Asias He Signed-off-by: Cyrill Gorcunov --- tools/kvm/kvm.c | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/tools/kvm/kvm.c b/tools/kvm/kvm.c index 163fdd446ac2..fc1b8d77bb1e 100644 --- a/tools/kvm/kvm.c +++ b/tools/kvm/kvm.c @@ -508,18 +508,20 @@ static void kvm__setup_sregs(struct kvm *self) if (ioctl(self->vcpu_fd, KVM_GET_SREGS, &self->sregs) < 0) die_perror("KVM_GET_SREGS failed"); - self->sregs.cs.selector = self->boot_selector; - self->sregs.cs.base = selector_to_base(self->boot_selector); - self->sregs.ss.selector = self->boot_selector; - self->sregs.ss.base = selector_to_base(self->boot_selector); - self->sregs.ds.selector = self->boot_selector; - self->sregs.ds.base = selector_to_base(self->boot_selector); - self->sregs.es.selector = self->boot_selector; - self->sregs.es.base = selector_to_base(self->boot_selector); - self->sregs.fs.selector = self->boot_selector; - self->sregs.fs.base = selector_to_base(self->boot_selector); - self->sregs.gs.selector = self->boot_selector; - self->sregs.gs.base = selector_to_base(self->boot_selector); + + self->sregs.cs.selector = self->boot_selector; + self->sregs.cs.base = selector_to_base(self->boot_selector); + self->sregs.ss.selector = self->boot_selector; + self->sregs.ss.base = selector_to_base(self->boot_selector); + self->sregs.ds.selector = self->boot_selector; + self->sregs.ds.base = selector_to_base(self->boot_selector); + self->sregs.es.selector = self->boot_selector; + self->sregs.es.base = selector_to_base(self->boot_selector); + self->sregs.fs.selector = self->boot_selector; + self->sregs.fs.base = selector_to_base(self->boot_selector); + self->sregs.gs.selector = self->boot_selector; + self->sregs.gs.base = selector_to_base(self->boot_selector); + if (ioctl(self->vcpu_fd, KVM_SET_SREGS, &self->sregs) < 0) die_perror("KVM_SET_SREGS failed"); } -- 2.39.5