×

READ/WRITE PATH DETERMINING METHOD AND APPARATUS

  • US 20180018135A1
  • Filed: 07/28/2017
  • Published: 01/18/2018
  • Est. Priority Date: 01/30/2015
  • Status: Active Grant
First Claim
Patent Images

1. A read/write path determining method for use by a physical host comprising a hardware layer, a host running on the hardware layer, and a virtual machine running on the host, wherein the host comprises a block device and a virtual block device, and the method comprises:

  • obtaining, by the host, a first read/write request of the virtual machine, wherein the first read/write request comprises a first virtual address;

    searching for the first virtual address in an address translation information set comprising a correspondence between a virtual address and information about a physical block device, wherein the information about the physical block device comprises a read/write identifier; and

    if the address translation information set comprises the first virtual address, and the first read/write request is a read request, processing the first read/write request by using a block device corresponding to the first virtual address;

    orif the address translation information set comprises the first virtual address, the first read/write request is a write request, and a first read/write identifier corresponding to the first virtual address indicates readable and writable, processing the first read/write request by using the block device;

    orif the address translation information set comprises the first virtual address, the first read/write request is a write request, and a first read/write identifier corresponding to the first virtual address indicates read-only, processing the first read/write request by using the virtual block device;

    orif the address translation information set does not comprise the first virtual address, processing the first read/write request by using the virtual block device.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×